-
- Downloads
Initial field and query complexity limits
It makes all Types::BaseField default to a complexity of 1. Queries themselves now have limited complexity, scaled to the type of user: no user, authenticated user, or an admin user.
Showing
- app/graphql/gitlab_schema.rb 30 additions, 0 deletionsapp/graphql/gitlab_schema.rb
- app/graphql/types/base_field.rb 9 additions, 0 deletionsapp/graphql/types/base_field.rb
- changelogs/unreleased/58405-basic-limiting-complexity-of-graphql-queries.yml 5 additions, 0 deletions...ed/58405-basic-limiting-complexity-of-graphql-queries.yml
- lib/gitlab/graphql/query_analyzers/log_query_complexity.rb 18 additions, 0 deletionslib/gitlab/graphql/query_analyzers/log_query_complexity.rb
- spec/graphql/gitlab_schema_spec.rb 32 additions, 0 deletionsspec/graphql/gitlab_schema_spec.rb
- spec/graphql/types/base_field_spec.rb 19 additions, 0 deletionsspec/graphql/types/base_field_spec.rb
- spec/requests/api/graphql/gitlab_schema_spec.rb 16 additions, 0 deletionsspec/requests/api/graphql/gitlab_schema_spec.rb
- spec/support/helpers/graphql_helpers.rb 8 additions, 0 deletionsspec/support/helpers/graphql_helpers.rb
spec/graphql/types/base_field_spec.rb
0 → 100644
Please register or sign in to comment