-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ml): show custom properties for MLFeatureTable in UI #4706
feat(ml): show custom properties for MLFeatureTable in UI #4706
Conversation
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.
Awesome! Thanks for this.
@@ -41,6 +42,8 @@ public MLFeatureTableProperties apply(@NonNull final com.linkedin.ml.metadata.ML | |||
.collect(Collectors.toList())); | |||
} | |||
|
|||
result.setCustomProperties(StringMapMapper.map(mlFeatureTableProperties.getCustomProperties())); |
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.
@maaaikoool I think we need a (if mlFeatureTableProperties. getCustomProperties() != null)
check 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.
I believe that customProperties
is non nullable ( it has a @Nonnull
annotation )
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.
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've double checked with other mappers and it seems that indeed we are using a conditional assignment checking for hasCustomProperties
so I've added it for consistency 👌
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.
thanks!
thanks for the review! |
…oject#4706) * feat(ml): show custom properties for MLFeatureTable in UI * Make assignment conditional * Fix lint
Adds the properties tab to MLFeatureTable, which is quite handy to add custom metadata that does not fit with the actual model.
Checklist