Hello dear colleagues! I recently got a request fr...
# advice-metadata-modeling
l
Hello dear colleagues! I recently got a request from my data modeling team. That they woul like to customize Dataset model, to be able e.g add custom field to Schema. This example of this custom field can be - Comment field, where they can leave comments in free form format. There are other requests. But common to them. Even if I can extent existing model, I can't edit data on this fields in DataHub UI. So can I add cutom field to model and user can moderate(add, remove values) into it?
I found in source code that Dataset properties can be editable. So my question is. How to extent existing dataset properties in order to add addtional property which can be edited in UI of DataHub?
h
Did you get an answer to this yet? There is an article on extending the DataHub metadata model. I'll send you link if you don't have it.
l
Hello! Actually not. My problem is that I don't know how to extent existing model. For example i would like add one more boolean field 'isDictionary' to Dataset -> Schema. Using this field I can understand that this fiked from dataset is a reference to some global dictionary.
h
Yep, I get it. Can't find the article. But here are my notes with links. To extend DataHub's built-in metadata model, you can follow the steps outlined in the documentation. Before proceeding, make sure you understand the DataHub Metadata Model concepts defined here and extending the model defined here. The documentation also provides a module that hosts a gradle project where you can store your custom metadata model. It contains an example extension for you to follow. https://github.com/datahub-project/datahub/tree/master/metadata-models-custom
Those links might not work, Here is the article I was thinking of: o https://datahubproject.io/docs/metadata-modeling/extending-the-metadata-model/
l
@limited-motherboard-51317 @helpful-pharmacist-21883 We announced upcoming support for UI editable structured properties in the last townhall:

https://youtu.be/ZVjBqFfuVE4?t=2577

This will hopefully avoid the need to extend the base metadata model for the most common use cases
This should be available on a shorter timeframe cc @little-megabyte-1074 for exact timelines
We're also designing deeper platform improvements to allow runtime extension of the model without needing to write any code but that will take a bit of time
thank you 1
l
Hi! @loud-island-88694 thank you for navigating to specific feature. This editable properties looks like what we need. It would be nice if you can additionally provide a reference to Feature request desription @helpful-pharmacist-21883 Thank you for suggestions and sharing materials. I'll try to experiment with current model extencion
👍 1