anyway icon indicating copy to clipboard operation
anyway copied to clipboard

Create an alert for news flashes that might be worth publishing

Open atalyaalon opened this issue 3 years ago • 2 comments

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:

  1. Slack: A new slack channel we'll create for that purpose
  2. Emails: [email protected], @galraij and my own email

@galraij @MichalOren any comments?

atalyaalon avatar Sep 17 '21 14:09 atalyaalon

@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?

afedj avatar Oct 14 '21 16:10 afedj

yes, same way we handle all the other production secrets

OriHoch avatar Oct 14 '21 16:10 OriHoch