Unhandled error when trying to delete wf that has triggers
Bug #1383170 reported by
Anastasia Kuznetsova
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mistralclient |
Fix Released
|
Medium
|
Hardik Parekh | ||
Liberty |
Fix Released
|
Medium
|
Hardik Parekh |
Bug Description
Steps to reproduce:
1. Create a simple wf
2. Create cron-trigger for this wf
3. Try to delete wf
Expected result:
Information message that we can't delete wf that has triggers and firstly user need to delete all triggers associated with it wf
Observed result:
mistral workflow-delete wf
(IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`mistral`
Changed in python-mistralclient: | |
importance: | Undecided → Medium |
milestone: | none → 0.2 |
Changed in python-mistralclient: | |
assignee: | nobody → Sirisha Devineni (sirisha-devineni) |
Changed in python-mistralclient: | |
assignee: | Sirisha Devineni (sirisha-devineni) → nobody |
Changed in python-mistralclient: | |
milestone: | kilo-1 → kilo-2 |
Changed in python-mistralclient: | |
milestone: | kilo-2 → kilo-3 |
tags: | added: low-hanging-fruit |
no longer affects: | python-mistralclient/kilo |
To post a comment you must log in.
Need to think about other similar situations. For example, workbook -> workflows/actions relationship. The most preferred way is probably to warn the user about removing several objects and suggesting to pass an additional option, say -f (forced).