Skip to content

Commit

Permalink
fmd-1131 - Remove unused field and populating function
Browse files Browse the repository at this point in the history
Signed-off-by: Helder Ribeiro <[email protected]>
  • Loading branch information
hjribeiro-moj committed Dec 16, 2024
1 parent b35eaa5 commit a579f8b
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ def _parse_dataset(
"total_parents": entity.get("relationships", {}).get("total", 0),
"domain_name": domain.display_name,
"domain_id": domain.urn,
"entity_types": self._parse_types_and_sub_types(
entity, result_type.find_moj_data_type.value
),
}
logger.debug(f"{metadata=}")

Expand Down Expand Up @@ -451,9 +448,6 @@ def _parse_container(
"owner_email": owner.email,
"domain_name": domain.display_name,
"domain_id": domain.urn,
"entity_types": self._parse_types_and_sub_types(
entity, subtype.find_moj_data_type.value
),
}

metadata.update(custom_properties)
Expand All @@ -471,11 +465,3 @@ def _parse_container(
glossary_terms=terms,
last_modified=modified,
)

def _parse_types_and_sub_types(self, entity: dict, entity_type: str) -> dict:
entity_sub_type = (
entity.get("subTypes", {}).get("typeNames", [entity_type])
if entity.get("subTypes") is not None
else [entity_type]
)
return {"entity_type": entity_type, "entity_sub_types": entity_sub_type}

0 comments on commit a579f8b

Please sign in to comment.