cisagov / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
371 stars 54 forks source link

Batch uploading of users #1901

Open mbachtell-nais opened 1 year ago

Matthew-Grayson commented 1 year ago

This one is more involved than it seems. The upload user endpoint currently does around six separate queries per user upload (e.g., checking if the user already exists, inserting the user, checking that the user was properly inserted, and returning information about the user after insert). We'll have to examine the code at a few different steps, frontend, backend, etc..

In any case, batch uploading of organizations has more utility in the near future, is easier to optimize, and will inform how we refactor batch uploading of users.