-
Notifications
You must be signed in to change notification settings - Fork 8
Feat: Dref Summary Generation workflow #2767
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
Merged
susilnem
merged 10 commits into
project/dref-emergency-pages
from
feat/dref-summary-emergency-endpoint
Jul 8, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cecae32
feat(dref-summary): add new model and register for translation.
sandeshit e242196
feat(serializer): create a serializer for summary.
sandeshit a9ac989
feat(dref): retrigger from admin panel and latest source doc.
sandeshit 5306b8b
feat(dref-summary): summary generation logic and scaffolding.
sandeshit 597c182
feat(migrations): merge migrations
sandeshit d6e0ff9
feat(dref): add step for the processing status and use delay translation
susilnem 548febc
Merge pull request #2771 from IFRCGo/feat/dref-summary-generation
susilnem 4f0e87d
feat(dref): Add DummyClientLLM and redislock check
susilnem d472073
fix(dref): guard summary generation writes against concurrent-source …
susilnem 8843325
Merge pull request #2775 from IFRCGo/feature/create-dummy-llm-client
susilnem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Generated by Django 5.2.14 on 2026-07-03 00:58 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('dref', '0089_remove_dref_field_report_dref_event'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='DrefSummary', | ||
| fields=[ | ||
| ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
| ('created_at', models.DateTimeField(auto_now_add=True)), | ||
| ('updated_at', models.DateTimeField(auto_now=True)), | ||
| ('source', models.IntegerField(choices=[(100, 'Dref'), (200, 'Dref Operational Update'), (300, 'Dref Final Report')], help_text='The model this summary was generated from.', verbose_name='source')), | ||
| ('source_id', models.PositiveBigIntegerField(verbose_name='source id')), | ||
| ('source_hash', models.CharField(max_length=64, unique=True)), | ||
| ('situational_overview', models.TextField(blank=True, null=True)), | ||
| ('situational_overview_en', models.TextField(blank=True, null=True)), | ||
| ('situational_overview_es', models.TextField(blank=True, null=True)), | ||
| ('situational_overview_fr', models.TextField(blank=True, null=True)), | ||
| ('situational_overview_ar', models.TextField(blank=True, null=True)), | ||
| ('operational_strategy', models.TextField(blank=True, null=True)), | ||
| ('operational_strategy_en', models.TextField(blank=True, null=True)), | ||
| ('operational_strategy_es', models.TextField(blank=True, null=True)), | ||
| ('operational_strategy_fr', models.TextField(blank=True, null=True)), | ||
| ('operational_strategy_ar', models.TextField(blank=True, null=True)), | ||
| ('people_centered_approach', models.TextField(blank=True, null=True)), | ||
| ('people_centered_approach_en', models.TextField(blank=True, null=True)), | ||
| ('people_centered_approach_es', models.TextField(blank=True, null=True)), | ||
| ('people_centered_approach_fr', models.TextField(blank=True, null=True)), | ||
| ('people_centered_approach_ar', models.TextField(blank=True, null=True)), | ||
| ('challenges_identified', models.TextField(blank=True, null=True)), | ||
| ('challenges_identified_en', models.TextField(blank=True, null=True)), | ||
| ('challenges_identified_es', models.TextField(blank=True, null=True)), | ||
| ('challenges_identified_fr', models.TextField(blank=True, null=True)), | ||
| ('challenges_identified_ar', models.TextField(blank=True, null=True)), | ||
| ('lessons_learned', models.TextField(blank=True, null=True)), | ||
| ('lessons_learned_en', models.TextField(blank=True, null=True)), | ||
| ('lessons_learned_es', models.TextField(blank=True, null=True)), | ||
| ('lessons_learned_fr', models.TextField(blank=True, null=True)), | ||
| ('lessons_learned_ar', models.TextField(blank=True, null=True)), | ||
| ('status', models.IntegerField(choices=[(100, 'Pending'), (200, 'Processing'), (300, 'Success'), (400, 'Failed')], default=100)), | ||
| ('translation_module_original_language', models.CharField(choices=[('en', 'English'), ('es', 'Spanish'), ('fr', 'French'), ('ar', 'Arabic')], default='en', help_text='Language used to create this entity', max_length=2, verbose_name='Entity Original language')), | ||
| ('translation_module_skip_auto_translation', models.BooleanField(default=False, help_text='Skip auto translation operation for this entity?', verbose_name='Skip auto translation')), | ||
| ('dref', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='summary', to='dref.dref')), | ||
| ], | ||
| ), | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.