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

"Limit" & "Sort" Options does not work for backups list #112

Closed
korkhau opened this issue Oct 5, 2020 · 1 comment
Closed

"Limit" & "Sort" Options does not work for backups list #112

korkhau opened this issue Oct 5, 2020 · 1 comment

Comments

@korkhau
Copy link

korkhau commented Oct 5, 2020

Describe the bug
Acquia API V2 supports offset/limit/sort options. Seems that this tool does not support them.

To Reproduce
Steps to reproduce the behavior including calling code:

  1. Call acquiacli database:backup:list {appUuid} {envName} {dbName} --limit 1 for database with few backups
  2. See full list of backups returned instead of one

Expected behavior
Only one database backup is returned

Desktop (please complete the following information):

  • OS: latest macOS & latest Ubuntu
  • 2.0.6
@typhonius
Copy link
Owner

Thanks for this, it looks like there was a clearQuery in db:backup:list that was wiping the limits, sorts etc. In fixing this, I've also realised that there was a bug in the user agent code so that's being looked at here: typhonius/acquia-php-sdk-v2#87

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

No branches or pull requests

2 participants