Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-13679

hammer content-view purge only deletes up to "Entries per page" versions

XMLWordPrintable

    • Sprint 108, Sprint 111, Sprint 112, Sprint 113
    • Important
    • None

      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.

              rhn-support-chrobert Chris Roberts
              satellite-focaccia-bot Focaccia Bot
              Ian Ballou Ian Ballou
              Sam Bible Sam Bible
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: