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

Ignore invalid criteria in SearchBuilder server-side processing #1114

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

mikmart
Copy link
Contributor

@mikmart mikmart commented Jan 21, 2024

Follow-up to #1113.

Sometimes the client will send SearchBuilder queries that contain incomplete or invalid search criteria. For example, when the user changes the data that an existing criteria applies to, a search will be sent to the server with the condition component missing. In client-side processing, such invalid criteria are ignored.

This PR aligns server-side processing with the client-side implementation, by returning NULL to signal that a condition is invalid and should be ignored or that the search contains no valid criteria.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Thanks!

@yihui yihui merged commit 3314081 into rstudio:main Jan 21, 2024
10 checks passed
@mikmart mikmart deleted the sb-skip-invalid branch January 22, 2024 16:42
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