Skip to content

Commit

Permalink
style: fix overload and cli autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
jina-bot committed May 17, 2023
1 parent 43b74db commit 9a51456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions jina/orchestrate/deployments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,17 +1748,9 @@ def _get_summary_table(self, all_panels: List[Panel]):

http_ext_table = self._init_table()
print(f' {swagger_ui_link}')
http_ext_table.add_row(
':speech_balloon:',
'Swagger UI',
swagger_ui_link
)
http_ext_table.add_row(':speech_balloon:', 'Swagger UI', swagger_ui_link)

http_ext_table.add_row(
':books:',
'Redoc',
redoc_link
)
http_ext_table.add_row(':books:', 'Redoc', redoc_link)

all_panels.append(
Panel(
Expand Down
12 changes: 2 additions & 10 deletions jina/orchestrate/flow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2382,19 +2382,11 @@ def _get_summary_table(self, all_panels: List[Panel]):
swagger_ui_link,
)

http_ext_table.add_row(
':books:',
'Redoc',
redoc_link
)
http_ext_table.add_row(':books:', 'Redoc', redoc_link)

if self.gateway_args.expose_graphql_endpoint:

http_ext_table.add_row(
':strawberry:',
'GraphQL UI',
graphql_ui_link
)
http_ext_table.add_row(':strawberry:', 'GraphQL UI', graphql_ui_link)

all_panels.append(
Panel(
Expand Down

0 comments on commit 9a51456

Please sign in to comment.