3.3. Filtering Content
Filters provide a mechanism to prevent packages from being promoted to subsequent environments. You can use package names or regular expressions in the filter to create the rules to blacklist packages. Then you can associate the filter to entire products or individual repositories within any product.
3.3.1. Creating a Filter
The following procedure shows how to create a filter for packages.
Procedure 3.3. To Create a Filter:
- Navigate to
and select the Content View you want to filter. - Click
and click . - In the Name field, specify the name of the new filter and choose a content type from the Content Type drop-down menu. Choose whether the filter includes or excludes the selected content type by selecting the Type drop-down menu. Optionally, insert a description in the Description field.
- Clickto save your new filter.
3.3.2. Adding Content to a Filter
The following procedure shows how to add content to a package filter.
Procedure 3.4. To Add Content to a Filter:
- Navigate to
and select the Content View you want to filter. - Click
and click the name of the filter you want to edit. Depending on the type of filter selected, perform the following actions: - If the filter is made for packages, specify a package name on the Packages subtab, and select a value from the drop-down menu. Click to add the package to the filter.
- If the filter is made for package groups, click the Add subtab, and choose the desired package group. Click .
- If the filter is made for errata, click the Add subtab. Select the errata type (Security, Enhancement, or Bugfix), and specify a start date and end date. Click .
- If the filter is made for errata - date and type, on the Erratum Date Range subtab, select the errata type (Security, Enhancement, or Bugfix) and specify a start date and end date. Click .
- On the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, select the desired repositories and click .
- Click. Insert a comment if desired, then click .
3.3.3. Removing Content from a Filter
The following procedure shows how to remove content from a package filter.
Procedure 3.5. To Remove Content from a Filter:
- Navigate to
and select the Content View you want to filter. - Click
and click the name of the filter you want to edit. Depending on the type of filter selected, perform the following actions: - If the filter is made for packages, click the Packages subtab and select the Package Name check box next to the package to be removed. Click to remove the package from the filter.
- If the filter is made for package groups, click the List/Remove subtab and select the Name check box next to the package group to be removed. Click to remove the package group from the filter.
- If the filter is made for errata, click the List/Remove subtab select the Errata ID check box next to the errata to be removed. Click to remove the errata from the filter.
- If the filter is made for errata - date and type, on the Erratum Date Range subtab, check the errata type (Security, Enhancement, or Bugfix). Specify the start date and end date. Click .
- On the Affected Repositories subtab, choose whether the filter will affect all or a subset of repositories. If you choose a subset of repositories, select the desired repositories and click .
- Click. Insert a comment if desired, and click .
3.3.4. Removing a Filter
The following procedure shows how to remove a filter.
Procedure 3.6. To Remove a Filter:
- Navigate to
and select the Content View you want to filter. - Click
and select the check box next to the name of the package filter you want to remove. - Click.