Skip to content

[bug] REST API showing most recent as last #1040

Description

@nemesifier

Describe the bug
The command list API is showing most recent commands in the last page.

I haven't verified whether other API endpoints suffer the same issue but we have to verify that all endpoints return recent data first.

Steps To Reproduce

  • Create several commands for a device
  • Open REST API command list
  • The most recent commands are shown at the bottom

Expected behavior
The most recent commands should be shown on top.

Let's take advantage to verify that all the list API endpoints for this module show most recent data first.

Let's not forget to add at least unit test for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status
    Done
    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions