Revision 107ad431
Added by Brad Buckingham about 10 years ago
app/models/katello/glue/pulp/repo.rb | ||
---|---|---|
|
||
#do the errata remove call
|
||
unless errata_to_delete.empty?
|
||
unassociate_by_filter(ErratumFilter::CONTENT_TYPE, { "id" => { "$in" => errata_to_delete } })
|
||
unassociate_by_filter(ContentViewErratumFilter::CONTENT_TYPE,
|
||
{ "id" => { "$in" => errata_to_delete } })
|
||
end
|
||
|
||
# Remove all package groups with no packages
|
||
... | ... | |
package_groups_to_delete.compact!
|
||
|
||
unless package_groups_to_delete.empty?
|
||
unassociate_by_filter(PackageGroupFilter::CONTENT_TYPE, { "id" => { "$in" => package_groups_to_delete } })
|
||
unassociate_by_filter(ContentViewPackageGroupFilter::CONTENT_TYPE,
|
||
{ "id" => { "$in" => package_groups_to_delete } })
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Content Views Rework: prepend content_view on filter models, update routes
This commit addresses the following:
1. Rename the filter models/schema, prepending 'content_view_' to each.
This change is to be consistent with other models
(e.g. content_view_environments) as well as to ensure that there is
never a name clash with the core or future models added to katello
2. Update routes to also account for the above change. For example,
rather than define:
GET /filters/:id
defint:
GET /content_view_filters/:id