datatools-ui icon indicating copy to clipboard operation
datatools-ui copied to clipboard

EditableTextField does not reset after editing if an external property change was rejected/undone.

Open binh-dam-ibigroup opened this issue 3 years ago • 0 comments

Observed behavior (please include a screenshot if possible)

In the ExternalProperties (Mtc Properties) tab of a feed version, after editing a value, if the external system rejects the change for some reason, the text field (EditableTextField) does not update to reflect the rejection and instead incorrectly keeps the edited value.

Expected behavior

The text field should reset to the initial value instead.

Steps to reproduce the problem

Using the MTC example:

  1. Open a feed source, switch to the "Mtc Properties" tab.
  2. Try to modify EditedBy. This value is reset by the external system regardless of editing. Enter any value and click the confirm (check) button.
  3. Observe that the value is not reset in the text field. Refresh the page to see the initial value again.

Any special notes on configuration used

MTC config

Version of datatools-ui and datatools-server if applicable (exact commit hash or branch name)

Recent dev branch of both datatools-ui and datatools-server.

binh-dam-ibigroup avatar Mar 31 '22 23:03 binh-dam-ibigroup