Skip to content

Commit

Permalink
make search changes backwards compatible (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen authored Feb 7, 2024
1 parent 798d9da commit 5952426
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/ui_backend_service/api/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
class SearchApi(object):
def __init__(self, app, db, cache=None):
self.db = db
# Old search route kept for backwards compatibility
app.router.add_route(
"GET", "/flows/{flow_id}/runs/{run_number}/search", self.get_run_tasks
)
app.router.add_route(
"GET", "/search/flows/{flow_id}/runs/{run_number}", self.get_run_tasks
)
Expand All @@ -32,7 +36,7 @@ def __init__(self, app, db, cache=None):

@handle_exceptions
async def get_run_tasks(self, request):
scope_list = _decode_url_param_value(request.query.get('scope', '')).split(',')
scope_list = _decode_url_param_value(request.query.get('scope', SCOPE_ARTIFACT)).split(',')
ws = web.WebSocketResponse()
await ws.prepare(request)

Expand Down

0 comments on commit 5952426

Please sign in to comment.