Bug #35750
closedhammer content-view purge only deletes up to "Entries per page" versions
Description
Description of problem:
Running "hammer content-view purge --id <id>" on a content view with 1,000 versions only deletes 16 versions.
The output shows that the command only deletes up to one page of versions and ignores the rest.
Customer being forced to re-run the command multiple times and/or increase the number of "Entries per page" at Administer -> Settings -> General, which affects everything else in the Satellite.
Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-3.1.0.1-1.el7sat
How reproducible:
Always
Steps to Reproduce:
1. Create 100 versions of a CV
2. Run "hammer content-view purge --id <id>"
3.
Actual results:
Only 16 versions are deleted (with the default "Entries per page" value of 20).
Expected results:
97 versions are deleted regardless of the value of "Entries per page".
Additional info:
hammer should iterate through the pages and delete all versions as requested in a single execution of the command.
Nowhere in the help of the command or the Satellite documentation states that the command is limited to a single page.
Updated by The Foreman Bot about 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/hammer-cli-katello/pull/873 added
Updated by Ian Ballou about 2 years ago
- Status changed from Ready For Testing to Closed
Closing since the PR is merged.