-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix issue when user specifies a port for feast ui (#2692)
* fix: Fix issue when user specifies a port for feast ui Signed-off-by: Danny Chiao <[email protected]> * fx Signed-off-by: Danny Chiao <[email protected]> * fix python 3.9 version of importlib Signed-off-by: Danny Chiao <[email protected]> * revert to pkg_resources Signed-off-by: Danny Chiao <[email protected]>
- Loading branch information
Showing
4 changed files
with
33 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"projects": [ | ||
{ | ||
"name": "Project", | ||
"description": "Test project", | ||
"id": "project_id", | ||
"registryPath": "http://0.0.0.0:8888/registry" | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
import React from 'react'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import './index.css'; | ||
import "./index.css"; | ||
import FeastUI from "@feast-dev/feast-ui"; | ||
import "@feast-dev/feast-ui/dist/feast-ui.css"; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<FeastUI | ||
feastUIConfigs={{ | ||
projectListPromise: fetch("http://0.0.0.0:8888/projects-list", { | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
}).then((res) => { | ||
return res.json(); | ||
}) | ||
}} | ||
/> | ||
<FeastUI /> | ||
</React.StrictMode>, | ||
document.getElementById("root") | ||
); | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters