-
Notifications
You must be signed in to change notification settings - Fork 245
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: add private properties to policy definition entity #3576
feat: add private properties to policy definition entity #3576
Conversation
@suh-rao Can you please not open-and-close PRs like this as it puts an administrative burden on the reviewers? Stick to one PR per topic. |
@jimmarino : ECA was not updated with old PR even after retrigger. Hence need to close and reopen it again. Will stick to this PR now for the feature |
Removing my review as I am out of office |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3576 +/- ##
==========================================
+ Coverage 71.81% 71.84% +0.03%
==========================================
Files 917 917
Lines 18395 18422 +27
Branches 1044 1045 +1
==========================================
+ Hits 13210 13235 +25
- Misses 4726 4729 +3
+ Partials 459 458 -1 ☔ View full report in Codecov by Sentry. |
Add @paullatzelsperger to review when he is back since this is an area he has worked on extensively. |
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.
still missing:
- a test where a Policy is queried by a private property
- E2E tests in the
PolicyDefinitionApiEndToEndTest
. It's not needed to re-test all test cases, tests for creating policies with private props, querying with private props, one update scenario and a delete scenario would suffice.
...connector/api/management/policy/transform/JsonObjectFromPolicyDefinitionTransformerTest.java
Show resolved
Hide resolved
I followed approach done for contractdefinition. In this PR can I only do changes regarding storing privateProperties as JSON and query part later in next PR? |
Hello, I am unable to add label to pill request. |
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.
I'm ok with tackling the query in a subsequent pr, please open an issue related to it
#3623. This is new issue created for search |
Hey @suh-rao thanks for creating the issue, however it's not an adoption request, just a feature request. Adoption requests are for bigger features, for example "Support XYZ Database in EDC". Please adapt the description of #3623 thus. |
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.
I already said it in my previous review: please extend PolicyDefinitionApiEndToEndTest
, so that it uses private properties, and add corresponding test assertions.
Also, Checkstyle is failing.
Changed issue description as "feature request" |
Hey @paullatzelsperger I updated issue description
Hey @paullatzelsperger I updated endtoend tests also checkstyle issues. All workflows should be green now. Please have a look at into it. |
dependency check still failing. |
In this PR I havent changed any dependencies. So not sure what can be the issue. I synched the branch to main now. |
@suh-rao just take a look at the failing check, you need to replace the contents of your |
@paullatzelsperger All 17 checks passed now. Sync to main branch resolved the issue with dependency. |
Hello @paullatzelsperger : can it be merged now? I can work on search by properties feature after that. |
What this PR changes/adds
Add private properties to policy definition entity. The implementation supports in-memory and postgres as a store.
Why it does that
The private properties are required to provide the owner with the possibility to add extra properties which should not be exposed outside. This requirement was initiated when we want to add administrative properties like (createdBy, createdAt, chnagedBy, chnagedAt), policyType (Access, usage). We assume that the private properties can be used to store such a requirement after registering a listener on the policy definition.
More information is in this discussion:
#2592 (comment)
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 #3567