Skip to content

Phani/cli changes for pagination - #13

Merged
pbjaru merged 7 commits into
mainfrom
phani/cli-changes-for-pagination
Sep 10, 2025
Merged

Phani/cli changes for pagination#13
pbjaru merged 7 commits into
mainfrom
phani/cli-changes-for-pagination

Conversation

@pbjaru

@pbjaru pbjaru commented Sep 8, 2025

Copy link
Copy Markdown
Contributor

TL;DR

Adds --limit and --offset flags to the app history and deploy history commands to support pagination.

Why we made these changes

Commands that return a large number of items could be slow, consume too much memory, or hit API rate limits. Fetching results in pages provides a faster and more reliable user experience for users with many resources.

What changed?

  • cmd/app.go & cmd/deploy.go: Replaced the --all flag with --limit (default 100) and --offset flags on the app history and deploy history commands.
  • go.mod / go.sum: Bumped the kernel-go-sdk dependency to v0.11.1 to support passing the new pagination parameters to the API.
  • README.md: Updated documentation to reflect the new --limit flag, replacing --all.

Description generated by Mesa. Update settings

@mesa-dot-dev mesa-dot-dev Bot 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.

Performed full review of b0c753d...7997b8c

Tip

⚡ Quick Actions

This review was generated by Mesa.

Actions:

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

6 files reviewed | 5 comments | Review on Mesa | Edit Reviewer Settings

Comment thread cmd/app.go Outdated
Comment thread cmd/app.go Outdated
Comment thread cmd/deploy.go Outdated
Comment thread cmd/deploy.go Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread cmd/app.go Outdated
Comment thread scripts/go-mod-replace-kernel.sh Outdated
Comment thread go.mod Outdated
Comment thread go.mod Outdated
@masnwilliams
masnwilliams requested a review from rgarcia September 9, 2025 18:13
Comment thread README.md Outdated

@masnwilliams masnwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

read above comment ^^

Comment thread cmd/deploy.go

@masnwilliams masnwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Comment thread scripts/go-mod-replace-kernel.sh Outdated
@pbjaru
pbjaru merged commit 0c4c8c1 into main Sep 10, 2025
1 check passed
@pbjaru
pbjaru deleted the phani/cli-changes-for-pagination branch September 10, 2025 15:34
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