Project

Profile

Help

Issue #1590

closed

Criteria object needs to be updated for use with pymongo 3

Added by dkliban@redhat.com almost 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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

Related to Pulp - Task #1578: Incoming searches should be translated by the modelCLOSED - WONTFIX

Actions

Also available in: Atom PDF