Skip to content

Commit

Permalink
Revert "Add agency to dois response (#1276)"
Browse files Browse the repository at this point in the history
This reverts commit 1deddbb.
  • Loading branch information
bklaing2 authored Nov 19, 2024
1 parent 1deddbb commit 4289fcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion app/serializers/datacite_doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class DataciteDoiSerializer
:titles,
:publisher,
:container,
:agency,
:publication_year,
:subjects,
:contributors,
Expand Down
11 changes: 0 additions & 11 deletions spec/requests/datacite_dois/datacite_dois_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
Expand Down

0 comments on commit 4289fcf

Please sign in to comment.