-
Notifications
You must be signed in to change notification settings - Fork 0
fix(PM-4203): Modified the skills filter to use AND semantics #64
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ WHERE m.description IS NOT NULL | |
| AND m."photoURL" <> '' | ||
| AND m."homeCountryCode" IS NOT NULL | ||
| AND ($1::text IS NULL OR COALESCE(m."homeCountryCode", m."competitionCountryCode") = $1) | ||
| AND ($5::uuid[] IS NULL OR ms.skill_ids && $5::uuid[]) | ||
| AND ($5::uuid[] IS NULL OR ms.skill_ids @> $5::uuid[]) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| AND ( | ||
| $2::boolean IS NULL | ||
| OR m."availableForGigs" = $2::boolean | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗
correctness]The change from
&&to@>alters the logic from checking for any overlap to ensuring all elements in$3are present inms.skill_ids. Ensure this change aligns with the intended logic for filtering by skills, as it could significantly impact the query results.