- Separate the method of updating the trial observations to WorkbookUtil from ImportGermplasmListController.nextScreen()
- Remove System.out.println lines from OpenTrialController.java
- Create common method, updateTrialInstanceNoAfterDelete(), for updating the trial instance from getFilteredObservation() and getFilteredTrialObservation()
- Make hasMeasurementDataEntered static method, add addtional checking if the MeasurementData has MeasurementVariable

BMS-85

Reviewer: Mae Isabelle Turiana
Created global function for loading the content of measurement table without switching to measurement tab

BMS-85

Reviewer: Mae Isabelle Turiana
- update the confirmDeleteEnvironmet() to confirmDeleteEnvironment()
- add checking on experimentalDesign.noOfEnvironment before updating it
- Only regenerate the experimental design if the trial is not yet saved or the existing trial has no measurement data
- If the existing trial has measurement data, load initial the measurements tab, to take effect the delete of environment

BMS-85

Reviewer: Mae Isabelle Turiana
Retain only the logic for deleting existing trial with measurement data here in measurement.js since the other scenarios (new trial and existing trial w/o measurement data) are handled in the environment.js

BMS-85

Reviewer: Mae Isabelle Turiana
Code Clean up: Remove the logging of currentData before saving the trial

BMS-85

Reviewer: Mae Isabelle Turiana
Created unit test for the following function:
1. ManageSettingsController.getObservationsOnEnvironment()
2. ManageSettingsController.hasMeasurementDataOnEnvironment()
3. SettingsController.hasMeasurementDataEntered()
4. OpenTrialController.getFilteredTrialObservations();
5. OpenTrialController.getFilteredObservations();
6. WorkbookUtilTest.updateTrialObservations();

BMS-85

Reviewer: Mae Isabelle Turiana