Bug 1458843 - Hammer csv import package rules doesn't handle rules with the same name
Summary: Hammer csv import package rules doesn't handle rules with the same name
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-05 15:33 UTC by David Davis
Modified: 2020-04-14 12:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-01 16:34:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19927 0 Normal Closed Hammer csv import package rules doesn't handle rules with the same name 2020-04-14 12:44:55 UTC

Description David Davis 2017-06-05 15:33:56 UTC
Steps to reproduce:

1. Create a content view with a package filter
2. Create two rules on this filter with the same name (e.g. exclude vim version > 3.0 and vim version = 3.0)
3. Export your filters
4. Remove the filters
5. Do an import

Expected results:

Your filter should have two rules (e.g. exclude vim version > 3.0 and vim version = 3.0)

Actual result:

Your filter only has one rule, the second one (e.g. vim version = 3.0).

The problem is that name isn’t unique across filter rules but hammer csv assumes it is:

https://git.io/vHVBG
https://git.io/vHVBE

Comment 1 Satellite Program 2017-06-05 16:02:56 UTC
Upstream bug assigned to tomckay

Comment 5 Satellite Program 2017-06-08 14:02:55 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19927 has been resolved.


Note You need to log in before you can comment on or make changes to this bug.