diff --git a/endpoints/api/suconfig.py b/endpoints/api/suconfig.py index daaba41ce..ee48fdf19 100644 --- a/endpoints/api/suconfig.py +++ b/endpoints/api/suconfig.py @@ -50,6 +50,11 @@ class SuperUserRegistryStatus(ApiResource): @verify_not_prod def get(self): """ Returns the status of the registry. """ + if app.config.get('DEBUGGING', False): + return { + 'status': 'ready' + } + # If there is no conf/stack volume, then report that status. if not CONFIG_PROVIDER.volume_exists(): return { diff --git a/endpoints/realtime.py b/endpoints/realtime.py index ac2a6c483..212ca6eee 100644 --- a/endpoints/realtime.py +++ b/endpoints/realtime.py @@ -26,10 +26,13 @@ def ps(): def generator(): while True: - builder_data = app.config['HTTPCLIENT'].get('http://localhost:8686/status', timeout=1) build_status = {} - if builder_data.status_code == 200: - build_status = json.loads(builder_data.text) + try: + builder_data = app.config['HTTPCLIENT'].get('http://localhost:8686/status', timeout=1) + if builder_data.status_code == 200: + build_status = json.loads(builder_data.text) + except: + pass data = { 'count': { diff --git a/static/css/core-ui.css b/static/css/core-ui.css index a89f07f39..d19e23dbc 100644 --- a/static/css/core-ui.css +++ b/static/css/core-ui.css @@ -702,4 +702,8 @@ .co-alert .co-step-bar { float: right; margin-top: 6px; +} + +.realtime-area-chart, .realtime-line-chart { + display: inline-block; } \ No newline at end of file diff --git a/static/directives/ps-usage-graph.html b/static/directives/ps-usage-graph.html index 9407519f0..88d4a2ba4 100644 --- a/static/directives/ps-usage-graph.html +++ b/static/directives/ps-usage-graph.html @@ -1,16 +1,18 @@