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

Commit

Permalink
Clean heron-ui backend (#3597)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Code0x58 committed Nov 11, 2020
1 parent f5a9abe commit 97a9168
Show file tree
Hide file tree
Showing 47 changed files with 1,484 additions and 2,814 deletions.
3 changes: 1 addition & 2 deletions heron/common/src/python/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
# specific language governing permissions and limitations
# under the License.
'''common utility modules'''
__all__ = ['metrics', 'misc', 'topology', 'config', 'tracker_access',
'tuple', 'proc', 'log']
__all__ = ['proc', 'log']
3 changes: 1 addition & 2 deletions heron/instance/src/python/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
# specific language governing permissions and limitations
# under the License.
'''common utility modules'''
__all__ = ['metrics', 'misc', 'topology', 'config', 'tracker_access',
'system_constants', 'system_config', 'tuple', 'proc', 'log']
__all__ = ['system_constants', 'system_config', 'tuple']
2 changes: 1 addition & 1 deletion heron/shell/src/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pex_library(
),
reqs = [
"requests==2.12.3",
"tornado==4.0.2",
"tornado==4.5.3",
],
deps = [
"//heron/common/src/python:common-py",
Expand Down
4 changes: 2 additions & 2 deletions heron/tools/common/src/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package(default_visibility = ["//visibility:public"])

pex_library(
name = "tracker-py",
srcs = glob(["access/*.py"]),
srcs = glob(["clients/*.py"]),
)

pex_library(
name = "common-py",
srcs = glob(
["**/*.py"],
exclude = ["access"],
exclude = ["clients"],
exclude_directories = 1,
),
reqs = ["PyYAML==3.13"],
Expand Down
79 changes: 0 additions & 79 deletions heron/tools/common/src/python/access/fetch.py

This file was deleted.

Loading

0 comments on commit 97a9168

Please sign in to comment.