Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix pydantic warnings
Signed-off-by: tokoko <togurg14@freeuni.edu.ge>
  • Loading branch information
tokoko committed Jun 27, 2024
commit d03f3699526f54b8b69c1da01eb2070c87ad2478
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _create_kubernetes_job(self, job_id, paths, feature_view):
def _create_configuration_map(self, job_id, paths, feature_view, namespace):
"""Create a Kubernetes configmap for this job"""

feature_store_configuration = yaml.dump(self.repo_config.dict(by_alias=True))
feature_store_configuration = yaml.dump(self.repo_config.model_dump(by_alias=True))

materialization_config = yaml.dump(
{"paths": paths, "feature_view": feature_view.name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def setup(self, registry: RegistryConfig):

repo_path = Path(tempfile.mkdtemp())
with open(repo_path / "feature_store.yaml", "w") as outfile:
yaml.dump(config.dict(by_alias=True), outfile)
yaml.dump(config.model_dump(by_alias=True), outfile)
repo_path = str(repo_path.resolve())

self.server_port = free_port()
Expand Down