web-client-ui
web-client-ui copied to clipboard
Dehydrated grid settings should be based on column names instead of indexes
Description
We should use column names instead of indexes in dehydrated grid settings. Otherwise, column shifts can result in grid hydration errors.
Steps to reproduce
- Run this command to create a table:
from deephaven import empty_table
t = empty_table(10).update(formulas=["X = `A`"])
- Right-click a value in the column
X, select Filter By Value -> text is exactly - Open Panels menu, click Export Layout
- Update the table, and shift the columns:
from deephaven import empty_table
t = empty_table(10).update(formulas=["I=i", "X = `A`"])
- Open Panels menu, click Import Layout
Expected results
Layout restored, table t has the filter applied on string column X
Actual results
Grid hydration fails [will add more details].
This should most likely include a migration so enterprise workspaces don't break
Similar, but different issue is #643