From 7ca3e79f60db708bb7a515b6f2302e55adab78b4 Mon Sep 17 00:00:00 2001 From: Jay Joshua Date: Wed, 26 Feb 2025 15:01:12 +0100 Subject: [PATCH] Fix test based on reviewer feedback --- test/controllers/graphql_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controllers/graphql_controller_test.rb b/test/controllers/graphql_controller_test.rb index 988b1f8fc..0f0051ba1 100644 --- a/test/controllers/graphql_controller_test.rb +++ b/test/controllers/graphql_controller_test.rb @@ -378,7 +378,7 @@ def setup create_tag annotated: pm, annotator: u create_dynamic_annotation annotated: pm, annotator: u, annotation_type: 'metadata' end - query = "query GetById { project_media(ids: \"#{pm.id},#{p.id}\") { last_status, domain, pusher_channel, account { url }, dbid, tags(first: 1) { edges { node { tag } } }, project { title }, log(first: 1000) { edges { node { event_type, object_after, updated_at, created_at, meta, object_changes_json, user { name }, annotation { id, created_at, updated_at }, task { id }, tag { id } } } } } }" + query = "query GetById { project_media(ids: \"#{pm.id},#{p.id}\") { last_status, domain, pusher_channel, account { url }, dbid, tags(first: 1) { edges { node { tag } } }, project { title }, log(first: 1000) { edges { node { event_type, object_after, updated_at, created_at, meta, object_changes_json, annotation { id, created_at, updated_at }, task { id }, tag { id } } } } } }" post :create, params: { query: query, team: 'team' } assert_response :success assert_not_equal 0, JSON.parse(@response.body)['data']['project_media']['log']['edges'].size