Skip to content

Conversation

@jarugupj
Copy link
Contributor

@jarugupj jarugupj commented Sep 8, 2025

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

Copy link

@mesa-dot-dev mesa-dot-dev bot left a comment

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

@masnwilliams masnwilliams requested a review from rgarcia September 9, 2025 18:13
Copy link
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

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

read above comment ^^

Copy link
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

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

lgtm

@jarugupj jarugupj merged commit 0c4c8c1 into main Sep 10, 2025
1 check passed
@jarugupj jarugupj 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.

4 participants