Skip to content

Commit cb81939

Browse files
authored
fix: Read project data from the 'projects' key while loading the registry state in the Feast UI (#4772)
* fix: Read project data from the 'projects' key while loading the registry state in the Feast UI Signed-off-by: boliri <boliri@pm.me> * fix: regenerate registry file so that UI tests can parse the 'projects' object Signed-off-by: boliri <boliri@pm.me> * fix: Check for non-null and non-undefined spec of a project to mitigate errors in UI builds Signed-off-by: boliri <boliri@pm.me> --------- Signed-off-by: boliri <boliri@pm.me>
1 parent 6926a7c commit cb81939

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

ui/public/registry.db

1.25 KB
Binary file not shown.

ui/src/FeastUISansProviders.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test("full app rendering", async () => {
5555
expect(screen.getByText(/Explore this Project/i)).toBeInTheDocument();
5656

5757
const projectNameRegExp = new RegExp(
58-
parsedRegistry.projectMetadata[0].project!,
58+
parsedRegistry.projects[0].spec?.name!,
5959
"i"
6060
);
6161

ui/src/queries/useLoadRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const useLoadRegistry = (url: string) => {
5252
// });
5353

5454
return {
55-
project: objects.projectMetadata[0].project!,
55+
project: objects.projects[0].spec?.name!,
5656
objects,
5757
mergedFVMap,
5858
mergedFVList,

0 commit comments

Comments
 (0)