| Summary: | Deleting a package group doesn't remove it from any categories it is in | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | user-experience | Assignee: | Todd Sanders <tsanders> |
| Status: | CLOSED NOTABUG | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | jmatthew, mhrivnak, tsanders |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-27 14:10:21 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Categories and Groups and even references of packages in a group are not a strong linkage. It's valid to have a group reference in a Category and the group doesn't exist. The reason is that the data from comps.xml may be aggregated across repos and a group defined in a category may exist in a diff repo from where the category is. I recommend we moved this to NOT_A_BUG I agree that this is not a bug. Also, pulp currently does not facilitate editing of groups and categories anyway. |
To replicate: * Create a package group (test-group-2) * Create a category (test-category-1) * Add test-group-2 to test-category-1 * Delete test-group-2 The category in comps.xml still references test-group-2. We need to either: * Have Pulp remove it from the category * Not let the user delete the group until it's explicitly removed from the category The easiest way to see this is to open a second terminal and do a watch on the comps.xml file in the repo: watch -n 1 cat comps.xml After deleting the group, my comps.xml was left in an inconsistent state: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd"> <comps> <group> <id>test-group-1</id> <default>true</default> <uservisible>true</uservisible> <display_order>1024</display_order> <name>Test Group 1</name> <description>Test Group 1 Description</description> <packagelist> <packagereq type="default">gofer</packagereq> </packagelist> </group> <category> <id>test-category-1</id> <display_order>99</display_order> <name>Test Category 1</name> <description>Test Category 1 Description</description> <grouplist> <groupid>test-group-2</groupid> </grouplist> </category> </comps>