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

Default sorting of sessions #3307

Closed
4 of 6 tasks
marcinfigiel opened this issue Jun 7, 2023 · 1 comment · Fixed by #3324
Closed
4 of 6 tasks

Default sorting of sessions #3307

marcinfigiel opened this issue Jun 7, 2023 · 1 comment · Fixed by #3324
Labels
feat New feature or request.

Comments

@marcinfigiel
Copy link

Preflight checklist

Describe your problem

Currently, the sessions returned by the /admin/sessions and /admin/identities/{id}/sessions endpoints are not sorted in a useful manner. This poses challenges or even renders these endpoints unusable, depending on the use case. For example, it becomes difficult to find a user's last login time.
Having a default sorting that returns the newest session first would greatly enhance the usability of these endpoints.

Describe your ideal solution

Sort the sessions so the newest ones are returned first.

Workarounds or alternatives

I can fetch all the sessions and sort them on my end to find what I'm looking for, but it's not a feasible solution.

Version

SaaS

Additional Context

No response

@marcinfigiel marcinfigiel added the feat New feature or request. label Jun 7, 2023
@kelkarajay
Copy link
Contributor

@marcinfigiel there was work in progress to fix that here - #2939. There was (iirc) one failing test that remained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants