Content view erratum filter by date: default types to all
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
Observe that 'Types' is not included.
If 'types' is not provided, default it to all supported. E.g.:
Types: bugfix, enhancement, security
fixes #17108 - content view erratum filter: default types
When creating a content view erratum by date/type filter rule,
if the user does not provide a value for 'types', default
it to all supported types (e.g. enhancement,bugfix,security).
This behavior is consistent with the default provided
by the UI.