Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Newly Registered User to SendGrid Marketing Contacts #125

Merged
merged 3 commits into from Jan 26, 2023

Conversation

bbengfort
Copy link
Contributor

Scope of changes

In the tenant Register() handler, I added functionality to add the user to the Ensign marketing list in SendGrid since this was already configured in Tenant. This will likely have to be refactored in the future, and there are some TODOs here, but this will get us through the MVP.

Fixes SC-13177

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
  • Are there any TODOs in this PR that should be turned into stories?

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #13177: Add newly registered user to SendGrid marketing list.

Copy link
Contributor

@daniellemaxwell daniellemaxwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to go!

pkg/tenant/notifications.go Outdated Show resolved Hide resolved
pkg/tenant/notifications.go Outdated Show resolved Hide resolved
@@ -62,6 +63,26 @@ func (s *Server) Register(c *gin.Context) {
// TODO: Send verification email to the provided email address
// TODO: Create tenant and other Tenant-specific resources for the user

// Add to SendGrid Ensign Marketing list in go routine
// TODO: use worker queue to limit number of go routines for tasks like this
// TODO: test in live integration tests to make sure this works
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fingers crossed this will work without an issue!

Co-authored-by: Danielle <danielle@rotational.io>
@bbengfort bbengfort merged commit 3d85d7e into main Jan 26, 2023
@bbengfort bbengfort deleted the sc-13177/sendgrid-register branch January 26, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants