Skip to content

Convert New and Edit Release pages to use GraphQL

What does this MR do?

Update the New Release (namespace/project/-/releases/new) and Edit Release (namespace/project/-/releases/<tag name>/edit) pages to use the GraphQL endpoint instead of the REST API endpoints.

Screenshots/GIFs

This MR makes no visual changes. The one change users may notice is that the saving process is much quicker. This is due to Apollo client's batching behavior - it eliminates a number of individual network requests in favor of single requests that group similar operations together.

graphql-new-edit-release-page

Testing locally

To test locally:

  1. Navigate to a project's Releases page (user/project/-/releases/new)
  2. Click the New Release button
  3. Fill out the form
  4. Click Create release
  5. Verify that all the details were correctly saved
  6. Click the Edit button (the pencil icon)
  7. Make some changes and click Save changes
  8. Verify that all the changes were persisted
Edited by Nathan Friend

Merge request reports

Loading