NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

table 'worksheet' display not updated after table deleted #881

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Margaret O'Brien (Margaret O'Brien) Original Redmine Issue: 4661, https://projects.ecoinformatics.org/ecoinfo/issues/4661 Original Date: 2010-01-12 Original Assignee: Jing Tao


a user wanted to replace a dataTable in a package. She chose 'Data->delete data table'. The data table disappeared, and she added uploaded a new table and a created a new set of attribute descriptions. So far, this is as expected.

However, when she finished the attribute descriptions, and Morpho displayed the table, it displayed the old attribute descriptions in the 'worksheet' pane. When she clicked on an attribute, the new attribute description was displayed on the right (alongside the old table). When she closed the data package and reopened, the new data table was there, so it seems to be just a worksheet display issue.

The EML docids are cdonahue.26.2 (old table, to be deleted) and cdonahue.26.3 (new table)

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-01-13T18:19:06Z


I can reproduce bug on current svn version morpho.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-01-15T17:43:20Z


In AbstractDataPackage method, there is variable to cache the attribute list of selected entity. This attribute list will be used to display the attributes on worksheet. However, the cached the attribute list wasn't reset when a entity was deleted, so user will see old attribute. After adding resetting the attribute list, the bug has been fixed.

Margaret, would you please test it again through a svn version of Morpho to make sure the bug was fixed?

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-01-15T20:20:37Z


close it. If margaret finds some issue, we will reopen it.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2010-01-15T20:22:31Z


Change it to fixed status.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:27:39Z


Original Bugzilla ID was 4661