production.log flooded with complexity_cost_calculation_mode
Overview
gitlab-rails production.log is getting flooded with this message:
GraphQL-Ruby's complexity cost system is getting some "breaking fixes" in a future version. See the migration notes at https://graphql-ruby.org/api-doc/2.5.11/GraphQL/Schema.html#complexity_cost_calculation_mode_for-class_method
To opt into the future behavior, configure your schema (GitlabSchema) with:
complexity_cost_calculation_mode(:future) # or `:legacy`, `:compare`
Implementation
- Set cost_calculation to
legacyto avoid any breaking behaviours.
Edited by Max Woolf