-
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(api, spi, storage): policy profile implementation #4332
feat(api, spi, storage): policy profile implementation #4332
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4332 +/- ##
==========================================
+ Coverage 71.74% 74.91% +3.17%
==========================================
Files 919 1066 +147
Lines 18457 21389 +2932
Branches 1037 1172 +135
==========================================
+ Hits 13242 16024 +2782
- Misses 4756 4839 +83
- Partials 459 526 +67 ☔ View full report in Codecov by Sentry. |
fyi @ndr-brt |
436f908
to
ed1779d
Compare
@saschaisele-zf I am currently working on adding the I assume i'll have this done shortly. Could you wait a little, and rebase on that once i'm finished? |
Can do that. |
#4343 is merged, good to rebase |
f32e8ac
to
4b70956
Compare
...a/org/eclipse/edc/connector/controlplane/api/management/policy/v3/PolicyDefinitionApiV3.java
Outdated
Show resolved
Hide resolved
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.
please add a test on PolicyDefinitionStoreTestBase
as well, to ensure that the persistence is working correctly
...dator-lib/src/main/java/org/eclipse/edc/validator/jsonobject/validators/OptionalIdArray.java
Outdated
Show resolved
Hide resolved
...dator-lib/src/main/java/org/eclipse/edc/validator/jsonobject/validators/OptionalIdArray.java
Outdated
Show resolved
Hide resolved
...dator-lib/src/main/java/org/eclipse/edc/validator/jsonobject/validators/OptionalIdArray.java
Outdated
Show resolved
Hide resolved
...alidator-lib/src/test/java/org/eclipse/edc/validator/jsonobject/JsonObjectValidatorTest.java
Outdated
Show resolved
Hide resolved
...n-ld-spi/src/main/java/org/eclipse/edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java
Outdated
Show resolved
Hide resolved
...r/controlplane/api/management/policy/v31alpha/PolicyDefinitionApiV31AlphaControllerTest.java
Outdated
Show resolved
Hide resolved
added profile to the validation added profile to the policy model added profile to the sql storage Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
e06232c
to
244d0e3
Compare
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
Signed-off-by: Sascha Isele <[email protected]>
What this PR changes/adds
This PR adds the odrl:profile attribute to the policy model.
This includes the necessary changes to the api, validation, transformation, spi and storage.
BREAKING CHANGE: a new
profiles JSON
column has been added to theedc_policydefinitions
tableWhy it does that
The change is necessary to conform to ODRL v2.2
Further notes
For better validation, a new array validator named 'MandatoryIdArray' was added that ensures the array is a list of 'id' values.
To accomodate the transformation, the 'AbstractJsonLdTransformer' was extended with the 'transformIdStringArray' method.
Linked Issue(s)
Closes #3691
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.