-
Notifications
You must be signed in to change notification settings - Fork 1
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
Links in the email notifications are not working #26
Comments
@sonytrinhcvn can we add a list of:
|
The code to generate the links in the emails is located in the folder There are several files that are using a variable This variable |
The issue:In the email, the links generated are something like The code somehow:
We have 2 solutions to fix the issue: Quick and dirty:
Pros:Fast Cons:This will make it harder/almost impossible t use automated deployment anymore Proper fix:
|
Here you are:
|
We have some files:
|
More information:When we redeploy the code, we can update the Today this variable is built from other variables. This might cause some unexpected behavior. The Test:in the DEV environment: replace the current value Line 38 in 8b5a6e0
with export ROOT_URL=https://case.dev.ins.unee-t.com in the file https://github.com/Unee-T-INS/frontend/blob/master/aws-env.dev
|
for more information, see #26 (comment)
What was done:Hotfix (c2a4d03) done to test hypothesis described in #26 (comment) Next step:Test what are the values for the links generated in the emails. |
More information:The URLs are generated using code like
|
Test 1:
Expect result
The source code for this email is in the file https://github.com/Unee-T-INS/frontend/blob/master/imports/util/email-invite.js. frontend/imports/util/email-invite.js Line 52 in c2a4d03
|
Test 2:
Expect result
|
Test 3:
Expect result
The source code for this email is in the file https://github.com/Unee-T-INS/frontend/blob/master/imports/email-templates/case-assignee-updated.js frontend/imports/email-templates/case-assignee-updated.js Lines 8 to 12 in c2a4d03
|
More InformationIn the script, https://github.com/Unee-T-INS/frontend/blob/master/imports/email-templates/components/helpers.js refer to a dependency https://github.com/unee-t/engagement this dependency has not been deployed to Unee-T INS To doDeploy unee-t/engagement in the Unee-T INS environment. |
More information:Quickfix: remove the engagement URL to avoid relying on the engagement repo. |
* revert previous hotfix * replace `property` with `policy` * do NOT use the function `createEngagementLink` - see GH issue #26
Quickfix described in #26 (comment) has been implemented as part of PR #27. We need a long term solution when we:
To Do:Test the quick fix. |
The issue has been fixed. See #29 for what we still need to do |
We got this email when click Unsubscribe & Manage your setting
https://e.dev.ins.unee-t.com/?url=https%3A%2F%2Fcase.dev.ins.unee-t.com%2Fnotification-settings&id=ut_notification_message_new-64&email=trunghieu912003%40gmail.com
The text was updated successfully, but these errors were encountered: