diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e971b5..9f4097f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -166,6 +166,7 @@ workflows: - security_july_2026 - hotfix/deploy - PM-3458 + - PM-5919 - build-prod: context: org-global filters: diff --git a/ReadMe.md b/ReadMe.md index 1af44d6..07e97db 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -127,7 +127,7 @@ The retained publishing parameters are: `EMAIL_NOTIFICATIN_TOPIC` intentionally retains its existing spelling for deployment compatibility. The `KAFKA_*` parameter names are also retained even though this service reaches Kafka indirectly through Bus API. -Registration email payloads continue to use `EMAIL_FROM`, `SENDGRID_TEMPLATE_ID`, `SENDGRID_TEMPLATE_ID_NO_FORUM`, `SUBMIT_URL`, `REVIEW_APP_URL`, `HELP_URL`, and `SUPPORT_EMAIL`. `TOPCROWD_CHALLENGE_TEMPLATE_ID` continues to control whether the registration email event is emitted. +Registration email payloads continue to use `EMAIL_FROM`, `SENDGRID_TEMPLATE_ID`, `SENDGRID_TEMPLATE_ID_NO_FORUM`, `SUBMIT_URL`, `REVIEW_APP_URL`, `HELP_URL`, and `SUPPORT_URL`. `TOPCROWD_CHALLENGE_TEMPLATE_ID` continues to control whether the registration email event is emitted. The `support` and `supportUrl` template fields point members to the Support App at of `support.topcoder.com`. Publishing remains synchronous. A command that emits an event waits for Bus API to accept it, preserving the existing endpoint success and failure behavior. diff --git a/config/default.js b/config/default.js index cdc22cb..b55ca73 100644 --- a/config/default.js +++ b/config/default.js @@ -55,7 +55,7 @@ module.exports = { SUBMIT_URL: process.env.SUBMIT_URL || 'https://www.topcoder.com/challenges/:id/submit/', REVIEW_APP_URL: process.env.REVIEW_APP_URL || 'https://review.topcoder.com/active-challenges/', HELP_URL: process.env.HELP_URL || 'https://help.topcoder.com', - SUPPORT_EMAIL: process.env.SUPPORT_EMAIL || 'support@topcoder.com' + SUPPORT_URL: process.env.SUPPORT_URL || 'https://support.topcoder.com' }, AUTOMATED_TESTING_NAME_PREFIX: process.env.AUTOMATED_TESTING_NAME_PREFIX || 'POSTMANE2E-', diff --git a/src/services/ResourceService.ts b/src/services/ResourceService.ts index 4ac873d..d8d0a32 100644 --- a/src/services/ResourceService.ts +++ b/src/services/ResourceService.ts @@ -627,7 +627,8 @@ async function createResource (currentUser, resource) { submitUrl: _.replace(config.REGISTRATION_EMAIL.SUBMIT_URL, ':id', challengeId), reviewAppUrl: config.REGISTRATION_EMAIL.REVIEW_APP_URL + challenge.id + '/challenge-details', helpUrl: config.REGISTRATION_EMAIL.HELP_URL, - support: config.REGISTRATION_EMAIL.SUPPORT_EMAIL + support: config.REGISTRATION_EMAIL.SUPPORT_URL, + supportUrl: config.REGISTRATION_EMAIL.SUPPORT_URL }, sendgrid_template_id: templateId, version: 'v3'