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

6295 chain search params for auth filtering #6300

Draft
wants to merge 2 commits into
base: 7.5.0-snapshot-midcycle-branch
Choose a base branch
from

Conversation

TipzCM
Copy link
Collaborator

@TipzCM TipzCM commented Sep 18, 2024

No description provided.

leif stawnyczy added 2 commits September 16, 2024 16:48
Copy link

This Pull Request has failed the formatting check

Please run mvn spotless:apply or mvn clean install -DskipTests to fix the formatting issues.

You can automate this auto-formatting process to execute on the git pre-push hook, by installing pre-commit and then calling pre-commit install --hook-type pre-push. This will cause formatting to run automatically whenever you push.

IAuthorizationSearchParamMatcher.MatchResult mr = matcher.match(
theRuleTestRequest.resource.fhirType() + "?" + myQueryParameters, theRuleTestRequest.resource);
new IAuthorizationSearchParamMatcher.AuthSearchMatchParameters().setQueryParameters(theRuleTestRequest.resource.fhirType() + "?" + myQueryParameters)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: I doubt we need a request object for Resource + query string.

@@ -44,7 +44,7 @@ public boolean matchesOutput(RuleTestRequest theRuleTestRequest) {

private boolean checkMatch(RuleTestRequest theRuleTestRequest) {
// look for a matcher
IAuthorizationSearchParamMatcher matcher = theRuleTestRequest.ruleApplier.getSearchParamMatcher();
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: The SearchParamMatcher interface is fine. so how about we limit the changes within/under that api. No changes should be required in the rules package.

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