Skip to content

Commit

Permalink
run-snapshot-async (#1330)
Browse files Browse the repository at this point in the history
* add task_id to snapshot links
---------

Co-authored-by: mike0sv <[email protected]>
  • Loading branch information
svetleo-evidently and mike0sv authored Oct 11, 2024
1 parent 42d836a commit 1a3728d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/evidently/suite/base_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def __iter__(self) -> Iterator[Tuple[str, str, DatasetID]]:
class SnapshotLinks(BaseModel):
datasets: DatasetInputOutputLinks = DatasetInputOutputLinks()
computation_config_id: Optional[ComputationConfigID] = None
task_id: Optional[str] = None


class Snapshot(BaseModel):
Expand Down
9 changes: 7 additions & 2 deletions src/evidently/ui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ def load_config(config_type: Type[TConfig], box: dict) -> TConfig:
continue
if section in ("renamed_vars", "dict_itemiterator"):
continue
if section in config_type.__fields__:
component = parse_obj_as(config_type.__fields__[section].type_, component_dict)
if section == "additional_components":
for subsection, compoennt_subdict in component_dict.items():
component = parse_obj_as(SECTION_COMPONENT_TYPE_MAPPING.get(subsection, Component), compoennt_subdict)
components[subsection] = component
elif section in config_type.__fields__:
type_ = config_type.__fields__[section].type_
component = parse_obj_as(type_, component_dict)
named_components[section] = component
elif section in SECTION_COMPONENT_TYPE_MAPPING:
component = parse_obj_as(SECTION_COMPONENT_TYPE_MAPPING[section], component_dict)
Expand Down

0 comments on commit 1a3728d

Please sign in to comment.