-
Notifications
You must be signed in to change notification settings - Fork 261
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
Redesigned ConnectedAssetUniverse instantiation #7534
Merged
lpalashevski
merged 12 commits into
odpi:main
from
LeeVi3w:connected-asset-missing-props
Mar 23, 2023
Merged
Redesigned ConnectedAssetUniverse instantiation #7534
lpalashevski
merged 12 commits into
odpi:main
from
LeeVi3w:connected-asset-missing-props
Mar 23, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LeeVi3w
requested review from
planetf1,
pmarius22,
popa-raluca,
cmgrote,
lcpopa and
alexandra-bucur
as code owners
March 20, 2023 10:27
LeeVi3w
force-pushed
the
connected-asset-missing-props
branch
2 times, most recently
from
March 20, 2023 10:36
9f4e7ea
to
306ee83
Compare
Signed-off-by: Liviu Enache <[email protected]>
LeeVi3w
force-pushed
the
connected-asset-missing-props
branch
from
March 20, 2023 10:52
306ee83
to
65e569c
Compare
Signed-off-by: Liviu Enache <[email protected]>
LeeVi3w
force-pushed
the
connected-asset-missing-props
branch
from
March 20, 2023 10:59
65e569c
to
392985b
Compare
mandy-chessell
approved these changes
Mar 20, 2023
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.
Looks good - just a few layout issues
...dpi/openmetadata/frameworkservices/ocf/metadatamanagement/client/ConnectedAssetUniverse.java
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/SchemaAttributes.java
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/SchemaAttributes.java
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/SchemaAttributes.java
Show resolved
Hide resolved
...work/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/AssetUniverse.java
Outdated
Show resolved
Hide resolved
...dpi/openmetadata/frameworkservices/ocf/metadatamanagement/client/ConnectedAssetUniverse.java
Outdated
Show resolved
Hide resolved
Need to correct the signing of your commits Click on the "DCO" details |
...metadata/frameworkservices/ocf/metadatamanagement/client/EgeriaConnectedAssetProperties.java
Fixed
Show fixed
Hide fixed
LeeVi3w
force-pushed
the
connected-asset-missing-props
branch
2 times, most recently
from
March 21, 2023 08:53
b90e6e7
to
6f2fe7d
Compare
Signed-off-by: Liviu Enache <[email protected]>
Signed-off-by: Liviu Enache <[email protected]>
Signed-off-by: Liviu Enache <[email protected]>
LeeVi3w
force-pushed
the
connected-asset-missing-props
branch
from
March 21, 2023 08:55
6f2fe7d
to
a004c18
Compare
mandy-chessell
approved these changes
Mar 21, 2023
Signed-off-by: Liviu Enache <[email protected]>
lpalashevski
approved these changes
Mar 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Changed the instantiation method of
ConnectedAssetUniverse
from public constructors to static factory methods which return new objects.This change was made to allow the use of the
AssetUniverse
super constructor with parameters as to set the missing properties reported in issue #7505. This decision was taken due to the fact that the super constructor needed data which was retrieved after its call inside theConnectedAssetUniverse
constructor.The static factory methods introduced (one for each existing constructor) have the advantage of being able to process the needed data beforehand and then passing it to the
ConnectedAssetUniverse
, which in turn can call the super constructor that populates the missing properties with the given data. The newly createdConnectedAssetUniverse
object is then returned.These static factory methods are called create, and they make use of only one (private)
ConnectedAssetUniverse
constructor which takes anAssetResponse
object and extracts theAsset
bean containing the needed properties.I have chosen this approach to avoid having to separate the data gathering logic from the class itself and to avoid having to set the missing fields in a dedicated function when there already exists a super constructor that deals with this.
Related Issue(s)
#7505 [BUG] ConnectedAssetUniverse not gathering all asset properties
Testing
The testing has been manually done using an instance of ConnectedAssetClient inside a Java application.