Skip to content

Project: Emergency Page workflow - #2746

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

Project: Emergency Page workflow#2746
susilnem wants to merge 43 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.

@susilnem
susilnem force-pushed the project/dref-emergency-pages branch from 1cb7b5b to ee0aea9 Compare May 25, 2026 12:24
@susilnem
susilnem force-pushed the project/dref-emergency-pages branch 2 times, most recently from d177ef7 to dd41e92 Compare June 15, 2026 11:12
sudip-khanal and others added 26 commits August 12, 2026 14:14
- 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
…lation

feat: Trigger event translation for approved DREF
- Set event severity from DREF disaster category on creation
- Expose DREF contacts on the emergency payload
- Expose imminent targeted population
- Prefetch operational updates in the completed DREF operations endpoint
- Filter timeline operational updates to approved and expose modified_at
- Record date_of_approval when an operational update is approved
…ld reports and ops updates

- Split ordered querysets (used in Subquery) from unordered ones (used in
Exists)
— removes redundant ORDER BY from EXISTS() SQL, cutting EA stage
response time ~25%
- Add prefetch_related for field_reports and drefoperationalupdate_set in
viewset and serializers
— reduces list endpoint queries ~15% (N+1 -> batch)
Emergency pages: fill DREF data gaps
- Create new model DrefSummary.
- Register for translation.
- Create migrations.
…-page

perf(emergency): optimise EXISTS subqueries and prefetch related data
- Retrigger from the admin panel.
- Store the source doc type used for summary generation
sandeshit and others added 15 commits August 12, 2026 14:15
- Summary generation logic.
- Task for summary generation.
- Triggers in views
- Add redislock check on dref summary generation
- Update on dref/task for the latest dref source checks
- Add flag USE_DUMMY_LLM_CLIENT for enable/disable LLM client
- rename source_model_name to source in DrefSummary
Feat: Add Dummy LLM Client and Redis Lock check
…oint

Feat: Dref Summary Generation workflow
- add disaster_category and disaster_category_display to the emergency dref, operational update and final report serializers
…ation

fix(dref): expose disaster_category on emergency DREF serializers
- fix 500 error message on ifrc_severity_level update date
- add fields on dref
feat: Add additional fields on dref emergency page
@susilnem
susilnem force-pushed the project/dref-emergency-pages branch from 24e8487 to 2a93f82 Compare August 12, 2026 08:39
sandeshit and others added 2 commits August 17, 2026 16:59
- Add a new summary section for needs_identified.
- Add imminent v2 condition for dref application.
feat(summary): add needs_identified summary.
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.

4 participants