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

Date filter freeze fix #9635

Merged
merged 2 commits into from
Feb 15, 2023
Merged

Date filter freeze fix #9635

merged 2 commits into from
Feb 15, 2023

Conversation

melohagan
Copy link
Collaborator

Description

When doing a SQL filter on a date, the app was crashing because the schema fields were not including the relationship fields.
In addition, found a bug were {} was being passed as a value into the range. This was causing query issues.
Wasn't able to find exactly what/were the invalid date (0000 or 9999) was being converted to an empty object - think it may have been in Knex.
I updated the sql.ts code to handle empty objects.

Addresses:

Screenshots

Screenshot 2023-02-09 at 19 26 02

Screenshot 2023-02-09 at 19 26 20

Screenshot 2023-02-09 at 19 26 47

Copy link
Member

@aptkingston aptkingston left a comment

Choose a reason for hiding this comment

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

LGTM!

@melohagan melohagan merged commit b14a071 into master Feb 15, 2023
@melohagan melohagan deleted the fix/sev2/date-filter-freeze branch February 15, 2023 09:27
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants