Project

General

Profile

Actions

Bug #19927

closed

Hammer csv import package rules doesn't handle rules with the same name

Added by David Davis almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
content-view-filters
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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


Related issues 1 (1 open0 closed)

Blocks Hammer CLI CSV - Bug #19724: Support importing/exporting erratum filtersNewThomas McKay05/31/2017Actions
Actions

Also available in: Atom PDF