Skip to content

Commit

Permalink
Ticket CV2-5389: Fixing typo on field name
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Oct 22, 2024
1 parent 860f8a7 commit f98d43b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/graph/types/team_statistics_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/relay.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/team_statistics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def number_of_search_results_by_type
end

# TODO
def average_response_type
def average_response_time
24.hours
end

Expand Down
2 changes: 1 addition & 1 deletion public/relay.json
Original file line number Diff line number Diff line change
Expand Up @@ -71848,7 +71848,7 @@
"description": "Workspace statistics.",
"fields": [
{
"name": "average_response_type",
"name": "average_response_time",
"description": null,
"args": [

Expand Down
2 changes: 1 addition & 1 deletion test/controllers/graphql_controller_11_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f98d43b

Please sign in to comment.