Skip to content

Commit

Permalink
Fix purview registry bug (#583)
Browse files Browse the repository at this point in the history
Co-authored-by: Yihui Guo <yihgu@microsofot.com>
  • Loading branch information
YihuiGuo and Yihui Guo authored Aug 16, 2022
1 parent 8d33733 commit 0e496e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry/purview-registry/registry/purview_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def create_project_anchor(self, project_id: UUID, definition: AnchorDef) -> UUID
def create_project_anchor_feature(self, project_id: UUID, anchor_id: UUID, definition: AnchorFeatureDef) -> UUID:
attrs = definition.to_attr().to_dict()
project_entity = self.get_entity(project_id)
anchor_entity = self.get_entity(anchor_id)
anchor_entity = self.get_entity(anchor_id,True)
qualified_name = self.registry_delimiter.join([project_entity.qualified_name,
anchor_entity.attributes.name,
attrs['name']])
Expand All @@ -344,7 +344,7 @@ def create_project_anchor_feature(self, project_id: UUID, anchor_id: UUID, defin

# change from AtlasEntity to Entity
anchor_feature_entity = self.get_entity(anchor_feature_entity.guid)
source_entity = self.get_entity(anchor_entity.id)
source_entity = self.get_entity(anchor_entity.attributes.source.id)

project_contains_feature_relation = self._generate_relation_pairs(
project_entity, anchor_feature_entity, Label_Contains)
Expand Down

0 comments on commit 0e496e0

Please sign in to comment.