Skip to content

Limit Project.environments field call count

Shinya Maeda requested to merge limit-environments-field-count into master

What does this MR do and why?

This MR adds the FieldCallCount limit to the Project.environments, which is already documented in https://docs.gitlab.com/ee/development/api_graphql_styleguide.html#limit-maximum-field-call-count.

EnvironmentsResolver can't use BatchLoader because it breaks the pagination.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Shinya Maeda

Merge request reports