RallyTools / rally-node

A Node.js Toolkit for Accessing Rally's Webservice API
MIT License
53 stars 25 forks source link

Bulk/Batch CRUD Operations #46

Open rob9095 opened 5 years ago

rob9095 commented 5 years ago

Is there any way to do bulk or batch CRUD operations? For example, I have a script that creates a new user and then I need to add each project permission 1 by 1 to that user. Since there are about 150 permissions I would like to send 1 api request to create them all not 150 individual requests. In my case, there are only 3 parent projects. However when I add the permission on the parent project all the children projects do not get the same permission. I've also tried setting a default permission for the workspace but even after doing this and giving the user a workspace permission they still do not get access to the projects and child projects. Is there a better way to go about this? I noticed the rally frontend doesn't use the api and will let you bulk update permissions in one request.

rob9095 commented 5 years ago

I created a PR to support batch type requests on the create method (https://github.com/RallyTools/rally-node/pull/47)