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
This function is used to create user objects from usernames, but does so by fetching user objects from the database in a loop. This is inefficient, and should be done in bulk. The main question is how username that are not found should be handled and errors returned to the endpoint. One idea I had was to do a filter on User objects to return the full users, and for any usernames not in the returned list, we can raise an error stating that they do not exist.
The text was updated successfully, but these errors were encountered:
multinet-api/multinet/api/views/workspace.py
Lines 28 to 40 in 11fc729
This function is used to create user objects from usernames, but does so by fetching user objects from the database in a loop. This is inefficient, and should be done in bulk. The main question is how username that are not found should be handled and errors returned to the endpoint. One idea I had was to do a filter on
User
objects to return the full users, and for any usernames not in the returned list, we can raise an error stating that they do not exist.The text was updated successfully, but these errors were encountered: