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

Remove entity proxy validation on classify/reclassify/declassify #6287

Merged
merged 12 commits into from
Mar 9, 2022

Conversation

popa-raluca
Copy link
Contributor

Description

This PR covers two issues:

  1. Ignore exception on classifyEntity when the entity is already classified - to address the race condition that can occur when two different servers are adding the latest change classification at the same time
  2. Remove entity proxy validation on classify/reclassify/declassify methods in LocalOMRSMetadataCollection
    The previous validation was retrieving the entityDetail of an entity, that was later used in the validation methods of the securityVerifier.
    With these changes the entitySummary of an entity is used instead. I created new methods in the securityVerifier classes, that use EntitySummary as a parameter instead of EntityDetail, but I was wondering if it would be better to modify the existing methods. @mandy-chessell , any thoughts on this?

Fixes # (issue)

How Has This Been Tested?

Tested locally with the setup for the deduplication.

Any additional notes for reviewers?

@popa-raluca popa-raluca requested a review from lcpopa March 1, 2022 13:15
@mandy-chessell
Copy link
Contributor

I agree - lets update the original methods in the security connector to pass EntitySummary on the classification methods.

Copy link
Contributor

@mandy-chessell mandy-chessell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good - I agree with suggestiond to update original classification methods in the security connector to pass EntitySummary rather than EntityDetail

popa-raluca and others added 6 commits March 8, 2022 14:03
…cations

� Conflicts:
�	open-metadata-implementation/common-services/generic-handlers/src/main/java/org/odpi/openmetadata/commonservices/generichandlers/OpenMetadataAPIGenericHandler.java
Signed-off-by: Raluca Popa <raluca.popa2@ing.com>
Signed-off-by: Raluca Popa <raluca.popa2@ing.com>
Signed-off-by: Raluca Popa <raluca.popa2@ing.com>
@popa-raluca popa-raluca enabled auto-merge March 9, 2022 09:35
@popa-raluca popa-raluca merged commit 5d7c9c1 into odpi:master Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants