Skip to content

Commit 28f812a

Browse files
committed
Remove generated IDs for edge facts
1 parent 6bf9899 commit 28f812a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

horizon/data_manager/update_operations.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
from typing import Iterator
3-
from uuid import uuid4
43

54
from opal_common.schemas.data import JsonableValue
65

@@ -29,7 +28,6 @@ def _get_operations_for_update_relationship_tuple(
2928
fact=Fact(
3029
type="relationship_tuples",
3130
attributes={
32-
"id": str(uuid4()),
3331
"subject": f"{target_type}:{target}",
3432
"relation": relation,
3533
"object": obj,
@@ -56,7 +54,6 @@ def _get_operations_for_update_role_assigment(
5654
fact=Fact(
5755
type="role_assignments",
5856
attributes={
59-
"id": str(uuid4()),
6057
"actor": f"user:{user_key}",
6158
"tenant": subject_key,
6259
"role": role_key,
@@ -69,7 +66,6 @@ def _get_operations_for_update_role_assigment(
6966
fact=Fact(
7067
type="role_assignments",
7168
attributes={
72-
"id": str(uuid4()),
7369
"actor": f"user:{user_key}",
7470
"tenant": "",
7571
"role": role_key,

0 commit comments

Comments
 (0)