DOI-USGS / rt-quic-db

A database application for RT-QuIC data with tools for visualization and analysis
https://DOI-USGS.github.io/rt-quic-db/
The Unlicense
1 stars 0 forks source link

Well Edit - Cannot change a value to unspecified #106

Open nathanbollig opened 2 years ago

nathanbollig commented 2 years ago

Currently the user can change a field in well edit to an allowed value, but blanking out the field (to change it from its value to empty) has no effect. For example, if a well record has the sample unspecified, once a sample has been specified, it cannot be changed back to unspecified.

This behavior was selected originally because some fields load as empty if multiple wells are selected and there are multiple values across the selected wells for that field. If a value is not specified in that field, then the form submits with blank. From the perspective of the form submit, this case is indistinguishable from the case where the user deliberated submitted with a blank value.

In summary, there are two cases that need to be handled:

Unsure of how to handle this conflict in behavior.

nathanbollig commented 2 years ago

What about having a red "Erased!" read-only indicator to the right of each field, which appears only if the corresponding field is going to be erased. Use that (rather than value of the field itself) to signal blanking of the field in the selected Well Condition records. The indicator is turned on by: