Skip to content

Commit

Permalink
fix(ingest): add typeUrn in glossary sync source (datahub-project#11545)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Oct 7, 2024
1 parent 849e2c1 commit ad24cf1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

class Owners(ConfigModel):
type: str = models.OwnershipTypeClass.DEVELOPER
typeUrn: Optional[str] = None
users: Optional[List[str]] = None
groups: Optional[List[str]] = None

Expand Down Expand Up @@ -154,6 +155,8 @@ def make_glossary_term_urn(

def get_owners(owners: Owners) -> models.OwnershipClass:
ownership_type, ownership_type_urn = validate_ownership_type(owners.type)
if owners.typeUrn is not None:
ownership_type_urn = owners.typeUrn
owners_meta: List[models.OwnerClass] = []
if owners.users is not None:
owners_meta = owners_meta + [
Expand Down

0 comments on commit ad24cf1

Please sign in to comment.