Actions
Bug #14530
closedhammer queries defaults to 1000 items per page
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1247781
Description of problem:
hammer queries default to 1000 items per page which makes hammer very slow
Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 14
How reproducible:
Always
- cat /etc/hammer/cli_config.yml
:ui:
:interactive: true
:per_page: 20
:history_file: '~/.foreman/history'
- enable/disable color output of logger in Clamp commands
:watch_plain: false
:log_dir: '~/.foreman/log'
:log_level: 'error'
:log_api_calls: false
#:log_owner: 'foreman'
#:log_group: 'foreman'
#:log_size: 5 #MB
- hammer
u admin -p changeme repository list --organization-id=3|-------------------------------------------------------|---------------------------------|--------------|--------------------------------------------------------------------
--
ID | NAME | PRODUCT | CONTENT TYPE | URL
---|-------------------------------------------------------|---------------------------------|--------------|--------------------------------------------------------------------
27 | Red Hat Enterprise Linux 5 Server RPMs x86_64 5Server | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os
1 | Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server | Red Hat Enterprise Linux Server | yum | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
---|-------------------------------------------------------|---------------------------------|--------------|--------------------------------------------------------------------
- time hammer
u admin -p changeme erratum list|----------------|-------------|---------------------------------------------------------------------------------
....
....
------------------------------------
real 7m58.835s
user 7m32.086s
sys 0m0.266s
Actual results:
See above that the erratum list command took almost 8 minutes to finish
Expected results:
Pagination should work
Additional info:
Actions