Skip to content

Fix paging issue on older versions of octopus - #261

Merged
harrisonmeister merged 2 commits into
masterfrom
mh/usage-count-pagefix
Sep 16, 2026
Merged

harrisonmeister merged 2 commits into
masterfrom
mh/usage-count-pagefix

Conversation

@harrisonmeister

Copy link
Copy Markdown
Contributor

Older versions of Octopus (3.17.14 for example) don't have the property NumberOfPages. This fix falls back to the Page.Next approach which is present in the older versions.

Older versions of Octopus (3.17.14 for example)  don't have the property NumberOfPages. This fix falls back to the Page.Next approach which is present in the older versions.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The critical pagination issue must be fixed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates usage-count pagination to support older Octopus versions without NumberOfPages.

Changes:

  • Adds cross-version pagination detection.
  • Applies fallback pagination to count functions.
  • Updates pagination logging.
File summaries
File Summary
REST/PowerShell/Administration/GetUsageCounts.ps1 Adds compatibility pagination logic. Critical issue: an empty Page.Next link may be treated as present, causing repeated empty-page requests.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread REST/PowerShell/Administration/GetUsageCounts.ps1 Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@rohitnb
rohitnb self-requested a review September 16, 2026 15:34
@harrisonmeister
harrisonmeister merged commit 69cd17c into master Sep 16, 2026
3 checks passed
@harrisonmeister
harrisonmeister deleted the mh/usage-count-pagefix branch September 16, 2026 15:44
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.

3 participants