Project

General

Profile

Actions

Bug #17108

closed

Content view erratum filter by date: default types to all

Added by Brad Buckingham about 8 years ago. Updated over 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1386688

Description of problem:

When creating a content view erratum by date filter in the UI,
the default behavior is to set 'types' to all supported types
(e.g. security, enhancement, bugfix). In addition, the user
is required to select at least one type.

This is inconsistent with the API/CLI where the user
does not have to specify 'types'.

The intent of this issue is to make the API/CLI behave
consistently with the UI.

Steps to Reproduce:

1. create a erratum by date filter rule:

hammer> content-view filter rule create --content-view-id 5 --content-view-filter-id 11 --start-date "2000-01-01" --end-date "2016-10-16"
Filter rule created

2. inspect the created rule
hammer> content-view filter info --content-view-id 5 --id 11

Actual results:

Observe that 'Types' is not included.

Expected results:

If 'types' is not provided, default it to all supported. E.g.:
Types: bugfix, enhancement, security

Actions

Also available in: Atom PDF