Actions
Test #2603
closedSearch API does weird filtering on association
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Version:
Platform Release:
Tags:
Sprint:
Quarter:
Description
I am trying to use the search API against a repo.
I was trying to sort the results descending by the association's created field.
I am issuing a call like:
self._req('POST', 'repositories/%s/search/units/' %
repo_id, data={'criteria': {u'sort': {'association':
[[u'created', u'descending']]}, 'limit': 1000, 'filters':
{'unit': {}}, u'fields': {'unit': [u'name',
u'pulp_user_metadata', u'sadName', u'unitName', u'unitType',
u'version']}, 'type_ids': ['ddf']}}, expected=200,
safe_retry=True).json()
This returns 1 item, when it should return some 600.
If I changed the sort criterion to be by unit's created, it returns the expected number of units.
I have discussed this on #pulp-dev and mhrivnak agreed it's worth filing it.
Actions