-
Notifications
You must be signed in to change notification settings - Fork 1
Phani/cli changes for pagination #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read above comment ^^
masnwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
TL;DR
Adds
--limitand--offsetflags to theapp historyanddeploy historycommands 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--allflag with--limit(default 100) and--offsetflags on theapp historyanddeploy historycommands.go.mod/go.sum: Bumped thekernel-go-sdkdependency tov0.11.1to support passing the new pagination parameters to the API.README.md: Updated documentation to reflect the new--limitflag, replacing--all.Description generated by Mesa. Update settings