Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent sorting of result set of messages when sort is not given #2665

Closed
Coduz opened this issue Jul 25, 2019 · 0 comments · Fixed by #2666
Closed

Inconsistent sorting of result set of messages when sort is not given #2665

Coduz opened this issue Jul 25, 2019 · 0 comments · Fixed by #2666
Assignees
Labels
Bug This is a bug or an unexpected behaviour. Fix it! REST API We hope to REST everyday

Comments

@Coduz
Copy link
Contributor

Coduz commented Jul 25, 2019

Describe the bug
Invoking

  • GET messages
  • POST messages/_query (with no sort order defined)

via REST API will result in a not ordered result set which makes paginating not working.
This is likely due to the fact that a default sort is not defined.

Expected behavior
There should be a default ordering when requesting data.

  • Messages sorted by timestamp DESC
  • ChannelInfo sorted by full channel name ASC
  • ClientInfo sorted by full client id ASC
  • MetricInfo sorted by full channel name ASC

Screenshots
None

Version of Kapua

  • 1.0.6 and previous

Type of deployment
All

Main component affected
REST API

Additional context

@Coduz Coduz added Bug This is a bug or an unexpected behaviour. Fix it! REST API We hope to REST everyday labels Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it! REST API We hope to REST everyday
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants