Skip to content
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

CLI: Implement pagination support #442

Closed
rajdip-b opened this issue Sep 17, 2024 · 3 comments · Fixed by #453
Closed

CLI: Implement pagination support #442

rajdip-b opened this issue Sep 17, 2024 · 3 comments · Fixed by #453
Assignees
Labels
difficulty: 2 good first issue Good for newcomers priority: medium released scope: cli Everything related to the CLI type: enhancement New feature or request

Comments

@rajdip-b
Copy link
Member

Description

Right now, we can fetch two kinds of entities from the backend using CLI:

  • Workspace
  • Environment

The logic is fully implemented. We would like to additionally implement the paginated response support for each of the command's list subcommand.

Ideally, we want to add the following additional optional parameters to each of the command's list sub-command:

  • -p, --page <page>, Index of the page
  • -l, --limit <items>, Total number of items per page
  • -o, --order <sort order>, order to sort by - either ascending (ASC) or descending (DESC)
  • --sort <field name>, Field to sort by
  • -s, --search <search>, Search term

Solution

You would need to make the changes to these files:

@rajdip-b rajdip-b added type: enhancement New feature or request good first issue Good for newcomers priority: medium difficulty: 2 scope: cli Everything related to the CLI labels Sep 17, 2024
@Nil2000
Copy link
Contributor

Nil2000 commented Sep 20, 2024

/attempt

Copy link

Assigned the issue to @Nil2000!

@rajdip-b
Copy link
Member Author

🎉 This issue has been resolved in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: 2 good first issue Good for newcomers priority: medium released scope: cli Everything related to the CLI type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants