Project

General

Profile

Bug #6966

API: sorting should contain a default direction

Added by Walden Raines almost 6 years ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
API
Target version:
-
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

If you do not specify a direction when using the order parameter you will receive the following error message:

{"displayMessage":"Cannot sort by ''","errors":["Cannot sort by ''"]}

We should default to DESC if no direction is supplied.

Steps to Reproduce

1. Hit an index URL with ordering such as /katello/api/v2/products?order=name&organization_id=1
2. Notice above error message

History

#1 Updated by Eric Helms over 5 years ago

  • Target version changed from 55 to 56

#2 Updated by Eric Helms over 5 years ago

  • Target version deleted (56)

#3 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 86

#4 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 114

#5 Updated by John Mitsch 9 months ago

  • Status changed from New to Closed

Thanks for reporting this issue. This issue was created over 4 years ago and hasn't seen an update in 1 year. We are closing this in an effort to keep a realistic backlog. Please open up a new issue that includes a link to this issue if you feel this still needs to be addressed. We can then triage the new issue and reassess.

#6 Updated by Justin Sherrill 9 months ago

  • Target version deleted (Katello Backlog)

#7 Updated by Justin Sherrill 9 months ago

  • Status changed from Closed to Rejected

Also available in: Atom PDF