You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /users route currently does and SQL JOIN in javascript, and involves rather complicated code to list the depots and roles for each user. It would be good to simply JOIN, then do a GROUP_CONCAT() to assemble a list of depots/roles assigned to each user.
Whoever tackles this should look to the feeCenter SQL for inspiration about how to accomplish this task.
The text was updated successfully, but these errors were encountered:
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]>
The
/users
route currently does and SQL JOIN in javascript, and involves rather complicated code to list the depots and roles for each user. It would be good to simply JOIN, then do a GROUP_CONCAT() to assemble a list of depots/roles assigned to each user.Whoever tackles this should look to the feeCenter SQL for inspiration about how to accomplish this task.
The text was updated successfully, but these errors were encountered: