slashroots / undp-ghg-v2

Node JS version of the UNDP Greenhouse Gases Database
0 stars 0 forks source link

Saved calculations don't persist #72

Closed densoutar closed 6 years ago

densoutar commented 6 years ago

After making changes on the Calculations page, and clicking Save Calculations, the data doesn't appear to be saved. Navigating away from the page and returning shows the data before modifications.

densoutar commented 6 years ago

Test Results 2018-03-29

Of the 5 selected, only 1 persisted. Three of the 5 had resulted in NaN calculations. One of the other 2 had “heads” selected as the unit.

The first attempt to deselect one of the test selections resulted in the deselection of the test selection immediately below it.

None of the “deselections” persisted.

If there are error states that prevent saving, then the user needs to be informed.

densoutar commented 6 years ago

Test Results 2018-04-08

Of the 5 selected, only 1 persisted, displaying the unit “tonne”, despite “kg” being selected.

The “deselections” persisted, but one of the deselected options disappeared from the table entirely.

If there are error states that prevent saving, then the user needs to be informed—NaN results are not saved, neither is there a warning.

No ADs displayed on page load

screen shot 2018-04-08 at 4 33 41 pm

Starting condition: selections displayed on load

screen shot 2018-04-08 at 5 09 18 pm

Test condition: selections made before clicking save

screen shot 2018-04-08 at 5 11 12 pm

Test result: after clicking save, after both selection and deselection tests. Notice the missing "Kerosene" row, as well as the lost (and modified) "LPG" selections

screen shot 2018-04-08 at 5 31 25 pm
densoutar commented 6 years ago

Test Results 2018-04-11

Of the 5 selected, only 1 persisted, but instead of displaying the selected unit, it displayed a different one.

Deselecting the test one selection that was "saved" persisted, as did deselecting the only selection under the AD that was present before the test (which retained the selected unit).

densoutar commented 6 years ago

@gilgad I see where some ADs have no EFs listed. Is this to avoid the NaN issue?

Does this mean I don't need to create an issue for save errors, since based on our last conversation, unit selection is optional?

gilgad commented 6 years ago

before we were getting NaN's because a value was not saved in the database for the AD and the system attempted to do the calculation anyway. This doesn't happen anymore.

If EF's are not listed it is because the system did not find any associated EF's for that AD.

densoutar commented 6 years ago

Problem remains, plus application still allows me to navigate away from Calculations page while I have unsaved changes.

densoutar commented 6 years ago

Test 2018-04-15

Issues

densoutar commented 6 years ago

@gilgad While putting together the revised guide I observed that:

densoutar commented 6 years ago

@gilgad

Test 2018-04-23 Modified selections under "AD - Commercial/Institutional - Kerosene - 2010"

Issues

Passed

densoutar commented 6 years ago

Resolved