-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: setup signal to consume transaction reveral events
- Loading branch information
1 parent
1c20396
commit 5590822
Showing
4 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
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
43 changes: 43 additions & 0 deletions
43
enterprise_access/apps/content_assignments/migrations/0020_assignment_reversal.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,43 @@ | ||
# Generated by Django 4.2.13 on 2024-06-26 19:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('content_assignments', '0019_learnercontentassignment_preferred_course_run_key'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='historicallearnercontentassignment', | ||
name='reversed_at', | ||
field=models.DateTimeField(blank=True, help_text='The last time this assignment was reversed. Null means the assignment is not currently reversed.', null=True), | ||
), | ||
migrations.AddField( | ||
model_name='learnercontentassignment', | ||
name='reversed_at', | ||
field=models.DateTimeField(blank=True, help_text='The last time this assignment was reversed. Null means the assignment is not currently reversed.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='historicallearnercontentassignment', | ||
name='state', | ||
field=models.CharField(choices=[('allocated', 'Allocated'), ('accepted', 'Accepted'), ('cancelled', 'Cancelled'), ('errored', 'Errored'), ('expired', 'Expired'), ('reversed', 'Reversed')], db_index=True, default='allocated', help_text="The current state of the LearnerContentAssignment. One of: ['allocated', 'accepted', 'cancelled', 'errored', 'expired', 'reversed']", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='historicallearnercontentassignmentaction', | ||
name='action_type', | ||
field=models.CharField(choices=[('learner_linked', 'Learner linked to customer'), ('notified', 'Learner notified of assignment'), ('reminded', 'Learner reminded about assignment'), ('redeemed', 'Learner redeemed the assigned content'), ('cancelled', 'Learner assignment cancelled'), ('cancelled_acknowledged', 'Learner assignment cancellation acknowledged by learner'), ('expired', 'Learner assignment expired'), ('expired_acknowledged', 'Learner assignment expiration acknowledged by learner'), ('reversed', 'Transaction for this assignment has been reversed')], db_index=True, help_text='The type of action take on the related assignment record.', max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='learnercontentassignment', | ||
name='state', | ||
field=models.CharField(choices=[('allocated', 'Allocated'), ('accepted', 'Accepted'), ('cancelled', 'Cancelled'), ('errored', 'Errored'), ('expired', 'Expired'), ('reversed', 'Reversed')], db_index=True, default='allocated', help_text="The current state of the LearnerContentAssignment. One of: ['allocated', 'accepted', 'cancelled', 'errored', 'expired', 'reversed']", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='learnercontentassignmentaction', | ||
name='action_type', | ||
field=models.CharField(choices=[('learner_linked', 'Learner linked to customer'), ('notified', 'Learner notified of assignment'), ('reminded', 'Learner reminded about assignment'), ('redeemed', 'Learner redeemed the assigned content'), ('cancelled', 'Learner assignment cancelled'), ('cancelled_acknowledged', 'Learner assignment cancellation acknowledged by learner'), ('expired', 'Learner assignment expired'), ('expired_acknowledged', 'Learner assignment expiration acknowledged by learner'), ('reversed', 'Transaction for this assignment has been reversed')], db_index=True, help_text='The type of action take on the related assignment record.', max_length=255), | ||
), | ||
] |
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