forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5905 from nyaruka/session_and_fire_tweaks
Add new 'session expire' type to contact fires and re-add expired status to sessions
- Loading branch information
Showing
7 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
temba/contacts/migrations/0204_alter_contactfire_fire_type.py
This file contains 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,26 @@ | ||
# Generated by Django 5.1.4 on 2025-02-25 16:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("contacts", "0203_remove_contactfire_extra"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="contactfire", | ||
name="fire_type", | ||
field=models.CharField( | ||
choices=[ | ||
("E", "Wait Expiration"), | ||
("T", "Wait Timeout"), | ||
("S", "Session Expiration"), | ||
("C", "Campaign Event"), | ||
], | ||
max_length=1, | ||
), | ||
), | ||
] |
This file contains 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 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
27 changes: 27 additions & 0 deletions
27
temba/flows/migrations/0378_alter_flowrun_session_alter_flowsession_status.py
This file contains 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,27 @@ | ||
# Generated by Django 5.1.4 on 2025-02-25 16:49 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("flows", "0377_remove_flowsession_flowsessions_contact_waiting"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="flowrun", | ||
name="session", | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to="flows.flowsession"), | ||
), | ||
migrations.AlterField( | ||
model_name="flowsession", | ||
name="status", | ||
field=models.CharField( | ||
choices=[("W", "Waiting"), ("C", "Completed"), ("I", "Interrupted"), ("X", "Expired"), ("F", "Failed")], | ||
max_length=1, | ||
), | ||
), | ||
] |
This file contains 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 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 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