Issue #1215
closedPulp - Refactor #765: Convert Pulp to use MongoEngine
Unit removal --type doesn't work with mongoengine converted types
Description
I was trying to do some orphan removal with --type for a converted mongoengine model (puppet in my case) and it didn't work for me
1. Assuming I have a puppet_module already orphaned
2. Try to remove it using orphan remove --type puppet_module as follow
[bmbouter@dhcp129-138 pulp]$ pulp-admin orphan remove --type puppet_module
You'll get the following error on the CLI:
The following resource(s) could not be found:
puppet_module (content_type_id)
Related issues
Updated by bmbouter about 9 years ago
- Subject changed from Help text for orphan removal using --type example doesn't work to Unit removal --type doesn't work with mongoengine
Updated by bmbouter about 9 years ago
- Subject changed from Unit removal --type doesn't work with mongoengine to Unit removal --type doesn't work with mongoengine converted types
Updated by mhrivnak about 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to mhrivnak
Updated by bmbouter about 9 years ago
- Related to Issue #1239: Pulp FileDistributor base class raises exception when operating on mongoengine based unit added
Updated by bmbouter about 9 years ago
- Related to deleted (Issue #1239: Pulp FileDistributor base class raises exception when operating on mongoengine based unit)
Updated by bmbouter about 9 years ago
- Related to Issue #1239: Pulp FileDistributor base class raises exception when operating on mongoengine based unit added
Updated by mhrivnak about 9 years ago
- Status changed from ASSIGNED to POST
Added by mhrivnak about 9 years ago
Added by mhrivnak about 9 years ago
Revision 112ceead | View on GitHub
fixed orphan removal by type when the type uses mongoengine
Several places in the code, only two of which I touched here, need to know the unit key fields for a given type ID. I created a new controller function that takes care of finding that information regardless of whether the type is defined the new way (mongonengine) or old way. The next step will be to use that controller function in additional places, but that is beyond the scope of this bug fix.
fixes #1215
Updated by mhrivnak about 9 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp:pulp|112ceead7cab883789b97ec529a351b16723e8d4.
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
fixed orphan removal by type when the type uses mongoengine
Several places in the code, only two of which I touched here, need to know the unit key fields for a given type ID. I created a new controller function that takes care of finding that information regardless of whether the type is defined the new way (mongonengine) or old way. The next step will be to use that controller function in additional places, but that is beyond the scope of this bug fix.
fixes #1215