fix(chalice): fixed insights with filter steps (#2416)

This commit is contained in:
Kraiem Taha Yassine 2024-07-23 13:01:48 +02:00 committed by GitHub
parent 754293e29d
commit 867247dbc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -185,8 +185,9 @@ def __filter_subquery(project_id: int, filters: Optional[schemas.SessionsSearchP
errors_only=True, favorite_only=None,
issue=None, user_id=None)
params = {**params, **qp_params}
# TODO: test if this line impacts other cards beside insights
# sub_query = f"INNER JOIN {sub_query} USING(session_id)"
# This line was added because insights is failing when you add filter steps,
# for example when you add a LOCATION filter
sub_query = f"INNER JOIN {sub_query} USING(session_id)"
return params, sub_query