Browse Source

Maintenance: Mobile - Improved 'default_max_page_size' and 'default_page_size' limits.

Dominik Klein 1 year ago
parent
commit
2b347de079

+ 0 - 2
app/graphql/gql/queries/tickets_by_overview.rb

@@ -3,8 +3,6 @@
 module Gql::Queries
   class TicketsByOverview < BaseQuery
 
-    max_page_size 2000
-
     description 'Fetch tickets of a given ticket overview'
 
     argument :overview_id, GraphQL::Types::ID, description: 'Overview ID'

+ 2 - 1
app/graphql/gql/zammad_schema.rb

@@ -14,7 +14,8 @@ class Gql::ZammadSchema < GraphQL::Schema
   description 'This is the Zammad GraphQL API'
 
   # Set default limits to protect the system. Values may need to be adjusted in future.
-  default_max_page_size 100
+  default_max_page_size 2000
+  default_page_size 100
   max_complexity 10_000
 
   # The GraphQL introspection query has a depth of 13, so allow that in the development env.