Harvest-API: `order_by` descending prefix (`-field`) is silently ignored on list endpoints
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 200
- Avg merge
- 4h 56m
- Merged PRs (30d)
- 5
Description
**Description**
Using a minus prefix to request descending sort order (e.g. order_by=-name) returns the same results as ascending order with no indication the prefix was ignored.
**Steps to Reproduce**
GET https://harvest.data.gov/harvest_sources/?per_page=3&order_by=name GET https://harvest.data.gov/harvest_sources/?per_page=3&order_by=-name
**Expected Behavior**
Minus prefix returns results in descending order.
**Actual Behavior**
Both requests return identical results in the same order.
**Notes**
Confidence: MEDIUM -- tested on /harvest_sources/ with name field only. Needs testing with additional fields and endpoints to confirm the minus prefix is ignored generally.
Contributor guide
Assessment
This issue has not been assessed yet.