Add support for groups that have only digits in their names and contain no alphabetic characters #467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
Problem Description
When configuring a GitLab multi-branch project, we search for projects by entering an OWNER name.
The OWNER can be a user or a group.
It has been found that projects belonging to groups with numeric names (e.g., group named "566") cannot be found.
Solution Description
The solution is to find the group using its ID instead of its name.
To implement this, we will reverse the current order of operations in the code.
The current order of operations for searching for a group in the code is:
Search for the OWNER by username
Search for the OWNER by group name or group ID
The solution is to reverse the search order:
Search for the OWNER by group name or group ID
Search for the OWNER by username
Testing done
Test finding OWNER by group name
Test finding OWNER by group ID
Test finding OWNER by username
Submitter checklist