-
Notifications
You must be signed in to change notification settings - Fork 10
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
POLICY-166: Linking and Unlinking API improvements #3912
base: master
Are you sure you want to change the base?
Conversation
intg/src/main/java/org/apache/atlas/model/instance/BusinessPolicyRequest.java
Outdated
Show resolved
Hide resolved
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
Outdated
Show resolved
Hide resolved
import org.apache.commons.lang3.StringUtils; | ||
import org.javatuples.Pair; |
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.
imports are not used, please remove
Set<String> newCompliantPolicies = data.getComplaintPolicies(); | ||
|
||
// Calculate effective compliant and non-compliant policies | ||
Set<String> effectiveCompliant = calculateEffectivePolicies(existingCompliant, newCompliantRules, newCompliantPolicies); |
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.
instead of existingCompliant/newCompliantRules/newCompliantPolicies, can we rewrite as existingCompliantGuids/newCompliantRuleGuids/newCompliantGuids
Overall, suggesting mentioning that all these fields stores policy/Rule GUIDs
This also applies to the fields in the model class BusinessPolicyRequest.AssetData
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 have changed it, but not in AssetData, as it will require making the changes in all the integrations everywhere but I have added clarifying comments on top of each attribute, hope it works
Change description
Type of change
Related issues
Checklists
Development
Security
Code review