Skip to content

Commit

Permalink
rename prefix facets. datacite/datacite#964
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 28, 2020
1 parent 3468ef7 commit ff59d0c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app/controllers/prefixes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def index
states = [{ id: "unassigned",
title: "Unassigned",
count: collection.state("unassigned").count },
{ id: "without-client",
title: "Without client",
{ id: "without-repository",
title: "Without repository",
count: collection.state("without-client").count },
{ id: "with-client",
title: "With client",
{ id: "with-repository",
title: "With repository",
count: collection.state("with-client").count }]
end

Expand Down
8 changes: 4 additions & 4 deletions app/controllers/provider_prefixes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def index
title: params[:state].underscore.humanize,
count: collection.count }]
else
states = [{ id: "without-client",
title: "Without client",
states = [{ id: "without-repository",
title: "Without repository",
count: collection.state("without-client").count },
{ id: "with-client",
title: "With client",
{ id: "with-repository",
title: "With repository",
count: collection.state("with-client").count }]
end

Expand Down
8 changes: 4 additions & 4 deletions app/graphql/types/prefix_connection_with_meta_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def states
title: args[:state].underscore.humanize,
count: collection.state(args[:state].underscore.dasherize).count }]
else
[{ id: "withoutClient",
title: "Without client",
[{ id: "withoutRepository",
title: "Without repository",
count: collection.state("without-client").count },
{ id: "withClient",
title: "With client",
{ id: "withRepository",
title: "With repository",
count: collection.state("with-client").count }]
end
else
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/media_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
expect(json).not_to be_empty
expect(json['data'].size).to eq(6)
result = json['data'].first
expect(result.dig("attributes", "mediaType")).to eq("application/json")
expect(result.dig("attributes", "mediaType")).to eq("text/plain")
end

it 'returns status code 200' do
Expand Down

0 comments on commit ff59d0c

Please sign in to comment.