Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingest): add typeUrn in glossary sync source #11545

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading