Skip to content

[DO NOT MERGE]: Alter AzureOpenAI API version - #2803

Draft
sandeshit wants to merge 47 commits into
developfrom
fix/summary-prompt-updates
Draft

[DO NOT MERGE]: Alter AzureOpenAI API version #2803
sandeshit wants to merge 47 commits into
developfrom
fix/summary-prompt-updates

Conversation

@sandeshit

Copy link
Copy Markdown
Contributor

Changes

  • Summary prompt updates
  • Alter openai api version.

Checklist

  • Updated/ran unit tests
  • Updated CHANGELOG.md

@sandeshit
sandeshit changed the base branch from develop to project/dref-emergency-pages August 3, 2026 09:18
@sandeshit sandeshit changed the title feat(event): make event source enum Alter AzureOpenAPI version Aug 3, 2026
@sandeshit
sandeshit marked this pull request as draft August 3, 2026 09:20
@sandeshit sandeshit changed the title Alter AzureOpenAPI version [DO NOT MERGE}: Alter AzureOpenAPI version Aug 3, 2026
@sandeshit sandeshit changed the title [DO NOT MERGE}: Alter AzureOpenAPI version [DO NOT MERGE]: Alter AzureOpenAPI version Aug 3, 2026
@szabozoltan69 szabozoltan69 changed the title [DO NOT MERGE]: Alter AzureOpenAPI version [DO NOT MERGE]: Alter AzureOpenAI API version Aug 5, 2026
sudip-khanal and others added 24 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
sandeshit and others added 17 commits August 12, 2026 14:15
- Retrigger from the admin panel.
- Store the source doc type used for summary generation
- 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
sandeshit force-pushed the fix/summary-prompt-updates branch from d96cfcb to 6a4ca6b Compare August 12, 2026 10:10
@sandeshit
sandeshit force-pushed the fix/summary-prompt-updates branch from 7bf86d3 to aecfeb5 Compare August 13, 2026 06:22
@susilnem
susilnem force-pushed the project/dref-emergency-pages branch 2 times, most recently from f6fb1fe to a134ff1 Compare August 25, 2026 05:21
Base automatically changed from project/dref-emergency-pages to develop August 25, 2026 06:08
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