Skip to content
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

Ensure experiment summary info (columns) is always available in the experiment table data #4396

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 1, 2023

When looking at tooltips for #4229 I found multiple ways to completely break the tooltips by having the columnOrder out of sync with the data in the table. Previously the only way to fix this was by moving a column. This PR should close the loop.

@mattseddon mattseddon added the bug Something isn't working label Aug 1, 2023
@mattseddon mattseddon self-assigned this Aug 1, 2023
@@ -197,12 +172,18 @@ export class ColumnsModel extends PathSelectionModel<Column> {

this.data = columns

if (this.columnOrderState.length === 0) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[B] If this.columnOrderState.length > 0 but columnOrderState does not contain the current params and metrics then getSummaryColumnOrder gives unexpected results.

Copy link
Member Author

@mattseddon mattseddon Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually still the case because there can be stale data in the status object. I will make an update. I have also updated the status object to drop selected columns that are no longer present in the data. These items will be re-added as selected if they ever reappear.

@mattseddon mattseddon force-pushed the fix-column-order branch 3 times, most recently from 5b2a75e to 5acf18a Compare August 1, 2023 09:49
@mattseddon mattseddon changed the title Add missing selected columns to experiments table column order Ensure experiment summary info (columns) is always available in the experiment table data Aug 1, 2023
@mattseddon mattseddon marked this pull request as ready for review August 1, 2023 09:54
Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@mattseddon mattseddon enabled auto-merge (squash) August 1, 2023 21:53
@codeclimate
Copy link

codeclimate bot commented Aug 1, 2023

Code Climate has analyzed commit a2b7309 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.3% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 63d30fe into main Aug 1, 2023
@mattseddon mattseddon deleted the fix-column-order branch August 1, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants