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.
Testing locally
To test locally:
- Navigate to a project's Releases page (
user/project/-/releases/new
) - Click the New Release button
- Fill out the form
- Click Create release
- Verify that all the details were correctly saved
- Click the Edit button (the pencil icon)
- Make some changes and click Save changes
- Verify that all the changes were persisted
Edited by Nathan Friend