Allow existing Personal Access Tokens to be updated/modified
Problem to solve
At the time of writing (GitLab 11.11.x) it does not appear to be possible to update the configuration of existing Personal Access Tokens - for example to add or change the expiry date, or to modify the access token scope - or even to just temporarily deactivate the access token without revoking it completely. Whilst it's possible to work around this issue by revoking an existing access token and creating a new one with the required settings, it can be tedious to replace the revoked access token on each of the systems which are configured use it (which could be many) with the newly created one - seems unnecessary to me - not sure if the current behaviour whereby existing access tokens can only be revoked is intentional by design.
- Update Personal Access Token UI to add some sort of Edit/Update/Modify button to allow existing Access Token configuration to be updated on-the-fly without requiring revocation and replacement of existing tokens.
- (Optionally) consider providing ability to deactivate (rather than completely revoke) existing access tokens - so that they can be easily re-activated with existing settings when required.
Permissions and Security
No additional permissions required - anyone who can create/revoke their own Personal Access Tokens should be able to modify them.