Skip to content

Ignore invalid criteria in SearchBuilder server-side processing#1114

Merged
yihui merged 2 commits intorstudio:mainfrom
mikmart:sb-skip-invalid
Jan 21, 2024
Merged

Ignore invalid criteria in SearchBuilder server-side processing#1114
yihui merged 2 commits intorstudio:mainfrom
mikmart:sb-skip-invalid

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
Contributor

@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
@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