Project

General

Profile

Actions

Bug #37993

closed

Content view purge count is misleading

Added by Chris Roberts 14 days ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Using `hammer content-view purge -id <id> -organization-id 1` to delete old content version no longer works.

How reproducible:

Easy

Is this issue a regression from an earlier version:

Yes

Steps to Reproduce:

1. create a CV and publish 4 versions consequently

2. purge old versions(by default 3) with `hammer content-view purge -id <id> -organization-id 1`

Actual behavior:

No versions to delete.

Expected behavior:

The first 3 versions should be purged.

Business Impact / Additional info:

It seems like --count no longer works. Only --count 1 works though.

Looking at the code count is actually doing what it's supposed to it's the numbers of version to keep not purge

Actions #1

Updated by The Foreman Bot 14 days ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/968 added
Actions #2

Updated by Partha Aji 8 days ago

  • Target version changed from Katello 4.15.0 to Katello 4.16.0
  • Triaged changed from No to Yes
Actions #3

Updated by Chris Roberts 1 day ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF