mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 03:46:10 +00:00
feat: DBT - allow to use email to match users as fallback with ES search (#17349)
* feat: allow to use email to match dbt model owner * improve description * revert add option to parse from email * feat: implement email matching in case name was not found * feat: use email to find user as fallback at connector level
This commit is contained in:
parent
7b191b891d
commit
34dc79b5fe
@ -156,6 +156,13 @@ class DbtSource(DbtServiceSource):
|
||||
owner = self.metadata.get_reference_by_name(
|
||||
name=dbt_owner, is_owner=True
|
||||
)
|
||||
|
||||
if owner:
|
||||
return owner
|
||||
|
||||
# If owner is not found, try to find the owner in OMD using email
|
||||
owner = self.metadata.get_reference_by_email(name=dbt_owner)
|
||||
|
||||
if not owner:
|
||||
logger.warning(
|
||||
"Unable to ingest owner from DBT since no user or"
|
||||
|
Loading…
x
Reference in New Issue
Block a user