Skip to content
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

TDRD-302/303 - Add new env variable for metadata review templates #284

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

thanhz
Copy link
Contributor

@thanhz thanhz commented Jul 31, 2024

Added the following environment variables:

METADATA_REVIEW_REQUESTED_TB_TEMPLATE_ID -> Template that is sent to Transferring body user when metadata review requested
METADATA_REVIEW_REQUESTED_DTA_TEMPLATE_ID-> Template that is sent to DTA reviewer when user requests metadata review
METADATA_REVIEW_REJECTED_TEMPLATE_ID -> Template sent to TB user when metadata is rejected
METADATA_REVIEW_APPROVED_TEMPLATE_ID-> Template sent to TB user when metadata is approved

Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just one question. Thanks

@@ -97,6 +105,26 @@ data "aws_ssm_parameter" "gov_uk_transfer_complete_template_id" {
name = "/${local.environment}/gov_uk_notify/transfer_complete_template_id"
}

data "aws_ssm_parameter" "gov_uk_metadata_review_tb_template_id" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need multiple different templates, rather than using a single template and pass in params into it to construct the correct message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The email templates are quite different from one another so I'm not sure how we would do that. You can see the templates I've created here https://www.notifications.service.gov.uk/services/47204260-cc6b-4814-ad27-ec83bec97003/templates/all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. I'm just a bit concerned about long term maintenance of templates.

@thanhz thanhz requested a review from TomJKing August 1, 2024 13:14
@thanhz thanhz merged commit d89b12f into master Aug 5, 2024
2 checks passed
@thanhz thanhz deleted the add-metadata-review-env-variables branch August 5, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants