This is probably not a bug as such, but a very troublesome feature. I was trying to Bulk Invite From File, and got a nasty shock when I uploaded the file and it immediately sent the email to 30 people. I guess I assumed there would be a step where it shows that the file uploaded and then offered a button to actually do the send. So I uploaded the file–intending just to familiarize myself with the process–and embarrassed myself by sending invitations before a key piece was ready. I had to send a manual followup explaining the glitch.
I really think that Bulk Invite button needs a confirmation or other speed bump, because the consequences are fairly drastic.
Currently, CSV is processed fully in back-end so it will need some front-end processing to get number of rows in file. That’s why I have just added a generic popup Are you sure? instead. I think it should be fine since our purpose is more of giving a confirmation dialog to user before proceeding.
If we want to check after file is uploaded and before invites are not sent, it will require a major cleanup on front-end and back-end. Front-end uses a mix-in for upload which is used at multiple places so modifying it can create a big issue. Back-end is also coupled to do processing of CSV and sending invites in one go.
I understand that it’s significantly more work to show the row count here, but I’m also not happy with the generic “Are you sure?” message. I’d suggest something like this instead:
You’re about to email invites to everyone in the uploaded file.