Skip to content

Conversation

@AnatoliB
Copy link
Contributor

@AnatoliB AnatoliB commented Aug 21, 2019

When a module on the PowerShell Gallery contains many (100+) versions, PowerShell Gallery API returns a limited number of entries and a link to the next page. Before this fix, PS Worker would process the first page only, failing to detect the latest version correctly in some cases. This fix makes PS Worker request and process all the subsequent pages.

Copy link
Contributor

@Francisco-Gamino Francisco-Gamino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AnatoliB, the code change LGTM.

Something to consider is that if while processing multiple pages, if the PSGallery becomes unavailable, then GetLatestPublishedModuleVersion will return the latest publish version up to point when we could not reach the PSGallery anymore. We should optimize this code later to detect this.

@AnatoliB AnatoliB merged commit 5d39f79 into Azure:dev Aug 21, 2019
@AnatoliB AnatoliB deleted the handle-long-version-lists-2 branch September 12, 2019 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants