From f98d43b018cd716462a11d527e559744dda22473 Mon Sep 17 00:00:00 2001 From: Caio <117518+caiosba@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:58:29 -0300 Subject: [PATCH] Ticket CV2-5389: Fixing typo on field name --- app/graph/types/team_statistics_type.rb | 2 +- lib/relay.idl | 2 +- lib/team_statistics.rb | 2 +- public/relay.json | 2 +- test/controllers/graphql_controller_11_test.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/graph/types/team_statistics_type.rb b/app/graph/types/team_statistics_type.rb index aa86a7625..035fe08a3 100644 --- a/app/graph/types/team_statistics_type.rb +++ b/app/graph/types/team_statistics_type.rb @@ -21,7 +21,7 @@ class TeamStatisticsType < DefaultObject field :number_of_messages_by_date, JsonStringType, null: true field :number_of_conversations_by_date, JsonStringType, null: true field :number_of_search_results_by_type, JsonStringType, null: true - field :average_response_type, GraphQL::Types::Int, null: true + field :average_response_time, GraphQL::Types::Int, null: true field :number_of_unique_users, GraphQL::Types::Int, null: true field :number_of_total_users, GraphQL::Types::Int, null: true field :number_of_returning_users, GraphQL::Types::Int, null: true diff --git a/lib/relay.idl b/lib/relay.idl index 2434b9213..281b597bd 100644 --- a/lib/relay.idl +++ b/lib/relay.idl @@ -13670,7 +13670,7 @@ type TeamEdge { Workspace statistics. """ type TeamStatistics implements Node { - average_response_type: Int + average_response_time: Int created_at: String id: ID! number_of_articles_created_by_date: JsonStringType diff --git a/lib/team_statistics.rb b/lib/team_statistics.rb index d42605d9c..175bb29d4 100644 --- a/lib/team_statistics.rb +++ b/lib/team_statistics.rb @@ -134,7 +134,7 @@ def number_of_search_results_by_type end # TODO - def average_response_type + def average_response_time 24.hours end diff --git a/public/relay.json b/public/relay.json index 7ea77d1ef..4951ae067 100644 --- a/public/relay.json +++ b/public/relay.json @@ -71848,7 +71848,7 @@ "description": "Workspace statistics.", "fields": [ { - "name": "average_response_type", + "name": "average_response_time", "description": null, "args": [ diff --git a/test/controllers/graphql_controller_11_test.rb b/test/controllers/graphql_controller_11_test.rb index 7da137925..957e3ddef 100644 --- a/test/controllers/graphql_controller_11_test.rb +++ b/test/controllers/graphql_controller_11_test.rb @@ -224,7 +224,7 @@ def teardown number_of_messages_by_date number_of_conversations_by_date number_of_search_results_by_type - average_response_type + average_response_time number_of_unique_users number_of_total_users number_of_returning_users