-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Makes runs table use hparam store for hparam columns #6736
Conversation
WORKSPACE
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this change was needed. Can you please remove this file from this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry buildifier keeps annoyingly swapping these lines. I'll add this change properly in a separate PR.
let columns = [...runsTableHeaders, ...hparamColumns]; | ||
// Override hparam options to match runs table requirements. | ||
columns = columns.map((column) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: It seems strange to initialize the column array, then immediately remap it.
let columns = [...runsTableHeaders, ...hparamColumns]; | |
// Override hparam options to match runs table requirements. | |
columns = columns.map((column) => { | |
// Override hparam options to match runs table requirements. | |
const columns = [ | |
...runsTableHeaders, | |
...hparamColumns, | |
].map((column) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also debating whether to combine these lines. I'll prefer conciseness going forward!
## Motivation for features / changes Recently merged hparam column PRs (#6732, #6733, #6736) will cause build and lint errors during 1p sync. ## Technical description of changes - import map from rxjs/operators instead of rxjs - `DataTableUtils` -> `dataTableUtils` - use proper string signature on CardStateMap in tests
Motivation for features / changes
To display shared hparam columns across runs and scalar tables, both should read this data from the same hparam store. This PR first applies this change to the runs table.
Technical description of changes
Updates runs table to use columns from the hparam store, and to dispatch hparam actions
misc:
Screenshots of UI changes (or N/A)
UI works the same
Detailed steps to verify changes work correctly (as executed by you)
Manually verified that adding/removing/filter columns is unchanged