Skip to content

NOISSUE - Add server-side ordering for Atom lists - #83

Open
fbugarski wants to merge 1 commit into
mainfrom
atom-server-side-list-ordering
Open

NOISSUE - Add server-side ordering for Atom lists#83
fbugarski wants to merge 1 commit into
mainfrom
atom-server-side-list-ordering

Conversation

@fbugarski

Copy link
Copy Markdown

What type of PR is this?

This is a feature because it adds server-side ordering support for Atom list queries.

What does this do?

Adds GraphQL order and dir arguments for Atom list queries:

  • entities
  • resources
  • groups/object groups
  • tenants

The ordering is applied in the backend before pagination, so list pages can be
globally sorted without MG UI fetching and sorting full datasets on the frontend.

This also updates the Atom app CRUD list UI to expose sort controls for the supported list pages.

Which issue(s) does this PR fix/relate to?

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

Yes. Added tests/m44_list_sorting.rs for server-side list ordering and updated existing tests for the new list params.

Verified locally:

  • cargo +1.89.0 check
  • cargo +1.89.0 test --no-run
  • cd app && pnpm run lint
  • cd app && pnpm run test
  • cd app && pnpm exec tsc --noEmit --incremental false

Did you document any new/modified features?

No separate documentation update. This PR updates the GraphQL schema and Atom app UI behavior directly.

Notes

This is the backend prerequisite for the MG UI ordering fix. MG UI should forward
order/dir to Atom instead of doing frontend full-list sorting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant