From 7ad16b77791fecc70d02755d363434a262527e88 Mon Sep 17 00:00:00 2001 From: Zach <54722467+zabarn@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:26:51 -0600 Subject: [PATCH] fix: Correct apply_project in HttpRegistry (#161) --- sdk/python/feast/infra/registry/http.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk/python/feast/infra/registry/http.py b/sdk/python/feast/infra/registry/http.py index 3b8f69e9c2..cc2f799be3 100644 --- a/sdk/python/feast/infra/registry/http.py +++ b/sdk/python/feast/infra/registry/http.py @@ -757,6 +757,18 @@ def apply_project( project: Project, commit: bool = True, ): # type: ignore[return] + """ + We were not applying projects before the addition of the line below this comment. + When either validating features or trying to register them, the feature-store-feast-sdk would fail. + cli.py --> validate.py --> instantiating FeatureStore obj --> instantiating HttpRegistry obj --> apply_project() + No project was applied. + We then query the feature store registry and get back a 404 for the project. + Using apply_project_metadata(project.name) restores functionality. + + + Update this with correct implimentation for Project Objects later. + """ + self.apply_project_metadata(project.name) return None def delete_project(