Bug #15274
closed[Sat6] hammer content-view filter rule list shows only 20 entries
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1305055
Description of problem:
Trying to view the rules for a filter via hammer results
in showing only 20 entries.
--full-results appears to be unimplemented
Version-Release number of selected component (if applicable):
Sat 6.1.6
How reproducible:
100%
Steps to Reproduce:
- Create a content view filter with more than 20 entries
1. hammer --username=admin --password=<password> content-view filter create --organization=org-example --content-view='filter test' --name='test_filter' --inclusion=true --type=rpm
2. hammer --username=admin --password=<password> content-view filter rule create --organization=org-example --content-view='filter test' --content-view-filter='test_filter' --name a
3. Repeat the above until you have > 20
4. hammer --username=admin --password=<password> content-view filter rule list --organization=org-example --content-view='filter test' --content-view-filter='test_filter'
Actual results:
Only 20 rules are show
Expected results:
As the default across hammer seems to be 20 items per page,
we should implement `--full-results` so that all results
can be returned.
Additional info:
See also https://bugzilla.redhat.com/show_bug.cgi?id=1202050
which implemented this for `hammer content-view list` and
`hammer puppet-module list`
Same applies to filter list, there is no --full-results implemented