Changeset 739


Ignore:
Timestamp:
Jul 28, 2010, 1:31:14 PM (10 years ago)
Author:
duh
Message:
  • showing a bigger warning message on the edit study wizard page, and disabled saving of editted studies in production environment because this leads to data inconsitency (known issues: entities and data staying in the database without being linked to anything, event groupings is messed up, and probably a lot more)
Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy

    r736 r739  
    843843                                // persist data to the database
    844844                                try {
     845                                        // user modifying?
     846                                        if (flow.quickSave && grails.util.GrailsUtil.environment == 'production') {
     847                                                // yes, not allowed on production as this results in data inconsistency
     848                                                println ".saving is not allowed in study edit wizard"
     849                                                throw new Exception("Saving is not allowed in the edit study wizard because this leads to data inconsistency in the database!")
     850                                        }
     851
    845852                                        // save study
    846853                                        println ".saving study"
  • trunk/grails-app/views/wizard/pages/_modify.gsp

    r526 r739  
    2020                <span class="title">Edit a study</span>
    2121                Select the study you would like to modify.
    22                 <b><i>Note: this functionality is currently in beta and has not been verified properly... use with care!</i></b>
     22                <b><i>Note: this functionality is currently in <font color="red">ALPHA</font> is known to result in <font color="red">data inconsistency</font>. Saving has been <font color="red">disabled</font></i></b>
    2323        </span>
    2424
Note: See TracChangeset for help on using the changeset viewer.