Skip to content

Conversation

@sudip-khanal
Copy link
Contributor

Changes

  • Add reply functionality to the base alert email notification
  • Set up the email notification for alert system

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

@sudip-khanal sudip-khanal changed the title Alert-system: Email alert setup Alert-system: Email setup Jan 4, 2026
@sudip-khanal sudip-khanal force-pushed the feat/add-email-notification-setup-for-alert-system branch from 4fd95eb to 5f0786c Compare January 6, 2026 11:07
@sudip-khanal sudip-khanal requested review from sandeshit, susilnem and thenav56 and removed request for sandeshit and susilnem January 7, 2026 03:13
Comment on lines 286 to 289
- command: 'alert_notification'
schedule: '0 */2 * * *'
- command: 'alert_notification_reply'
schedule: '0 */4 * * *'
Copy link
Member

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..

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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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()
Copy link
Member

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.

@sudip-khanal sudip-khanal force-pushed the feat/add-email-notification-setup-for-alert-system branch from d143643 to c1f4a3b Compare January 9, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants