FE limitation on CI_JOB_TOKEN allow list groups/projects
Related to issue: #415519 (comment 2010147670)
- If there are more than four groups/projects with the same name we are limited with 4 per group/project on the suggested list.
- If there are many subgroups with the same name, it becomes impossible to add a parent subgroup, even when typing the full path of the parent group.
All the issues are related to the UI/UX behavior. Direct GraphQL allows the add any specific group to the list.
For example, I can't add my group with the path mygroup1/mysubgroup1/mysubsubgroup6 to the allow list.
To reproduce this issue, we have to create more than four groups with the same name at different sub-levels.
Possible Solution
Update the GraphQL query with different parameters and sorting, something like this:
query getTokenAccessGroupsAndProjects($search: String) {
- projects(search: $search, first: 4) {
+ projects(search: $search, searchNamespaces: true, first: 4) {
nodes {
id
name
}
}
- groups(search: $search, first: 4) {
+ groups(search: $search, sort: "ID_ASC", first: 4) {
nodes {
id
name
}
}
}
Workaround
See #415519 (comment 2006217948) to add unlisted group via GraphQL.
Edited by Miranda Fluharty

