Skip to content

Project: Emergency Page workflow#2746

Draft
susilnem wants to merge 15 commits into
developfrom
project/dref-emergency-pages
Draft

Project: Emergency Page workflow#2746
susilnem wants to merge 15 commits into
developfrom
project/dref-emergency-pages

Conversation

@susilnem
Copy link
Copy Markdown
Member

Changes

  • Add Enum for event sources.
  • Add source field in place of auto generated source field on event model.
  • Migrate existing event records to enum type.
  • Update related serializers and tests.

Command to run

docker compose exec serve ./manage.py migrate_dref_event

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 and others added 15 commits May 25, 2026 17:41
- Add Enum for event sources.
- Add source field in place of auto generated source field on event model.
- Migrate existing event records to enum type.
- Update related serializers and tests.
- Add new emergency api for.
- Attach latest field report.
- Add test case for emergency endpoint.
- Add stage field for operational timeframe
- Update test cases
- Use RetrieveModelMixin instead of ReadOnlyVisibilityViewset
- Add enums for stage
…ogic

- add new field event instead of field report
- update on serializer
- update on dref approve logic
- create event if not passed on dref approve
- priority based (Appeal, Drefs, Dref_type Appeal, Field report)
- Add test cases
- update on stage logic generation
- rename enums of the EventSource
- update test cases
- add source field from auto generated source on event
- generate new migrations for the emergency, dref and deployments
Feature: Emergency page stage and attach event on dref
@susilnem susilnem force-pushed the project/dref-emergency-pages branch from 1cb7b5b to ee0aea9 Compare May 25, 2026 12:24
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.

2 participants