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:
Antoine Balliet 2024-08-12 13:54:54 +01:00 committed by GitHub
parent 7b191b891d
commit 34dc79b5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"