The template ID were hardcoded on following file (hermes/queues/constants.js), but the template files (email-templates) were not updated accordingly.
I searched and found correlation between following files. These should be updated to ensure the tests are working properly.
A bit more research gave me another question,
What is the difference between
NEW_MESSAGE_TEMPLATEandNEW_DIRECT_MESSAGE_TEMPLATE? Are they same thing?
Is this considered an issue?
export const NEW_MESSAGE_TEMPLATE = IS_PROD
? 'd-1379042b64ba4c6093fecaec7161480a'
: 'd-7a4c14fd440146f1b1cfcafb633bb040';
export const NEW_MENTION_THREAD_TEMPLATE = IS_PROD
? 'd-343ec51df23943e88d0709aa8e30312b'
: 'd-ff421ea0112a4525b6615bcc666ede00';
export const NEW_MENTION_MESSAGE_TEMPLATE = IS_PROD
? 'd-5ef46b71baee4c67bc46ab867e14d5bb'
: 'd-637189bc871744e9846694bff9f572ae';
export const NEW_THREAD_CREATED_TEMPLATE = IS_PROD
? 'd-2809d28ff1cc4d89a503e04de3388411'
: 'd-084c11332981443388ebdae05d0a2ff4';
export const DIGEST_TEMPLATE = IS_PROD
? 'd-54e8d4905da64158a98ddb92c9330583'
: 'd-5e52250c25be4654af82172970551919';
export const EMAIL_VALIDATION_TEMPLATE = IS_PROD
? 'd-8cd6c640e2d944c7a4bb8877722ff00f'
: 'd-9fbb3cc969364050aac891c255d31209';
export const ADMINISTRATOR_EMAIL_VALIDATION_TEMPLATE = IS_PROD
? 'd-c7ab6234c65b47d88413d9deaae0f7f1'
: 'd-a60e1df2d5294c73818759be13f09df4';
export const ADMIN_TOXIC_MESSAGE_TEMPLATE =
'd-f6e52c81dd8d49e29f23c5c6112d676b';
Hey @entrptaher I suppose I'm not quite sure what the question is here. The email template .html files are using the ids from hermes constants.js - we don't have any automation there, mostly because these will almost never be changed and if we add a new email type we only need to put the constant in 2 places.
You didn't understand my question but answered it perfectly.
Oops, sorry about it, but glad the answer worked out 馃憤
Most helpful comment
You didn't understand my question but answered it perfectly.