delete-modal passes only ID to callback
Bug #1761074 reported by
Shu Muto
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Wishlist
|
Shu Muto |
Bug Description
Angular-based dialog for confirming deletion passes only ID to callback in deletion action service of each panel.
If the API does not accept ID on deletion or other operations, e.g. quota management on magnum API that needs composite key with project_id and resource, the panel needs to retrieve list and to filter by ID on callback. So passing a whole object makes sense.
To enable to pass whole entity of selected item, we can pass it as second parameter for callback.
Changed in horizon: | |
assignee: | nobody → Shu Muto (shu-mutou) |
status: | New → In Progress |
description: | updated |
Changed in horizon: | |
importance: | Undecided → Wishlist |
milestone: | none → rocky-1 |
To post a comment you must log in.
Some IRC discussion to clarify the background.
As a conclusion, it sounds reasonable to pass a whole object as argument.
http:// eavesdrop. openstack. org/irclogs/ %23openstack- horizon/ %23openstack- horizon. 2018-04- 04.log. html#t2018- 04-04T07: 14:48