-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear data for objects clears data for all objects #4065
Comments
This is implemented as the ClearDataAction |
Was able to reproduce, looking into it now. |
The object emit is emitting the correct path in clearDataAction, but the wrong vue component is responding to it (SWG instead of the stacked plot). One solution I've got implemented in a branch is to navigate to the object that's doing the clearDataAction first, before emitting the clearData event. This is borrowing heavily from RemoveAction: |
Though this causes a regression now with RemoveAction in that the parent & child of the path are now reversed, so attempting to delete the StackedPlot now tries to remove the parent! |
@shefalijoshi recommended removing "Clear Action" from non-selected items in the tree. I.e., don't allow contextual "Clear Action" if you haven't selected the item in the tree. |
I've added a first draft on removing "Clear Action" from non-selected items in the tree: |
To test removing "Clear Data" context action on non-selected objects:
To test keeping "Clear Data" context action on selected objects:
To test clearing only data on one graph in a display layout:
To test global clear data
|
Clear data for objects clears data for all objects #4065
Verified Testathon 9-20-21. |
Verified Fixed. |
Verified Fixed |
Verified fixed |
Summary
Clear data for objects
clears data for all objectsExpected vs Current Behavior
Should clear a data only for given object
Impact Check List
Steps to Reproduce
Clear data for objects
Environment
Version: 1.7.4
Build Date: Thu Jul 22 2021 11:35:01 GMT-0700 (Pacific Daylight Time)
Revision: 42af3ad
Branch: flexible-inspector-properties
Additional Information
NA
The text was updated successfully, but these errors were encountered: