Skip to content

feat: updated conditions filter logic to accurately filter results#1037

Open
JazzarKarim wants to merge 6 commits intobcgov:mainfrom
JazzarKarim:32371-filter-logic-update-exact-matches
Open

feat: updated conditions filter logic to accurately filter results#1037
JazzarKarim wants to merge 6 commits intobcgov:mainfrom
JazzarKarim:32371-filter-logic-update-exact-matches

Conversation

@JazzarKarim
Copy link
Collaborator

@JazzarKarim JazzarKarim commented Feb 12, 2026

Issue:

Description of changes:

  • PR only:
image
  • BL only:
image
  • PR + BL:
image
  • I tested my changes in the registrations table as well, they work.

  • I also compared results with what we already had in DEV, the numbers check out:
    When I select PR in DEV, I get 543 results.
    In here with my new changes:

    • When I select PR only, I get 274 results
    • When I select PR + BL, I get 269 results
      274 + 269 = 543 which makes sense. Just some fun math here to verify results 😁
  • Did some refactoring to the code to fix the Cognitive Complexity issue reported by SC:

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

@JazzarKarim JazzarKarim self-assigned this Feb 12, 2026
@sonarqubecloud
Copy link

@JazzarKarim JazzarKarim marked this pull request as ready for review February 12, 2026 23:19
Copy link
Collaborator

@thorwolpert thorwolpert left a comment

Choose a reason for hiding this comment

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

nice, and decent changes on the tests!

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