From 9cce41c0151bd4b8c4020a23d9000d7f558719a6 Mon Sep 17 00:00:00 2001 From: Deepankar Mahapatro Date: Thu, 18 May 2023 20:35:23 +0530 Subject: [PATCH] fix: point to cloud.jina.ai logs url --- lcserve/flow.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lcserve/flow.py b/lcserve/flow.py index b82ef894..d91d3d1b 100644 --- a/lcserve/flow.py +++ b/lcserve/flow.py @@ -34,8 +34,7 @@ DEFAULT_TIMEOUT = 120 ServingGatewayConfigFile = 'servinggateway_config.yml' JCloudConfigFile = 'jcloud_config.yml' -# TODO: this needs to be pulled from Jina Wolf API dynamically after the issue has been fixed on the API side -APP_LOGS_URL = "[dashboards.wolf.jina.ai](https://dashboard.wolf.jina.ai/d/flow/flow-monitor?var-flow={flow}&var-datasource=thanos&orgId=2&from=now-24h&to=now&viewPanel=85)" +APP_LOGS_URL = "[https://cloud.jina.ai/](https://cloud.jina.ai/user/flows?action=detail&id={app_id}&tab=logs)" def syncify(f): @@ -816,14 +815,13 @@ def _replace_wss_with_https(endpoint: str): status: Dict = app_status['status'] endpoint = _get_endpoint(status) - flow_namespace = app_id.split("-")[-1] _add_row('App ID', app_id, bold_key=True, bold_value=True) _add_row('Phase', status.get('phase', '')) _add_row('Endpoint', endpoint) _add_row( 'App logs', - Markdown(APP_LOGS_URL.format(flow=flow_namespace), justify='center'), + Markdown(APP_LOGS_URL.format(app_id=app_id), justify='center'), ) _add_row('Swagger UI', _replace_wss_with_https(f'{endpoint}/docs')) _add_row('OpenAPI JSON', _replace_wss_with_https(f'{endpoint}/openapi.json'))