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

Collapsible validation time fix. #921

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

UlysseFG
Copy link
Collaborator

@UlysseFG UlysseFG commented Feb 3, 2025

No description provided.

@UlysseFG UlysseFG requested a review from nafiz1001 February 3, 2025 18:54
Comment on lines 60 to 71
case SET_LANE_VALIDATION_TIME: {
const { experimentRunName, laneNumber, validationTime} = action
const experimentRunLanes = state.runs[experimentRunName] as ExperimentRunLanes
if (experimentRunLanes) {
const lane = experimentRunLanes.lanes.find(x => x.laneNumber === laneNumber)
if (lane) {
lane.validationTime = validationTime
}
}
break
}

Copy link
Contributor

@nafiz1001 nafiz1001 Feb 4, 2025

Choose a reason for hiding this comment

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

My condolence.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thankfully it's using immer.

Copy link
Contributor

@nafiz1001 nafiz1001 left a comment

Choose a reason for hiding this comment

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

After my changes, I approve.

@UlysseFG
Copy link
Collaborator Author

UlysseFG commented Feb 4, 2025

Please don't hijack my PRs ... if you have a review to do use words ...

@UlysseFG UlysseFG requested a review from nafiz1001 February 12, 2025 16:54
Comment on lines +155 to +159
useEffect(() => {
const refreshedDatasets = lane.datasets.map((dataset) => datasetsById[dataset.datasetID])
setDatasets(refreshedDatasets as Dataset[])
}, [datasetsById])

Copy link
Contributor

Choose a reason for hiding this comment

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

useMemo would be simpler

Comment on lines +50 to +51
return async (dispatch: AppDispatch, getState: () => RootState) => {
const validationTime = lane.datasets.reduce<string | undefined>((latest, dataset) => {
Copy link
Contributor

@nafiz1001 nafiz1001 Feb 13, 2025

Choose a reason for hiding this comment

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

why rename latestValidationTime to validationTime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants