Skip to content

Commit

Permalink
Remove generated IDs for edge facts
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Sep 18, 2024
1 parent 6bf9899 commit 28f812a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions horizon/data_manager/update_operations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
from typing import Iterator
from uuid import uuid4

from opal_common.schemas.data import JsonableValue

Expand Down Expand Up @@ -29,7 +28,6 @@ def _get_operations_for_update_relationship_tuple(
fact=Fact(
type="relationship_tuples",
attributes={
"id": str(uuid4()),
"subject": f"{target_type}:{target}",
"relation": relation,
"object": obj,
Expand All @@ -56,7 +54,6 @@ def _get_operations_for_update_role_assigment(
fact=Fact(
type="role_assignments",
attributes={
"id": str(uuid4()),
"actor": f"user:{user_key}",
"tenant": subject_key,
"role": role_key,
Expand All @@ -69,7 +66,6 @@ def _get_operations_for_update_role_assigment(
fact=Fact(
type="role_assignments",
attributes={
"id": str(uuid4()),
"actor": f"user:{user_key}",
"tenant": "",
"role": role_key,
Expand Down

0 comments on commit 28f812a

Please sign in to comment.