Skip to content
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

Fix _security label filtering with :not operator in the in-memory matcher #6691

Merged
merged 7 commits into from
Feb 10, 2025

Conversation

nathandoef
Copy link
Collaborator

@nathandoef nathandoef commented Feb 7, 2025

Previously, when the in-memory matcher was used to match resources with a _security label filter
and a :not operator (i.e. _security:not=http://terminology.hl7.org/CodeSystem/v3-ActCode|NODSCLCD), resources with no security labels at all were not matched. This has been fixed.

Copy link

github-actions bot commented Feb 7, 2025

Formatting check succeeded!

@nathandoef nathandoef changed the title Fix :not filtering in the authorization interceptor Fix :not operator on _security filtering Feb 8, 2025
@nathandoef nathandoef linked an issue Feb 8, 2025 that may be closed by this pull request
@nathandoef nathandoef changed the title Fix :not operator on _security filtering Fix _security label filtering with :not operator in the in-memory matcher Feb 8, 2025
Copy link

codecov bot commented Feb 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (rel_8_0@ebb016f). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             rel_8_0    #6691   +/-   ##
==========================================
  Coverage           ?   83.52%           
  Complexity         ?    28606           
==========================================
  Files              ?     1798           
  Lines              ?   111311           
  Branches           ?    13979           
==========================================
  Hits               ?    92975           
  Misses             ?    12347           
  Partials           ?     5989           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nathandoef nathandoef enabled auto-merge (squash) February 10, 2025 07:28
@nathandoef nathandoef disabled auto-merge February 10, 2025 07:29
Copy link
Collaborator

@jmarchionatto jmarchionatto left a comment

Choose a reason for hiding this comment

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

Looks good! Approved

@nathandoef nathandoef merged commit d9f86a9 into rel_8_0 Feb 10, 2025
67 checks passed
@nathandoef nathandoef deleted the nd-2025-02-07-not-security-label-filter branch February 10, 2025 15:27
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.

_security label filter with :not operator behaving incorrectly
2 participants