Update extended scopes in ajax deploy token widget
requested to merge 378244-cannot-create-a-deploy-token-on-repository-scopes-can-t-be-blank into master
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
- Enable the
ajax_new_deploy_token
feature flag (Feature.enable(:ajax_new_deploy_token)
in the rails console) - Go to a project or group settings >> Repository >> Deploy Tokens
- Try to create a deploy token that uses
write_package
,read_container_registry
orwrite_container_registry
- Try to create a deploy token without an expiration date
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #378244 (closed)
Edited by Allen Cook