Skip to content

Commit 1230ad6

Browse files
authored
Merge pull request #20 from oarepo/krist/be-596-cancel-transition-in-workflows
cancelled added to transition states
2 parents 89ad053 + 0522af2 commit 1230ad6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

oarepo_workflows/requests/requests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,11 @@ class WorkflowTransitions:
144144
submitted: Optional[str] = None
145145
accepted: Optional[str] = None
146146
declined: Optional[str] = None
147+
cancelled: Optional[str] = None
147148

148149
def __getitem__(self, transition_name: str):
149150
"""Get the transition by name."""
150-
if transition_name not in ["submitted", "accepted", "declined"]:
151+
if transition_name not in ["submitted", "accepted", "declined", "cancelled"]:
151152
raise KeyError(
152153
f"Transition {transition_name} not defined in {self.__class__.__name__}"
153154
)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = oarepo-workflows
3-
version = 1.1.4
3+
version = 1.1.5
44
description =
55
authors = Ronald Krist <[email protected]>
66
readme = README.md

0 commit comments

Comments
 (0)