-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Labels
Investigatingwhen an issue needs further investigation by a maintainer. Used only by maintainer.when an issue needs further investigation by a maintainer. Used only by maintainer.bugwhen a bug has been identified or filedwhen a bug has been identified or filed
Description
It seems to me that #363 wasn't fixed in #367.
Get-VSTeamProject still only returns the first 100 projects, and only those projects are saved in the cache.
Adding Top to the PSDefaultParameterValues helps with calling Get-VSTeamProject, but it doesn't increase the cache size. Trying to get a project by name that's not in the first 100 projects still fails validation.
Steps to reproduce
Assuming an account with 129 projects.
(Get-VSTeamProject).Count
$PSDefaultParameterValues.Add("*-VSTeam*:Top",1000)
(Get-VSTeamProject).Count
Get-VSTeamProject -Name 'TestProject101'
Expected behavior
129
129
Name Description
---- -----------
TestProject101
Actual behavior
100
129
Get-VSTeamProject: Cannot validate argument on parameter 'Name'. 'TestProject101' is invalid
Environment data
OS
- macOS
- Windows
- Linux
Server
- TFS 2017
- TFS 2018
- Azure DevOps Server
- Azure DevOps Service
> Get-VSTeamAPIVersion
Name Value
---- -----
HierarchyQuery 5.1-preview
Build 5.1
DistributedTaskReleased 5.1
ServiceEndpoints 5.0-preview
Graph 6.0-preview
Release 5.1
Tfvc 5.1
TaskGroups 6.0-preview
MemberEntitlementManagement 6.0-preview
Pipelines 5.1-preview
Git 5.1
ExtensionsManagement 6.0-preview
VariableGroups 5.1-preview.1
Packaging 6.0-preview
Core 5.1
Version VSTS
DistributedTask 6.0-preview
Policy 5.1
Processes 6.0-preview> $PSVersionTable
Name Value
---- -----
PSVersion 7.0.3
PSEdition Core
GitCommitId 7.0.3
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Investigatingwhen an issue needs further investigation by a maintainer. Used only by maintainer.when an issue needs further investigation by a maintainer. Used only by maintainer.bugwhen a bug has been identified or filedwhen a bug has been identified or filed