(
session,
project,
org,
name,
member,
trigger_type = None,
time_window = None,
)
| 71 | |
| 72 | @staticmethod |
| 73 | def new( |
| 74 | session, |
| 75 | project, |
| 76 | org, |
| 77 | name, |
| 78 | member, |
| 79 | trigger_type = None, |
| 80 | time_window = None, |
| 81 | |
| 82 | ): |
| 83 | # Else create a new one |
| 84 | workflow = Workflow( |
| 85 | active = False, |
| 86 | project = project, |
| 87 | org = org, |
| 88 | name = name, |
| 89 | trigger_type = trigger_type, |
| 90 | time_window = time_window, |
| 91 | member_created = member) |
| 92 | |
| 93 | Workflow.update_string_id( |
| 94 | session = session, |
| 95 | workflow = workflow) |
| 96 | |
| 97 | session.add(workflow) |
| 98 | session.flush() |
| 99 | |
| 100 | return workflow |
| 101 | |
| 102 | def has_time_trigger(self, session) -> bool: |
| 103 | first_action = self.get_first_action(session = session) |
nothing calls this directly
no test coverage detected