Skip to content

Update extended scopes in ajax deploy token widget

What does this MR do and why?

New deploy token form wasn't correctly registering roles other than read_package and read_repository, also would default expiry_at to be today's date regardless of input

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Enable the ajax_new_deploy_token feature flag (Feature.enable(:ajax_new_deploy_token) in the rails console)
  2. Go to a project or group settings >> Repository >> Deploy Tokens
  3. Try to create a deploy token that uses write_package, read_container_registry or write_container_registry
  4. Try to create a deploy token without an expiration date
  5. Once created, refresh the page and note the correctly created deploy token(s) in the list

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 #378244 (closed)

Edited by Allen Cook

Merge request reports

Loading