-
Notifications
You must be signed in to change notification settings - Fork 0
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(impl):[#359] update registry impl for lookup #829
Conversation
…-for-lookup' into feature/359-registry-update-impl-for-lookup
…for-lookup # Conflicts: # CHANGELOG.md
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.
see comments
return Base64.getEncoder().encodeToString(serialize(globalAssetId)); | ||
} | ||
|
||
private static byte[] serialize(final IdentifierKeyValuePair assetIds) { |
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.
This serialization code is duplicated in several places now. My suggestion would be to extract this to a SerializationHelper class and also write a test for it. Then it can safely be reused in every place where it is needed.
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.
Done
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); | ||
WRITER = mapper.writer(); | ||
} | ||
|
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.
if the serialization code is extracted to a SerializationHelper (see comment further above, the DecentralDigitalTwinRegistryClient stays cleaner because lines 57 to 64 could be removed here.
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.
Done
Quality Gate passedIssues Measures |
story: eclipse-tractusx#359