-
Notifications
You must be signed in to change notification settings - Fork 15
Email bundle and refactoring #47
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
Email bundle and refactoring #47
Conversation
…checks required data by itself
…rMentionedUser even with current config it doesn't make any difference, but in theory it can
… and email settings and issue topcoder-platform#38 - Refactor logic of email notification handling
… only sends mention event for first mention in the post
… settings apply to emails, revert some services to use m2m
Looks good. Before deploying this one, you need to manually execute this script on the notifications database https://github.com/maxceem/tc-notifications/blob/5e1700ec7e294f22517e89445db2137485dd02ca/migrations/v2.0.sql then just merge this PR and the one in connect-app repo. There are no new environment variables |
@gondzo I think we have to build the HTML in tc-notifications instead of letting email service doing this for us because email service should not know how to unroll the list of objects into HTML. As suggested in the post, we can created a variable in template e.g. |
OK, then you can create a new template in sendgrid with notificationsHTML parameter and I'll add the change to prepare the html in notifications service. |
@gondzo I have created a new template in Sendgrid for the event type 'notifications.action.email.connect.project.bundled' which just contain {{notificationsHTML}} as variable to replace. It is deployed in dev and you should be able to send emails now with this event. Let me know if you see any errors. |
@vikasrohit I have added the changes to prepare html for bundled events, but pushing the event to bus api returns an error |
@gondzo I think there are some changes going on for machine to machine tokens for new auth upgrade. I guess, we need to merge our changes into dev to get those changes reflected on our changes. I am merging the PR after invoking the migration sql on dev instance. Lets hope it works after that. |
Issues: #37 #38 #40 and appirio-tech/connect-app#1991
Note:
tc-core-library-js
which skips token validation: