Skip to content

fix(PM-4203): Modified the skills filter to use AND semantics#64

Merged
kkartunov merged 2 commits intodevelopfrom
pm-4203_1
Mar 18, 2026
Merged

fix(PM-4203): Modified the skills filter to use AND semantics#64
kkartunov merged 2 commits intodevelopfrom
pm-4203_1

Conversation

@hentrymartin
Copy link
Contributor

What's in this PR?

  • Modified the skills filter to use AND semantics

Ticket link - https://topcoder.atlassian.net/browse/PM-4203

AND m."homeCountryCode" IS NOT NULL
AND ($1::text IS NULL OR COALESCE(m."homeCountryCode", m."competitionCountryCode") = $1)
AND ($3::uuid[] IS NULL OR ms.skill_ids && $3::uuid[])
AND ($3::uuid[] IS NULL OR ms.skill_ids @> $3::uuid[])

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 $3 are present in ms.skill_ids. Ensure this change aligns with the intended logic for filtering by skills, as it could significantly impact the query results.

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[])

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 @> modifies the logic from checking for any overlap between ms.skill_ids and $5 to ensuring ms.skill_ids contains all elements of $5. Ensure this change aligns with the intended behavior of the skills filter, as it could significantly alter the query results.

@hentrymartin hentrymartin requested a review from kkartunov March 17, 2026 18:43
@kkartunov kkartunov merged commit 6ad9e0c into develop Mar 18, 2026
7 checks passed
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