Description of problem: Currently the content view filters controller does not honor hte name parameter. Using hammer you can reproduce this issue: hammer content-view filter create --organization=Example_Org1 --content-view=SOE-OS --type=erratum --name='Restrict Errata' --inclusion=false hammer content-view filter create --organization=Example_Org1 --content-view=SOE-OS --type=erratum --name='Restrict Errata2' --inclusion=false hammer content-view filter rule create --content-view=SOE-OS --content-view-filter='Restrict Errata' --organization=Example_Org1 --start-date=2013-11-20 will result in: Error: content_view_filter found more than once
This requires a change to the index method of the content views controller. Look at the products index controller on how it accepts param :name, String, :desc => N_("Filter products by name")
*** Bug 1101689 has been marked as a duplicate of this bug. ***
*** Bug 1099974 has been marked as a duplicate of this bug. ***
Created redmine issue http://projects.theforeman.org/issues/6064 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/6064 has been closed
Still cannot handle content view filter by name. Now it is: Error: content_view_filter not found # hammer content-view filter info --organization-id 284 --content-view cont-view --id 6 Filter ID: 6 Name: Restrict Type: erratum Inclusion: false Repositories: Rules: # hammer content-view filter info --organization-id 284 --content-view cont-view --name Restrict Error: content_view_filter not found # hammer content-view filter rule create --content-view cont-view --content-view-filter Restrict --organization-id 284 --start-date=2013-11-20 Could not create the filter rule: Error: content_view_filter not found
Verified. Satellite-6.0.3-RHEL-6-20140620.0 # hammer content-view filter rule create --content-view=SOE-OS --content-view-filter='Restrict Errata' --organization=Example_Org1 --start-date=2013-11-20 Filter rule created # hammer content-view filter info --organization-id 4 --content-view SOE-OS --id 1 Filter ID: 1 Name: Restrict Errata Type: erratum Inclusion: false Repositories: Rules: 1) ID: 1 Start Date: 2013-11-20 Created: 2014/06/23 12:16:50 Updated: 2014/06/23 12:16:50
This was delivered with 6.0.3, which is the Satellite 6 Beta.