-
Notifications
You must be signed in to change notification settings - Fork 8
Alert-system: Email setup #2621
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
Alert-system: Email setup #2621
Conversation
- Nested extraction with correlation id as fliter. - Self retry with exponential backoff. - Different models for Hazards and Impacts.
This commit splits the data extraction, transform and load part. The filtration part is also included in the load part.
4fd95eb to
5f0786c
Compare
deploy/helm/ifrcgo-helm/values.yaml
Outdated
| - command: 'alert_notification' | ||
| schedule: '0 */2 * * *' | ||
| - command: 'alert_notification_reply' | ||
| schedule: '0 */4 * * *' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not remove the notify_validators from here..
notifications/filter_set.py
Outdated
| region = filters.ModelMultipleChoiceFilter(field_name="regions", queryset=Region.objects.all()) | ||
| alert_source = filters.NumberFilter(field_name="alert_source", label="Alert Source") | ||
| hazard_type = filters.NumberFilter(field_name="hazard_types__type", label="Hazard Type") | ||
| hazard_type = filters.NumberFilter(field_name="hazard_types__name", label="Hazard Type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| hazard_type = filters.NumberFilter(field_name="hazard_types__name", label="Hazard Type") | |
| hazard_type = filters.CharField(field_name="hazard_types__name", label="Hazard Type") |
| ).apply_async() | ||
|
|
||
|
|
||
| @shared_task() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need a separate queue for these tasks.
- Added category and type enum. - Alter people and building exposed fallback to None. - Add polling start date and lookback weeks field in Connector. - Squash Migrations.
…ix notification tests
d143643 to
c1f4a3b
Compare
…k and fix notification tests
7bb8d87 to
eea0546
Compare
|
closing this pr new related pr is : #2638 |
Changes
Checklist
Things that should succeed before merging.
Release
If there is a version update, make sure to tag the repository with the latest version.