Skip to content

Add new GraphQL query for release editing

Nathan Friend requested to merge nfriend-update-release-utils into master

What does this MR do?

Adds a new GraphQL query - one_release_for_editing.query.graphql - that only fetches the information needed to edit a release.

This is significantly less information than is requested by the existing query - one_release.query.graphql - which includes all the information needed to display a release.

Because this new GraphQL query returns less info, the function that processes this data (convertOneReleaseGraphQLResponse in ~/releases/util.js) has been updated to handle specific handle cases where info might be missing.

Context

This is a background step towards !57000 (merged), where this new query will be used to convert the New/Edit Release page from using the REST APIs to the GraphQL API.

Edited by Nathan Friend

Merge request reports

Loading