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

Fix Validation with Timezone Awareness #858

Merged

Conversation

garrettmflynn
Copy link
Member

This PR fixes an issue introduced in #820 where improperly setting the function this reference to access the timezone in the general validateOnChange function would result in the failure of complex validation steps like the inter-table validation expected on Ecephys tables.

Adjusting to always use JSONSchemaForm instances as the this value, and injecting a timezone property if necessary.

Since we're going through changes to our testing utilities, it's worth noting that this would only have been detectable when using the File Metadata page itself, which was why it wasn't flagged in the CI. We'll need to brainstorm ways to catch complex within-page issues like this in the future

@garrettmflynn garrettmflynn self-assigned this Jun 12, 2024
@CodyCBakerPhD CodyCBakerPhD enabled auto-merge June 13, 2024 04:24
@CodyCBakerPhD CodyCBakerPhD merged commit da0926c into main Jun 13, 2024
21 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the fix-complex-validation-while-maintaining-timezone-awareness branch June 13, 2024 04:35
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