anyway
anyway copied to clipboard
Create an alert for news flashes that might be worth publishing
Initial definition will be as follows:
- interurban: news flash that's segment contains at least 5 fatal accidents in the past 3 years OR 10 fatal and severe accidents in the past 3 years (3 years back from the last accident date in the DB)
- urban: TBD
Alert will be sent in the following channels:
- Slack: A new slack channel we'll create for that purpose
- Emails: [email protected], @galraij and my own email
@galraij @MichalOren any comments?
@OriHoch
The Slack webhook URL is a secret according to their documentation, what would be the best practice for storing the secret? Seems to me the URL should only be available for the production instance, otherwise the channel might get spammed when people run the scraping process in development.
Perhaps using the production .env file?
yes, same way we handle all the other production secrets