From 6c34d51fbeff294e6084f409bd35052dca845ab1 Mon Sep 17 00:00:00 2001 From: Bryceson Laing Date: Tue, 19 Nov 2024 09:58:50 -0600 Subject: [PATCH] Revert "Add agency to dois response (#1276)" (#1277) This reverts commit 1deddbb0a023454b3243d90332a716dd3bc5e49d. --- app/serializers/datacite_doi_serializer.rb | 1 - spec/requests/datacite_dois/datacite_dois_spec.rb | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/app/serializers/datacite_doi_serializer.rb b/app/serializers/datacite_doi_serializer.rb index 39682551c..fc27235c5 100644 --- a/app/serializers/datacite_doi_serializer.rb +++ b/app/serializers/datacite_doi_serializer.rb @@ -18,7 +18,6 @@ class DataciteDoiSerializer :titles, :publisher, :container, - :agency, :publication_year, :subjects, :contributors, diff --git a/spec/requests/datacite_dois/datacite_dois_spec.rb b/spec/requests/datacite_dois/datacite_dois_spec.rb index 04278b010..4aa5593e9 100755 --- a/spec/requests/datacite_dois/datacite_dois_spec.rb +++ b/spec/requests/datacite_dois/datacite_dois_spec.rb @@ -438,17 +438,6 @@ def clear_doi_index end end - describe "GET /dois/:id with agency values", prefix_pool_size: 1 do - let!(:doi) { create(:doi, client: client, aasm_state: "findable") } - - it "returns agency values" do - get "/dois/#{doi.doi}", nil, headers - - expect(last_response.status).to eq(200) - expect(json.dig("data", "attributes", "agency")).to eq("datacite") - end - end - describe "GET /dois with client-type filter", prefix_pool_size: 3 do let!(:dois) { create_list(:doi, 10, client: client, aasm_state: "findable", version_info: "testtag") } let(:client_igsn_id_catalog) { create(:client, provider: provider, client_type: "igsnCatalog") }