Issue #1590
closedCriteria object needs to be updated for use with pymongo 3
Description
Criteria object[0] is used to pass query parameters to various mongoengine managers. Here[1] is just one example. Pymongo 3 stopped using the parameter 'fields' and replaced it with 'projection'. We need to update criteria object and it's use to make sure it is in compliance with pymongo 3.
[0] https://github.com/pulp/pulp/blob/master/server/pulp/server/db/model/criteria.py#L13
[1] https://github.com/pulp/pulp/blob/master/server/pulp/server/managers/consumer/query.py#L72
Related issues
Added by rbarlow almost 9 years ago
Updated by semyers almost 9 years ago
- Related to Task #1578: Incoming searches should be translated by the model added
Updated by amacdona@redhat.com almost 9 years ago
Here is the relevant migration guide from pymongo: http://api.mongodb.org/python/current/migrate-to-pymongo3.html#fields-renamed-projection
Updated by pcreech almost 9 years ago
- Status changed from NEW to MODIFIED
- Assignee set to pcreech
This appears to be resolved with the pull request [0].
All underlying queries have been converted to using 'projection' instead of 'fields'
The criteria object's fields have been left alone to maintain api compatibility
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Update Pulp to work with the pymongo 3.0.0 API.
https://pulp.plan.io/issues/1528
fixes #1528