Skip to content

Commit

Permalink
fix repo import
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanSoley committed Aug 16, 2024
1 parent d544147 commit 967c7a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rubicon_ml/repository/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import pandas as pd

from rubicon_ml import domain
from rubicon_ml.domain.utils.uuid import uuid4
from rubicon_ml.exceptions import RubiconException
from rubicon_ml.repository.utils import json, slugify

Expand Down Expand Up @@ -1140,7 +1141,7 @@ def add_tags(
tag_metadata_root = self._get_tag_metadata_root(
project_name, experiment_id, entity_identifier, entity_type
)
tag_metadata_path = f"{tag_metadata_root}/tags_{domain.utils.uuid.uuid4()}.json"
tag_metadata_path = f"{tag_metadata_root}/tags_{uuid4()}.json"

self._persist_domain({"added_tags": tags}, tag_metadata_path)

Expand Down Expand Up @@ -1174,7 +1175,7 @@ def remove_tags(
tag_metadata_root = self._get_tag_metadata_root(
project_name, experiment_id, entity_identifier, entity_type
)
tag_metadata_path = f"{tag_metadata_root}/tags_{domain.utils.uuid.uuid4()}.json"
tag_metadata_path = f"{tag_metadata_root}/tags_{uuid4()}.json"

self._persist_domain({"removed_tags": tags}, tag_metadata_path)

Expand Down Expand Up @@ -1274,7 +1275,7 @@ def add_comments(
comment_metadata_root = self._get_comment_metadata_root(
project_name, experiment_id, entity_identifier, entity_type
)
comment_metadata_path = f"{comment_metadata_root}/comments_{domain.utils.uuid.uuid4()}.json"
comment_metadata_path = f"{comment_metadata_root}/comments_{uuid4()}.json"

self._persist_domain({"added_comments": comments}, comment_metadata_path)

Expand Down Expand Up @@ -1308,7 +1309,7 @@ def remove_comments(
comment_metadata_root = self._get_comment_metadata_root(
project_name, experiment_id, entity_identifier, entity_type
)
comment_metadata_path = f"{comment_metadata_root}/comments_{domain.utils.uuid.uuid4()}.json"
comment_metadata_path = f"{comment_metadata_root}/comments_{uuid4()}.json"

self._persist_domain({"removed_comments": comments}, comment_metadata_path)

Expand Down

0 comments on commit 967c7a4

Please sign in to comment.