Introduced possibility to pass email config either via CLI args, or from a file (with path configurable from CLI).
The Postmark API token can also be passed as an env variable.
Config being None means that e-mails are disabled.
Depends on D8978
Paths
| Differential D8980 Authored by bartek on Aug 28 2023, 6:35 AM.
Details Summary Introduced possibility to pass email config either via CLI args, or from a file (with path configurable from CLI). Config being None means that e-mails are disabled. Depends on D8978 Test Plan Unit tests, also printed the config object and confirmed that:
Diff Detail
Event Timelinebartek held this revision as a draft. Herald added a reviewer: • jon. · View Herald TranscriptAug 28 2023, 6:35 AM2023-08-28 06:35:06 (UTC-7) Harbormaster completed remote builds in B22172: Diff 30438.Aug 28 2023, 6:52 AM2023-08-28 06:52:10 (UTC-7) bartek added a child revision: D8983: [reports-service] Introduce e-mail template.Aug 28 2023, 11:02 PM2023-08-28 23:02:48 (UTC-7) This revision is now accepted and ready to land.Aug 29 2023, 8:46 AM2023-08-29 08:46:39 (UTC-7) Harbormaster completed remote builds in B22280: Diff 30605.Aug 30 2023, 2:05 PM2023-08-30 14:05:53 (UTC-7) Closed by commit rCOMMab730cddf332: [reports-service] Parse email config from CLI args (authored by bartek). · Explain WhySep 3 2023, 11:41 PM2023-09-03 23:41:29 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 30438 services/reports/.gitignore
services/reports/src/config.rs
services/reports/src/email/config.rs
|