Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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