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

feat: policy evaluation plan #4442

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Aug 28, 2024

What this PR changes/adds

Introduces the policy evaluation plan and planner:

Given a Policy and a scope, the PolicyEvaluationPlanner will recursively visit the input policy and it builds the PolicyEvaluationPlan based on the PolicyEngine configuration.

The PolicyEvaluationPlan contains all the steps that the impl of PolicyEngine will take when evaluating a Policy 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.

@wolf4ood wolf4ood self-assigned this Aug 28, 2024
@wolf4ood wolf4ood added the enhancement New feature or request label Aug 28, 2024
@wolf4ood wolf4ood force-pushed the feat/4424_policy_evaluation_plan branch 9 times, most recently from 772eba7 to ec991c7 Compare August 29, 2024 16:19
@wolf4ood wolf4ood marked this pull request as ready for review August 29, 2024 16:20
@wolf4ood wolf4ood force-pushed the feat/4424_policy_evaluation_plan branch from ec991c7 to 83657bd Compare August 29, 2024 19:51
@wolf4ood wolf4ood force-pushed the feat/4424_policy_evaluation_plan branch from 83657bd to bd39bb3 Compare August 29, 2024 20:02
Copy link
Member

@ndr-brt ndr-brt left a 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

Copy link
Contributor

@jimmarino jimmarino left a 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

@wolf4ood wolf4ood merged commit b8ea9a2 into eclipse-edc:main Aug 30, 2024
21 checks passed
@wolf4ood wolf4ood deleted the feat/4424_policy_evaluation_plan branch August 30, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add policies evaluation plan in PolicyEngine
3 participants