I see there are already a couple of transformers t...
# ingestion
w
I see there are already a couple of transformers to set dataset ownership https://datahubproject.io/docs/metadata-ingestion/transformers#change-owners However, none of them allows for specifying the role of the ownership. Any plans for that?
g
Hey Sergio- I agree with the suggestion for a richer ownership transformer! We would definitely want to add that later down the line.
For now, you can take a look at the adding custom transformer section if you'd like to build one yourself:
m
Hey @witty-butcher-82399 you could actually add this feature to the existing transformers as well. It might be quite useful for the community.
w
Yes, I was thinking on that. Adding the role should be easy, keeping the config model backwards compatible is the challenge. Would something like this work for you?
Copy code
transformers:
  - type: "simple_add_dataset_ownership"
    config:
      role: DATAOWNER
      owner_urns:
        - "urn:li:corpuser:username1"
        - "urn:li:corpGroup:groupname1"
  - type: "simple_add_dataset_ownership"
    config:
      role: PRODUCER
      owner_urns:
        - "urn:li:corpuser:username2"
        - "urn:li:corpGroup:groupname2"
Being
role
optional and DEVELOPER (current behaviour) as default.
I have this small PR https://github.com/linkedin/datahub/pull/3159 I’d like your feedback before updating docs and so on