Could not use specified custom data roles inside transformer
Describe the bug
We create few type or roles like
so we can't use it inside transformer like:
transformers:
- type: "pattern_add_dataset_ownership"
config:
owner_pattern:
rules:
".*example1.*": ["urn:li:corpuser:username1"]
".*example2.*": ["urn:li:corpuser:username2"]
ownership_type: "Space_Admin"
To Reproduce Steps to reproduce the behavior:
- Go to 'admin'
- Click on 'create custom role'
- Create transformer with this new role
- See error:
'validate_ownership_type\n'
' raise ValueError(f"Unexpected ownership type: {ownership_type}")\n'
'ValueError: Unexpected ownership type: Space_Admin\n'
'\n'
'The above exception was the direct cause of the following exception:\n'
'\n' "
Expected behavior
Simply add any custom roles
Screenshots
Desktop (please complete the following information):
- OS: [e.g. Linux]
- Browser [e.g. chrome]
- Version [e.g. 0.12]
Additional context There no info how to create new role and use it in transformer
Tried to use this one in transformer:
ownership_type: "urn:li:ownershipType:Space_Admin"
but
' raise ValueError(f"Unexpected ownership type: {ownership_type}")\n'
'ValueError: Unexpected ownership type: urn:li:ownershipType:Space_Admin\n'
'\n'
'The above exception was the direct cause of the following exception:\n'
'\n'
'Traceback (most recent call last):\n'
' File "/tmp/datahub/ingest/venv-trino-v0.12.0/lib/python3.10/site-packages/datahub/entrypoints.py", line 188, in main\n'
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
It is actual
This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io
This issue was closed because it has been inactive for 30 days since being marked as stale.