-
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.
feat(workflow): implement WorkItem redo pattern
This commit implements a possibility to redo an already finished WorkItem and all the ones that were finished in between. Closes #1510
- Loading branch information
1 parent
cc9f89f
commit 58e572c
Showing
16 changed files
with
452 additions
and
17 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Generated by Django 2.2.24 on 2022-01-13 06:51 | ||
|
||
from django.db import migrations, models | ||
|
||
import caluma.caluma_core.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("caluma_workflow", "0027_add_modified_by_user_group"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="historicaltaskflow", | ||
name="redoable", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="jexl returning what tasks can be redone from this taskflow.", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="taskflow", | ||
name="redoable", | ||
field=models.TextField( | ||
blank=True, | ||
help_text="jexl returning what tasks can be redone from this taskflow.", | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="historicalworkitem", | ||
name="status", | ||
field=caluma.caluma_core.models.ChoicesCharField( | ||
choices=[ | ||
("ready", "Work item is ready to be processed."), | ||
("completed", "Work item is done."), | ||
("canceled", "Work item is canceled."), | ||
("skipped", "Work item is skipped."), | ||
("suspended", "Work item is suspended."), | ||
("redo", "Work item has been marked for redo."), | ||
], | ||
db_index=True, | ||
max_length=50, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="workitem", | ||
name="status", | ||
field=caluma.caluma_core.models.ChoicesCharField( | ||
choices=[ | ||
("ready", "Work item is ready to be processed."), | ||
("completed", "Work item is done."), | ||
("canceled", "Work item is canceled."), | ||
("skipped", "Work item is skipped."), | ||
("suspended", "Work item is suspended."), | ||
("redo", "Work item has been marked for redo."), | ||
], | ||
db_index=True, | ||
max_length=50, | ||
), | ||
), | ||
] |
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
39 changes: 38 additions & 1 deletion
39
caluma/caluma_workflow/tests/__snapshots__/test_workflow.ambr
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
Oops, something went wrong.