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

perf(users): use GROUP_CONCAT for roles/depots #4165

Merged
merged 2 commits into from
Feb 13, 2020

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Feb 13, 2020

Uses GROUP_CONCAT() to ensure that roles and depots are assigned to users instead of using JavaScript Objects. This is also helpful because we can order the values in alphabetical order.

It looks like this:
image

Closes #4136

Uses GROUP_CONCAT() to ensure that roles and depots are assigned to
users instead of using JavaScript Objects.  This is also helpful because
we can order the values in alphabetical order.

Closes Third-Culture-Software#4136
This commit achieves the final part of Third-Culture-Software#4021 by adding the cashboxes a
user has access to onto the user grid.
@jniles
Copy link
Collaborator Author

jniles commented Feb 13, 2020

bors r+

bors bot added a commit that referenced this pull request Feb 13, 2020
4165: perf(users): use GROUP_CONCAT for roles/depots r=jniles a=jniles

Uses GROUP_CONCAT() to ensure that roles and depots are assigned to users instead of using JavaScript Objects.  This is also helpful because we can order the values in alphabetical order.

Closes #4136

Co-authored-by: Jonathan Niles <[email protected]>
@bors
Copy link
Contributor

bors bot commented Feb 13, 2020

@bors bors bot merged commit cb266e9 into Third-Culture-Software:master Feb 13, 2020
@jniles jniles deleted the chore-users-group-concat branch February 13, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite GET /users to use GROUP_CONCAT for depots and roles
2 participants