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?
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?