Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Get-GitLabNamespace does not support pagination. Breaks New-GitLabProject #225

Open
M1kep opened this issue May 27, 2020 · 0 comments
Open

Comments

@M1kep
Copy link

M1kep commented May 27, 2020

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:

  1. Update Get-GitLabNamespace to support pagination
  2. 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant