Prevent duplicate deploy tokens on page refresh
requested to merge 22794-project-settings-repo-deploy-tokens-refreshing-creates-another-token into master
What does this MR do and why?
Convert project settings deploy tokens page to AJAX, which prevents duplicate token creation on page refresh
Screenshots or screen recordings
How to set up and validate locally
- Enable the
ajax_new_deploy_token
feature flag (i.e.Feature.enable(:ajax_new_deploy_token)
) - Navigate to Project >> Settings >> Repository
- Fill in the values to create a deploy token
- Once that completes successfully, refresh the page
- Note there's only one new deploy token in the
Active Deploy Tokens
table
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #22794 (closed)
Edited by Allen Cook