Skip to content

Add gitlab:graphql:analyze task

Alex Kalderimis requested to merge ajk-rake-graphql-analyse into master

What does this MR do?

This adds a rake task that developers can use to assess the complexity cost of their queries.

Usage: (Manual QA)

bundle exec rake gitlab:graphql:analyze[path/to/query.graphql]

Example output:

$ be rake gitlab:graphql:analyze[app/assets/javascripts/error_tracking/queries/details.query.graphql]
app/assets/javascripts/error_tracking/queries/details.query.graphql
 - complexity: 23

Does this MR meet the acceptance criteria?

As a developer-facing tooling change, this does not require a changelog entry.

Conformity

Availability and Testing

Edited by Alex Kalderimis

Merge request reports

Loading