-
Notifications
You must be signed in to change notification settings - Fork 240
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
feat: policy evaluation plan #4442
Merged
wolf4ood
merged 3 commits into
eclipse-edc:main
from
wolf4ood:feat/4424_policy_evaluation_plan
Aug 30, 2024
Merged
feat: policy evaluation plan #4442
wolf4ood
merged 3 commits into
eclipse-edc:main
from
wolf4ood:feat/4424_policy_evaluation_plan
Aug 30, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wolf4ood
force-pushed
the
feat/4424_policy_evaluation_plan
branch
9 times, most recently
from
August 29, 2024 16:19
772eba7
to
ec991c7
Compare
wolf4ood
force-pushed
the
feat/4424_policy_evaluation_plan
branch
from
August 29, 2024 19:51
ec991c7
to
83657bd
Compare
wolf4ood
force-pushed
the
feat/4424_policy_evaluation_plan
branch
from
August 29, 2024 20:02
83657bd
to
bd39bb3
Compare
ndr-brt
approved these changes
Aug 30, 2024
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.
just some nits, cool stuff
...icy-engine-lib/src/main/java/org/eclipse/edc/policy/engine/plan/PolicyEvaluationPlanner.java
Outdated
Show resolved
Hide resolved
...icy-engine-lib/src/main/java/org/eclipse/edc/policy/engine/plan/PolicyEvaluationPlanner.java
Outdated
Show resolved
Hide resolved
...icy-engine-lib/src/main/java/org/eclipse/edc/policy/engine/plan/PolicyEvaluationPlanner.java
Show resolved
Hide resolved
jimmarino
approved these changes
Aug 30, 2024
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.
One nit to look at
...mmon/lib/policy-engine-lib/src/main/java/org/eclipse/edc/policy/engine/PolicyEngineImpl.java
Outdated
Show resolved
Hide resolved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR changes/adds
Introduces the policy evaluation plan and planner:
Given a
Policy
and a scope, thePolicyEvaluationPlanner
will recursively visit the input policy and it builds thePolicyEvaluationPlan
based on thePolicyEngine
configuration.The
PolicyEvaluationPlan
contains all the steps that the impl ofPolicyEngine
will take when evaluating aPolicy
withing a scope.Why it does that
improve policies usage and debuggability
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Linked Issue(s)
Closes #4424
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.