Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 97a9168

Browse files
authored
Clean heron-ui backend (#3597)
* Clean heron-ui backend * replace tornado server with FastAPI+Jinja2+Uvicorn * factor out torado from heron.tools.common * add type annotations * expose port 8889 of Vagrant VM for heron-ui * pin to latest 4.x version of Tornado * visual changes to container pages This should only be an internal refactor. Async querying of the tracker was dropped, but could be reintroduced using [aiohttp](https://docs.aiohttp.org/en/stable/) if speed becomes an issue for requests that aggregate tracker data. * Remove duplicate tracker process
1 parent f5a9abe commit 97a9168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1484
-2814
lines changed

heron/common/src/python/utils/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
'''common utility modules'''
18-
__all__ = ['metrics', 'misc', 'topology', 'config', 'tracker_access',
19-
'tuple', 'proc', 'log']
18+
__all__ = ['proc', 'log']

heron/instance/src/python/utils/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
'''common utility modules'''
18-
__all__ = ['metrics', 'misc', 'topology', 'config', 'tracker_access',
19-
'system_constants', 'system_config', 'tuple', 'proc', 'log']
18+
__all__ = ['system_constants', 'system_config', 'tuple']

heron/shell/src/python/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pex_library(
77
),
88
reqs = [
99
"requests==2.12.3",
10-
"tornado==4.0.2",
10+
"tornado==4.5.3",
1111
],
1212
deps = [
1313
"//heron/common/src/python:common-py",

heron/tools/common/src/python/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package(default_visibility = ["//visibility:public"])
22

33
pex_library(
44
name = "tracker-py",
5-
srcs = glob(["access/*.py"]),
5+
srcs = glob(["clients/*.py"]),
66
)
77

88
pex_library(
99
name = "common-py",
1010
srcs = glob(
1111
["**/*.py"],
12-
exclude = ["access"],
12+
exclude = ["clients"],
1313
exclude_directories = 1,
1414
),
1515
reqs = ["PyYAML==3.13"],

heron/tools/common/src/python/access/fetch.py

-79
This file was deleted.

0 commit comments

Comments
 (0)