Skip to content

Prevent duplicate deploy tokens on page refresh

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

image

How to set up and validate locally

  1. Enable the ajax_new_deploy_token feature flag (i.e. Feature.enable(:ajax_new_deploy_token))
  2. Navigate to Project >> Settings >> Repository
  3. Fill in the values to create a deploy token
  4. Once that completes successfully, refresh the page
  5. 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.

Related to #22794 (closed)

Edited by Allen Cook

Merge request reports