-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
P3Low priority. No set deadline to address.Low priority. No set deadline to address.Size: MediumThe work involved in addressing this issue is a sizable amount. 1-2 days of work.The work involved in addressing this issue is a sizable amount. 1-2 days of work.Status: AvailableWork on this issue has not yet started and is available to be worked on.Work on this issue has not yet started and is available to be worked on.Type: FeatureAddresses adding a new feature to the application.Addresses adding a new feature to the application.
Milestone
Description
Describe the problem that this feature would solve
Right now you can POST to /users with a single User. You should also be able to POST to /users with a list of users to create. Thunder should then issue a batch create request to the database with those users.
Describe the solution you'd like
A new endpoint in the UserResource that is very similar to the current POST /users, but takes in a list of users.
The method should call into the UsersDao with that list of users, and the UsersDao should do a batch create.
Additional context
For Dynamo: Will probably have to do a batch get, check for existing primary keys, and then do the batch update. Dynamo doesn't support conditional put with batch requests
Questions:
- What do to if one of the user creations fail? Don't store any the DB or keep the ones that succeed? Maybe make that an optional query parameter?
Metadata
Metadata
Assignees
Labels
P3Low priority. No set deadline to address.Low priority. No set deadline to address.Size: MediumThe work involved in addressing this issue is a sizable amount. 1-2 days of work.The work involved in addressing this issue is a sizable amount. 1-2 days of work.Status: AvailableWork on this issue has not yet started and is available to be worked on.Work on this issue has not yet started and is available to be worked on.Type: FeatureAddresses adding a new feature to the application.Addresses adding a new feature to the application.