Bug #50681 Detail panel does not disappear when database item is deleted.
Submitted: 28 Jan 2010 8:37 Modified: 11 May 2010 13:10
Reporter: Perry Cappadocia Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.14 OS:Windows (xp pro sp3)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: delete, detail

[28 Jan 2010 8:37] Perry Cappadocia
Description:
When a diagram object is deleted and the option to delete corresponding database objects is not chosen, the open detail page (for the diagram object) does not close. It stays open and functional.

How to repeat:
1)Add a table.
2)double click on the table to open the detail page.
3)delete the table, when asked to delete corresponding objects, select 'no'.

The detail page still exists, it is orphaned.
----
1)Add 2 tables and a relationship
2)double click on the relationship to open the detail page.
3)delete the relationship, when asked to delete corresponding objects, select 'no'.

The detail page still exists, it is orphaned.

4) Delete the main table of the relationship. When asked to delete corresponding objects, select 'no'. The relationship detail page stays open.

Do steps 1)- 3)
4) Delete the main table of the relationship. When asked to delete corresponding objects, select 'yes'. The relationship detail page disappears.
----

1)Add a layer.
2)double click on the layer to open the detail page.
3)delete the layer.

The detail page still exists, it is orphaned.

----
1)Add a view.
2)double click on the view to open the detail page.
3)delete the view, when asked to delete corresponding objects, select 'no'.

The detail page still exists, it is orphaned.
---
1)Add a routine group.
2)double click on the routine group to open the detail page.
3)delete the routine group, when asked to delete corresponding objects, select 'no'.

The detail page still exists, it is orphaned.
----

Suggested fix:
You can work around by manually closing the offending detail page.
[28 Jan 2010 10:05] Johannes Taxacher
For the case, that you choose not to remove the database object from the model when deleting the figure from the diagram, its expected behaviour that the editor of the object stays open. only when you remove the object from the document/model completely, the editor is closed as well.

for the layer- and relationship editor, theres no such option, this is true - their editors aren't removed when the diagram object is deleted.
[1 May 2010 2:48] Alfredo Kojima
Added auto-closing of Layer and Relationship editors.
[10 May 2010 22:34] Johannes Taxacher
fix confirmed in repository
[11 May 2010 13:10] Tony Bedford
An entry has been added to the 5.2.21 changelog:

The Relationship and Layer editors did not close if the object they were editing was deleted.

MySQL Workbench has been changed to support auto-closing of all open editors, should the object being edited be deleted.