You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an error occurs while saving from edit mode, the transaction is ended meaning that edit mode is active, with unsaved changes, but no active transaction.
Expected vs Current Behavior
If an error occurs while saving the user should be able to try the save again. Although recovery is impossible in some cases (a conflict is probably impossible to recover from at this point), there have been edge cases observed where recovery was possible where the save error was due to transient network issues.
Make some changes to the display layout (you can just move something around)
In the "Throttle" dropdown in the network tab select "offline"
In the display layout, click "Save and Finish Editing"
Observe that an error is displayed.
In the "Throttle" dropdown in the network tab select "no throttling"
In the display layout, click "Save and Finish Editing" again.
Observe that the Save modal dialog appears and never disappears. The save never completes.
The following is observed in the JavaScript console:
vue.min.js?8f59:6 TypeError: Cannot read properties of null (reading 'commit')
at Editor.save (Editor.js?75c1:62:1)
at a.saveAndFinishEditing (BrowseBar.vue?5e06:331:1)
at Be (vue.min.js?8f59:6:11387)
at HTMLLIElement.n (vue.min.js?8f59:6:13150)
at Qr.o._wrapper (vue.min.js?8f59:6:48794)
Additional Test Instructions (to see if this issue exists in notebooks)
create a notebook
Open the network tab in Chrome dev tools
In the "Throttle" dropdown in the network tab select "offline"
Make some changes to the notebook (adding entries, editing entries, deleting entries, modifying properties)
Observe errors in console
In the "Throttle" dropdown in the network tab select "no throttling"
Make more changes to the notebook
Reload Open MCT to see if all changes were retained
Environment
Open MCT Version: 2.0.5 (but I believe it exists in master as well)
Deployment Type: devsim
Impact Check List
Data loss or misrepresented data? Results in loss of user data.
Regression? Did this used to work or has it always been broken?
Is there a workaround available?
Does this impact a critical component?
Is this just a visual bug with no functional impact?
Does this block the execution of e2e tests?
Does this have an impact on Performance?
Additional Information
The text was updated successfully, but these errors were encountered:
Summary
If an error occurs while saving from edit mode, the transaction is ended meaning that edit mode is active, with unsaved changes, but no active transaction.
Expected vs Current Behavior
If an error occurs while saving the user should be able to try the save again. Although recovery is impossible in some cases (a conflict is probably impossible to recover from at this point), there have been edge cases observed where recovery was possible where the save error was due to transient network issues.
I believe that the desired behavior would be to move the line
this.openmct.objects.endTransaction();
from thefinally
block to the end of thethen
block. The promise chain would probably be clearer using async/await if you felt inclined to refactor it.Steps to Reproduce
Additional Test Instructions (to see if this issue exists in notebooks)
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: