Describe in detail what your merge request does and why.
This PR adds in UI functionality to generate new personal access tokens for project bot accounts, and to list active personal access tokens for the bot in a modal on bot name link click, and to revoke tokens.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other pull requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
Login as a user
Create a new project
Go to the project show page, click Settings from the sidebar, and then click Bot Accounts
You shouldn't see any bot accounts
Create a new bot account by clicking the New bot account button
Fill in the token name, select an access level, and select atleast 1 scope, and click submit
You should now see a table with the bot account listed
In the Active Tokens column you should see a count of 1. Click the 1
The modal that pops up should list the personal access token for the bot account
Close the modal
In the actions column within the table for the bot account, click the ellipsis, and then Generate new token
Fill in the token name, and select atleast 1 scope, and click submit
The table should update and in the Active Tokens column you should see a count of 2 for the bot account
Click the 2 in the Active Tokens column
In the modal you should now see 2 personal access tokens listed for the bot account
Click Revoke and thenConfirm for either of the tokens
The token should be removed from the table in the modal
Add a user to the project with < Maintainer role
Sign out and sign in as the user from step 18
They should not be able to access the bot accounts page (either through url or through the ui from the settings menu for the project
What does this PR do and why?
Describe in detail what your merge request does and why.
This PR adds in UI functionality to generate new personal access tokens for project bot accounts, and to list active personal access tokens for the bot in a modal on bot name link click, and to revoke tokens.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other pull requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
project
project
show page, clickSettings
from the sidebar, and then clickBot Accounts
New bot account
buttontoken name
,select an access level
, and select atleast 1scope
, and clicksubmit
Active Tokens
column you should see a count of1
. Click the1
ellipsis
, and thenGenerate new token
token name
, and select atleast 1scope
, and clicksubmit
Active Tokens
column you should see a count of2
for the bot account2
in the Active Tokens columnRevoke
and thenConfirm
for either of the tokensMaintainer
role