Conversation
Adding api wrapper for sendgrid Adding service model to generate the emails for both admin and regular users
Finishing up the final tweaks to the model
And fixing everything Casey mentioned
There was a problem hiding this comment.
Move this to devops-scripts ansible variables?
There was a problem hiding this comment.
do we have this email address setup?
There was a problem hiding this comment.
Sendgrid uses this as the alias of the sender
There was a problem hiding this comment.
I mean is this real email address. Do we have it registered on our mail server? If I write to this email address will it bounced to accepted
There was a problem hiding this comment.
I agree with @podviaznikov - it should be a valid address
|
minor questions/comments from me (non-blockers). But looks good: 👍 |
There was a problem hiding this comment.
I would actually ask you do log.fatal - you're gonna be crashing the process here, so it's fatal
There was a problem hiding this comment.
did we go to aggressive? you still want to throw an error in a then before this catch, otherwise, you'll never see that it didn't break
|
that looks much better to me |
|
double check that all the sendgrid environment variables are in devops scrips that you need, and then marge away! |
There was a problem hiding this comment.
SendGridModel.prototype.inviteAdmin - > inviteAdmin
|
@Nathan219 for all your trace/error/warn logs after your function's initial info log, use just the prototype property name for the prefix to your msg field instead of the full prototype path. ex: https://github.com/CodeNow/devops-scripts/wiki/Guide-to-Using-Log-Levels |
Fixing stupid bluebird promisify binding
|
LGTM! |
This PR adds the SendGrid api and the ability for the team-invitations route to send emails to potential users
Reviewers*