NCEAS / morpho

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

Duplicate attribute code rows after "save for later" #1068

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: ben leinfelder (ben leinfelder) Original Redmine Issue: 7055, https://projects.ecoinformatics.org/ecoinfo/issues/7055 Original Date: 2016-07-11 Original Assignee: Jing Tao


The situation occurs when I have a data set with columns that are text and have code definitions associated with the text. When I'm not finished with the table but need to log out for some reason, I click save for later. When I reopen the data package and navigate to the data table of interest (that was partially complete), the text columns with coded definitions have been repopulated with the codes from the table. My previously entered code definitions are still there, but the codes themselves have now been duplicated and I have to manually remove them for any previous column of this type of data.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2016-07-12T23:57:00Z


Those code definition were from the initial data when an attribute page was generated. I added a switch to generate the attribute page with/without the initial data. When we uploaded an incompleted page, morpho will not load the initial data. This issue is gone. Ben, would you please test it again? Thanks!

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2016-07-13T00:35:04Z


It looks like you committed to an older branch (1.10) when we are on 1.11.x here: https://code.ecoinformatics.org/code/morpho/branches/MORPHO_1_11_0/

I was trying it out and finally realized why nothing had changed! :)

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2016-07-13T01:59:10Z


I committed to MORPHO_1_11_0_BRANCH.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2016-07-14T17:01:39Z


The problem is the page loaded both the initial default information and saved the information. The code was modified and the initial information will not uploaded. So only the saved information will loaded. The problem was fixed on the 1-10 branch, 1-11 branch and trunk.