Skip to content

Pagination is hard to use due to inconsistent ordering #6124

@benasse

Description

@benasse

Describe the issue

I recently updated ShellHub to the latest version without major issues.

I’m not sure whether this comes from the React frontend or the API after the migration to PostgreSQL, but pagination is quite difficult to use. For example, when making a request like:

GET /api/devices?page=2&per_page=10&status=accepted

the order of the devices appears to be random and inconsistent.

I believe the issue may be due to the absence of a defined sort order. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions