Get-GitLabNamespace does not support pagination. Breaks New-GitLabProject
1. Provide a general summary of the issue in the Title above
2. Describe Your Environment
Operating System and PowerShell
Name Value
PSVersion 7.0.1 PSEdition Core GitCommitId 7.0.1 OS Darwin 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
3. Expected Behavior
When running Get-GitLabNamespace it should support pagination.
4.Current Behavior
When running Get-GitLabNamespace only the first 100 results are returned. This breaks the New-GitLabProject command it is unable to locate the namespace if it is not in the first page.
5. Possible Solution
Two possible solutions:
- Update Get-GitLabNamespace to support pagination
- Update New-GitLabProject to pass the NameSpace to the search command to ensure less than 100 results are returned
6. Context
Unable to use New-GitLabProject
I am happy to throw together a fix for this if this repo is being maintained still.