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: adds policy validation in policy engine #4428

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Aug 21, 2024

What this PR changes/adds

adds policy validation in policy engine

Why it does that

Briefly state why the change was necessary.

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 #4423

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood force-pushed the feat/4423_policy_validation branch from 504b11f to a7b9d30 Compare August 21, 2024 16:13
@wolf4ood wolf4ood added the enhancement New feature or request label Aug 21, 2024
@wolf4ood wolf4ood self-assigned this Aug 21, 2024
@wolf4ood wolf4ood force-pushed the feat/4423_policy_validation branch 2 times, most recently from b49f1bc to 8e3cf33 Compare August 22, 2024 07:57
@@ -42,4 +43,9 @@
*/
boolean canHandle(Object leftValue);


default Result<Void> validate(Object leftValue, Operator operator, Object rightValue, R rule) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'leftValue' is never used.
@@ -42,4 +43,9 @@
*/
boolean canHandle(Object leftValue);


default Result<Void> validate(Object leftValue, Operator operator, Object rightValue, R rule) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'operator' is never used.
@@ -42,4 +43,9 @@
*/
boolean canHandle(Object leftValue);


default Result<Void> validate(Object leftValue, Operator operator, Object rightValue, R rule) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'rightValue' is never used.
@@ -42,4 +43,9 @@
*/
boolean canHandle(Object leftValue);


default Result<Void> validate(Object leftValue, Operator operator, Object rightValue, R rule) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'rule' is never used.
@wolf4ood wolf4ood force-pushed the feat/4423_policy_validation branch from 8e3cf33 to 8c53588 Compare August 22, 2024 15:10
@wolf4ood wolf4ood marked this pull request as ready for review August 22, 2024 15:12
@wolf4ood wolf4ood force-pushed the feat/4423_policy_validation branch from 8c53588 to e09080d Compare August 22, 2024 16:28
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.

all good content-wise, only a nit and some comments to be fixed/removed.

@wolf4ood wolf4ood merged commit 96be76b into eclipse-edc:main Aug 23, 2024
22 checks passed
@wolf4ood wolf4ood deleted the feat/4423_policy_validation branch August 23, 2024 12:42
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 validation in PolicyEngine
3 participants