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
Changes reorder column events to use source and destination (#6733)
## Motivation for features / changes
To prepare for showing shared hparam columns across runs and scalar
tables, we need to unify the column re-ordering logic to use the same
source/destination parameters (introduced in #6727).
## Technical description of changes
- Changes the DataTable component (shared by runs and scalar tables) to
use the new ReorderColumnEvent type when column order is changed. The
changes propagate to scalar card scalar column editor containers. Most
of the changes are getting the tests to pass with the new signature.
- Changes the metrics reducers to correctly handle these new events.
Logic is mostly unchanged, except that sort order will now be preserved
even after column toggle (previously, toggling would group all disabled
columns together, which destroys relative column order
misc:
- creates moveColumn utility to abstract shared logic between the
hparams and metrics reducers. Removes redundant tests in hparams reducer
## Detailed steps to verify changes work correctly (as executed by you)
- Unit tests pass
- Manually tested sorting behavior
0 commit comments