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

User Result Order #326

Closed
Brandogs opened this issue Apr 25, 2018 · 2 comments
Closed

User Result Order #326

Brandogs opened this issue Apr 25, 2018 · 2 comments

Comments

@Brandogs
Copy link
Contributor

Can we adjust the order of users to always return the active user's account first, followed by the other account they have access to?

https://dev.toolbox.knowmetools.com/know-me/users

@cdriehuys
Copy link
Member

Would it be enough to indicate which user is owned by the active user? We could just add that property to the user serializer.

[
  {
    "id": 1,
    ...
    "is_owner": false
  },
  {
    "id": 7,
    ...
    "is_owner": true
  }
]

@Brandogs
Copy link
Contributor Author

That would helpful too, but I do think we want it sorted by is_owner as well so we get the logged in user first.

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

No branches or pull requests

2 participants