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

Update base survey objects for serialized data #374

Conversation

kaligrafy
Copy link
Contributor

No description provided.

@kaligrafy kaligrafy force-pushed the updateBaseSurveyObjectsForSerializedData branch from ee53971 to ded394a Compare February 6, 2024 22:57
@kaligrafy kaligrafy marked this pull request as ready for review February 6, 2024 22:58
@kaligrafy kaligrafy force-pushed the updateBaseSurveyObjectsForSerializedData branch 4 times, most recently from d7282cc to 1c92cfa Compare February 7, 2024 00:40
@@ -0,0 +1,14 @@
// can return invalid dates: use isNaN on date.getTime() to check if it's valid
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing copyright header

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add unit tests for this file, it's a util after all!


// Validate baseVehicles (if provided)
if (
dirtyParams.baseVehicles !== undefined &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are those validations now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they were never used, this was base object composition, which should not happen. We will composed only custom objects in survey itself.

@kaligrafy kaligrafy force-pushed the updateBaseSurveyObjectsForSerializedData branch from 1c92cfa to 9390a0c Compare February 9, 2024 19:13
@kaligrafy kaligrafy requested a review from tahini February 9, 2024 19:13
@@ -0,0 +1,14 @@
// can return invalid dates: use isNaN on date.getTime() to check if it's valid
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add unit tests for this file, it's a util after all!

@kaligrafy kaligrafy force-pushed the updateBaseSurveyObjectsForSerializedData branch from 44d8505 to dcb91c3 Compare February 9, 2024 19:35
@kaligrafy kaligrafy force-pushed the updateBaseSurveyObjectsForSerializedData branch from dcb91c3 to 9d874cb Compare February 9, 2024 19:56
@kaligrafy kaligrafy merged commit 4b7d488 into chairemobilite:main Feb 9, 2024
3 checks passed
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