topcoder-platform / forums

0 stars 0 forks source link

[$450] Email message tweak for MFE #662

Closed jmgasper closed 2 years ago

jmgasper commented 2 years ago

@atelomycterus - When the user receives a notification email for a self-service challenge where they are the Client Manager, we're going to want the URL to respond to the message to point to something other than the main Vanilla site:

So, in dev, instead of vanilla.topcoder-dev.com, we're going to want to use platform.topcoder-dev.com/self-service/work-item/{challenge ID}

Is that possible? This would only be for the emails sent to the Client Manager. All other email notifications for members, copilots, etc... would point to the main forum site still.

jmgasper commented 2 years ago

Challenge https://www.topcoder.com/challenges/835b393c-90e3-4ccd-8fc8-30d03fa384ea has been created for this ticket.

This is an automated message for ghostar via Topcoder X

jmgasper commented 2 years ago

Challenge https://www.topcoder.com/challenges/835b393c-90e3-4ccd-8fc8-30d03fa384ea has been assigned to obog.

This is an automated message for ghostar via Topcoder X

atelomycterus commented 2 years ago

@jmgasper Please apply PRs: https://github.com/topcoder-platform/forums/pull/666 https://github.com/topcoder-platform/forums-plugins/pull/112 https://github.com/topcoder-platform/forums-groups-plugin/pull/102

Please set the embed url before testing: image

Example: The email button link ("Open Discussion") will navigate to http://embed.vanilla.localhost:8000/self-service/work-items/0f6c33ff-564b-44d1-af79-723467b77028 for users with `Client Manager' role.

Notes: The embed url will be reset after re-deploying. If you want to keep it in the default config, we can manage with env parameter configured for each environment separately like DB_HOST, etc.

Need to add the line with env param name:

$Configuration['Garden']['Embed']['RemoteUrl'] = getenv('my_embed_url_param_name');

Let me know the name of env parameter and I'll update the config file.

jmgasper commented 2 years ago

@atelomycterus - One tweak here, can we also add ?tab=messaging to the end of the URL sent in the email please? That'll redirect the user to the exact tab we need.

atelomycterus commented 2 years ago

@jmgasper Please apply PR-https://github.com/topcoder-platform/forums-groups-plugin/pull/103. Thanks!

jmgasper commented 2 years ago

Payment task has been updated: https://www.topcoder.com/challenges/835b393c-90e3-4ccd-8fc8-30d03fa384ea Payments Complete Winner: obog Copilot: ghostar Challenge 835b393c-90e3-4ccd-8fc8-30d03fa384ea has been paid and closed.

This is an automated message for ghostar via Topcoder X