diff --git a/app/graphql/lupo_schema.rb b/app/graphql/lupo_schema.rb index d9364225e..332810061 100644 --- a/app/graphql/lupo_schema.rb +++ b/app/graphql/lupo_schema.rb @@ -2,7 +2,8 @@ class LupoSchema < GraphQL::Schema include ApolloFederation::Schema - + + use GraphQL::Tracing::DataDogTracing, service: 'graphql' use ApolloFederation::Tracing default_max_page_size 1000 diff --git a/config/application.rb b/config/application.rb index 35e39a0be..8cb1ef4b5 100644 --- a/config/application.rb +++ b/config/application.rb @@ -87,7 +87,7 @@ class Application < Rails::Application c.use :rails, service_name: "client-api" c.use :elasticsearch c.use :active_record, analytics_enabled: false - c.use :graphql, schemas: [LupoSchema] + # c.use :graphql, schemas: [LupoSchema] c.use :aws c.analytics_enabled = true end diff --git a/spec/graphql/types/repository_type_spec.rb b/spec/graphql/types/repository_type_spec.rb index 168cb3d46..1c29f72c8 100644 --- a/spec/graphql/types/repository_type_spec.rb +++ b/spec/graphql/types/repository_type_spec.rb @@ -29,7 +29,7 @@ before do Client.import - sleep 1 + sleep 2 end let(:query) do diff --git a/spec/requests/dois_spec.rb b/spec/requests/dois_spec.rb index b8d469d32..c1d8da63d 100644 --- a/spec/requests/dois_spec.rb +++ b/spec/requests/dois_spec.rb @@ -2890,16 +2890,12 @@ } end - it 'add metadata' do - puts "####FIRST ROUND" put "/dois/10.14454/10703", update_attributes, headers - puts json expect(json.dig('data', 'attributes', 'doi')).to eq("10.14454/10703") expect(json.dig('data', 'attributes', 'schemaVersion')).to eq("http://datacite.org/schema/kernel-3") - puts "####SECOND ROUND" put '/dois/10.14454/10703', valid_attributes, headers expect(json.dig('data', 'attributes', 'doi')).to eq("10.14454/10703")