Skip to content

Add ability to create/update a project with fine-grained job token permissions

For the Settings -> CI/CD -> Job token permissions section, we need to add a radio selector to select between default and fine-grained permissions, then implement the permissions list:

Fine-grained permissions Dropdown values
ksnip_20241101-115635 ksnip_20241101-121118

Specifically:

  1. A radio selector with the label Permissions should be added below the group/project dropdown. When Default permissions is selected, the fine-grained permissions list is hidden. When Fine-grained permissions is selected, the list should be shown.

  2. The fine-grained permissions list should be added. The descriptions for each item should be left out for now because they are not available yet. The item names should be hard-coded based on the possible values in policies.rb. Alternatively, pass the values from backend to frontend and let frontend parse out the item names.

  3. The dropdown should have 3 possible selections: None (default), Read only, and Read and write.

  4. In the added group/project list, add an Edit icon button that when clicked, will bring up the same form as the Add group or project button does, except with the group dropdown disabled.

Edited by Daniel Tian