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
When a display layout contains an aliased object more than once (ex. aliased plot, embedded display layout with the same aliased plot) trouble follows. The reason is when replacing aliased objects in the export, we create a new identifier for each one, when we should only create ONE new identifier and use that with a different location for subsequent same aliases.
Expected vs Current Behavior
When you export a display with multiple aliases of the same object, it should export/import without issues. Currently, the duplicate aliases will either not show at all or will lose any configuration information related to the display (display, size, etc).
Steps to Reproduce
For Multiple Aliases Bug
Create a display layout and any other object in a folder
Drag the other object into the display layout (creating an alias in the display layout) somewhere in the middle
Create another display layout inside of the first display layout, move it away toward the middle as well and save it
Drag the other original object into the new embedded display layout (it should also be an alias)
Now export the display layout
Now import the display layout
One of the aliases will either disappear or lose it's positioning and end up in the top left corner of the display
For Conditionally Styled Items bug
Repeat above steps to Step 4.
Create a Condition Set styled by some telemetry endpoint (both outside of the display layout to be exported)
Use the condition set to conditionally style the items in the display layout
Export the display layout
Import the display layout
Make sure that the conditionally styled items are still conditionally styled
Make sure the object used to conditionally style the items is shown in the styles tab in the inspector
Impact Check List
Data loss or misrepresented data?
Regression? Did this used to work or has it always been broken?
Is there a workaround available? If you duplicate the item first (removing any aliases) then you can export it without issue
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
Structure
Before Export
After Import
The text was updated successfully, but these errors were encountered:
jvigliotta
changed the title
[ExportAsJson] Multiple aliases of the same object in an export will break display layouts
[ExportAsJson] Multiple aliases of the same object in an export bug and conditionally styled display items bug
Apr 20, 2023
Summary
When a display layout contains an aliased object more than once (ex. aliased plot, embedded display layout with the same aliased plot) trouble follows. The reason is when replacing aliased objects in the export, we create a new identifier for each one, when we should only create ONE new identifier and use that with a different location for subsequent same aliases.
Expected vs Current Behavior
When you export a display with multiple aliases of the same object, it should export/import without issues. Currently, the duplicate aliases will either not show at all or will lose any configuration information related to the display (display, size, etc).
Steps to Reproduce
For Multiple Aliases Bug
For Conditionally Styled Items bug
Impact Check List
Additional Information
Structure
Before Export
After Import
The text was updated successfully, but these errors were encountered: