Skip to content

Comments

fix(search): Skip empty operands in search query builder#375

Closed
sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/search-empty-operands
Closed

fix(search): Skip empty operands in search query builder#375
sentry[bot] wants to merge 1 commit intomainfrom
seer/fix/search-empty-operands

Conversation

@sentry
Copy link
Contributor

@sentry sentry bot commented Jan 28, 2026

Description

  • Prevents generation of invalid tsquery syntax (':*') when search query contains empty or whitespace-only terms.
  • Skips empty operands during the search query building process.

Context

Fixes PALVELUKARTTA-API-20. The issue was that: Search query built with to_tsquery syntax (:*) is passed to websearch_to_tsquery, causing a PostgreSQL syntax error.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 571880

Not quite right? Click here to continue debugging with Seer.

PALVELUKARTTA-API-20

How Has This Been Tested?

  • Adds new test cases to cover scenarios with empty or whitespace-only operands.

Manual Testing Instructions for Reviewers

Screenshots

@sonarqubecloud
Copy link

@azure-pipelines
Copy link

PALVELUKARTTA-API branch is deployed to platta: https://palvelukartta-api-pr375.dev.hel.ninja 🚀🚀🚀

@tuomas777
Copy link
Contributor

@sentry review

1 similar comment
@tuomas777
Copy link
Contributor

@sentry review

@tuomas777 tuomas777 marked this pull request as ready for review January 29, 2026 09:50
@tuomas777 tuomas777 requested a review from a team as a code owner January 29, 2026 09:50
@tuomas777
Copy link
Contributor

@sentry review

@azure-pipelines
Copy link

PALVELUKARTTA-API branch is deployed to platta: https://palvelukartta-api-pr375.dev.hel.ninja 🚀🚀🚀

@tuomas777
Copy link
Contributor

Replaced by #387

@tuomas777 tuomas777 closed this Feb 12, 2026
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.

1 participant