diff --git a/app/controllers/prefixes_controller.rb b/app/controllers/prefixes_controller.rb index 68e38c8e4..f90bf0221 100644 --- a/app/controllers/prefixes_controller.rb +++ b/app/controllers/prefixes_controller.rb @@ -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 diff --git a/app/controllers/provider_prefixes_controller.rb b/app/controllers/provider_prefixes_controller.rb index 4ede5d688..d70cf36da 100644 --- a/app/controllers/provider_prefixes_controller.rb +++ b/app/controllers/provider_prefixes_controller.rb @@ -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 diff --git a/app/graphql/types/prefix_connection_with_meta_type.rb b/app/graphql/types/prefix_connection_with_meta_type.rb index 3303ba670..814be7bdf 100644 --- a/app/graphql/types/prefix_connection_with_meta_type.rb +++ b/app/graphql/types/prefix_connection_with_meta_type.rb @@ -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 diff --git a/spec/requests/media_spec.rb b/spec/requests/media_spec.rb index d30b266be..8f164311b 100644 --- a/spec/requests/media_spec.rb +++ b/spec/requests/media_spec.rb @@ -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