Spectrum: Invite users in bulk

Created on 6 Feb 2019  Β·  24Comments  Β·  Source: withspectrum/spectrum

Issue Type

  • [ ] Bug Report
  • [x] Feature Idea
  • [ ] Technical Discussion
  • [ ] Question (these will be auto-closed, please ask them on Spectrum instead https://spectrum.chat/spectrum/open)

Description

Hi,
I have a list of ~1000 members to invite from a community I currently have on Google+ (which is shutting down).

Is there any way to invite them in bulk, for example uploading a .csv file with the email addresses?

see https://spectrum.chat/spectrum/general/invite-users-in-bulk~17ae92bf-9a6e-42a2-b1b4-cfe19ebdd807

Feature

Most helpful comment

Yes we built this feature, it will go live today! I will ping y'all here when it is live πŸ‘

All 24 comments

That would be great new feature for community owners, where they could bring more members easier and migrate from other platforms.

A quick way to do this would be to allow input of .json files from the frontend, which would auto-fill the existing inputs in the community settings. (.json instead of .csv because then we do not need to ship a parser)

If anybody wants to tackle this, the relevant code is in src/components/emailInvitationForm. It renders this part of the community settings:

screenshot 2019-02-06 at 19 44 50

  1. Add an <input type="file" /> that only accepts .json files in the bottom left
  2. Parse the input JSON and make sure it is in the format ['[email protected]', '[email protected]'] or [{ email: '[email protected]' }]
  3. Add the emails from the JSON file to this.state.contacts

That should be it! If anybody can build the functionality, we can make it look nice and that should be it πŸ‘

We could put a csv => json parse on the api server though!

I have always used PapaParse for csv => json

@brianlovin as a v2 for sure, but as a quick win it would be nice to keep the changes frontend-only and not upload massive files to our server! :+1:

Here is a first prototype: https://codesandbox.io/s/2x8jly1v4y

This should be a relatively simple change, will see if we can land this next week.

Hey, wondering why it's closed? Did you make it work or smth else? @mxstbr

Yes we built this feature, it will go live today! I will ping y'all here when it is live πŸ‘

Is there a limit on the number of invitations we can send?

Awesome.

I do not think we have a limit at the momentβ€”now that you ask me that though, we should probably add one... πŸ™ˆ

This is live, you can now bulk-invite emails in your member settings!

spectrum-import-emails

Looks nice great Max.

Just wondering the same about the limit? Can we import 1k members ?

I tried 2K and it went through.

I have not got any invitation email yet though

Let's see, maybe emails are in quee. Let us know how it went Mirko
vanila.io

On Wed, Feb 13, 2019 at 2:43 PM Mirko Menegazzo notifications@github.com
wrote:

I tried 2K and it went through.

I have not got any invitation email yet though

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/withspectrum/spectrum/issues/4611#issuecomment-463203713,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5JjeIN3sW75CFEKMa_i9gBPrW77NXmks5vNBaJgaJpZM4allZY
.

We definitely see them in our analytics πŸ˜…

Email invites per day:

screenshot 2019-02-13 at 14 47 32

It does not look like any of them failed so far, afaict!

Awesome!

We definitely see them in our analytics πŸ˜…

Email invites per day:

screenshot 2019-02-13 at 14 47 32

It does not look like any of them failed so far, afaict!

Nice. Is that Sendgrid Analytics or something else ?

We have a few new members already, looks like everything is working properly

Good job!

Nice. Is that Sendgrid Analytics or something else ?

https://amplitude.com! We use GitHub's SendGrid account, so it's a bit hard to see just our emails in their analytics.

We have a few new members already, looks like everything is working properly

Awesome, more than happy to hear that!

@mxstbr still I am not getting the invites I tried to send to my personal emails (to see how the invitation looks like)

nothing in my spam folder either.

Any thoughts?

That is very strange. Can you DM me your email address on Spectrum, and I will double check what happened with your email in our records?

Done, and I found another bug on the way ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidluhr picture davidluhr  Β·  3Comments

entrptaher picture entrptaher  Β·  3Comments

dmitryyankowski picture dmitryyankowski  Β·  4Comments

thundernixon picture thundernixon  Β·  4Comments

mknepprath picture mknepprath  Β·  7Comments