Skip to content

Commit 862712f

Browse files
authored
Merge pull request #3 from projectcaluma/update_events
docs: update list of emitted events
2 parents 49d33a0 + 0b864ee commit 862712f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extending/events.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ It is recommended to always add `**kwargs` to the receiver functions signature i
5353
## List of emitted events
5454

5555
| Event | Mutations that can emit this event | Arguments |
56-
| ------------------------- | ----------------------------------------------------------------- | ------------------------------------------------ |
56+
|---------------------------|-------------------------------------------------------------------|--------------------------------------------------|
5757
| `pre_create_work_item` | `CreateWorkItem`, `SaveWorkItem`, `StartCase`, `CompleteWorkItem` | `work_item`, `user`, `context`, `validated_data` |
5858
| `post_create_work_item` | `CreateWorkItem`, `SaveWorkItem`, `StartCase`, `CompleteWorkItem` | `work_item`, `user`, `context` |
5959
| `pre_complete_work_item` | `CompleteWorkItem` | `work_item`, `user`, `context` |
@@ -66,6 +66,8 @@ It is recommended to always add `**kwargs` to the receiver functions signature i
6666
| `post_suspend_work_item` | `SuspendWorkItem` | `work_item`, `user`, `context` |
6767
| `pre_resume_work_item` | `ResumeWorkItem` | `work_item`, `user`, `context` |
6868
| `post_resume_work_item` | `ResumeWorkItem` | `work_item`, `user`, `context` |
69+
| `pre_redo_work_item` | `RedoWorkItem` | `work_item`, `user`, `context` |
70+
| `post_redo_work_item` | `RedoWorkItem` | `work_item`, `user`, `context` |
6971
| `pre_create_case` | `SaveCase`, `StartCase` | `case`, `user`, `context`, `validated_data` |
7072
| `post_create_case` | `SaveCase`, `StartCase` | `case`, `user`, `context` |
7173
| `pre_complete_case` | `CompleteWorkItem` | `case`, `user`, `context` |
@@ -76,6 +78,8 @@ It is recommended to always add `**kwargs` to the receiver functions signature i
7678
| `post_suspend_case` | `SuspendCase` | `case`, `user`, `context` |
7779
| `pre_resume_case` | `ResumeCase` | `case`, `user`, `context` |
7880
| `post_resume_case` | `ResumeCase` | `case`, `user`, `context` |
81+
| `pre_reopen_case` | `ReopenCase` | `case`, `user`, `work_items`, `context` |
82+
| `post_reopen_case` | `ReopenCase` | `case`, `user`, `work_items`, `context` |
7983

8084
In some cases when one mutation emits multiple events, it is important to know their respective order:
8185

0 commit comments

Comments
 (0)