Skip to content

Commit

Permalink
changes validation email qc (#116)
Browse files Browse the repository at this point in the history
* changes validation email qc

* changes

* changes as per commit

* added a separator
  • Loading branch information
samouzegar10 authored Nov 5, 2024
1 parent 8a0e5d8 commit 398e4ab
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions triton-server/src/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,27 @@ export const sendDatasetValidationStatusUpdateEmail = async () => {
},
)
}
let body =
"A run has been validated: <br/>" +
const body =
"<b>A run has been validated:</b> <br/>" +
formattedData.map(
(dataset: ExtractedValidatedNotificationData) => {
return `<br/><br/>
- Run Name: ${dataset.projectAndRunInfo.run_name} <br/>
- Validated by: ${dataset.projectAndRunInfo.validated_by} <br/>
- Project: ${dataset.projectAndRunInfo.project_name} ${dataset.projectAndRunInfo.project_id ?? ""} <br/>
- Dataset/lane ${dataset.projectAndRunInfo.lane_number} status ${getValidationFlagLabel(dataset.projectAndRunInfo.validation_status)} <br/>
${dataset.basicCommentUserInfo?.comment != undefined ? "- Comments: " + dataset.basicCommentUserInfo?.comment + "<br/>" : "No comments <br/>"}
${dataset.basicCommentUserInfo?.comment != undefined ? "- Comments left by: " + dataset.basicCommentUserInfo?.name + "<br/>" : ""}
${dataset.basicCommentUserInfo?.comment != undefined ? "- Created at: " + dataset.basicCommentUserInfo?.created_at.split("T")[0] + " " + dataset.basicCommentUserInfo?.created_at.split("T")[1] + "<br/>" : ""}
`
- <b>Run Name:</b> ${dataset.projectAndRunInfo.run_name} <br/>
- <b>Validated by:</b> ${dataset.projectAndRunInfo.validated_by} <br/>
- <b>Project:</b> ${dataset.projectAndRunInfo.project_name} ${dataset.projectAndRunInfo.project_id ?? ""} <br/>
- <b>Dataset/lane ${dataset.projectAndRunInfo.lane_number} status</b> ${getValidationFlagLabel(dataset.projectAndRunInfo.validation_status)} <br/>
${dataset.basicCommentUserInfo?.comment != undefined ? "- <b>Comments: </b>" + dataset.basicCommentUserInfo?.comment + "<br/>" : "No comments <br/>"}
${dataset.basicCommentUserInfo?.comment != undefined ? "- <b>Comments left by: </b>" + dataset.basicCommentUserInfo?.name + "<br/>" : ""}
${dataset.basicCommentUserInfo?.comment != undefined ? "- <b>Created at: </b>" + dataset.basicCommentUserInfo?.created_at.split("T")[0] + " " + dataset.basicCommentUserInfo?.created_at.split("T")[1] + "<br/>" : ""}
----------------------`
},
) +
`
Thank you.<br/>
This is an automated email, do not reply back.<br/>`
// await sendTestEmail(body)
<br/>Thank you.<br/>
This is an automated email, do not reply back.<br/>` // await sendTestEmail(body)
await sendValidationEmail(formattedData, body)
}
}
Expand Down

0 comments on commit 398e4ab

Please sign in to comment.