Skip to content

Commit

Permalink
refactor(chalice): search for sessions that have at least 1 location …
Browse files Browse the repository at this point in the history
…event for heatmaps
  • Loading branch information
tahayk committed Jul 2, 2024
1 parent abaf043 commit 91768bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions api/chalicelib/core/heatmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ def search_short_session(data: schemas.ClickMapSessionsSearch, project_id, user_
value=[0],
operator=schemas.MathOperator._greater))

data.filters.append(schemas.SessionSearchFilterSchema(type=schemas.FilterType.events_count,
value=[0],
operator=schemas.MathOperator._greater))

full_args, query_part = sessions.search_query_parts(data=data, error_status=None, errors_only=False,
favorite_only=data.bookmarked, issue=None,
project_id=project_id, user_id=user_id)
Expand Down
8 changes: 0 additions & 8 deletions ee/api/chalicelib/core/heatmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ def search_short_session(data: schemas.ClickMapSessionsSearch, project_id, user_
value=[0],
operator=schemas.MathOperator._greater))

data.filters.append(schemas.SessionSearchFilterSchema(type=schemas.FilterType.events_count,
value=[0],
operator=schemas.MathOperator._greater))

full_args, query_part = sessions.search_query_parts(data=data, error_status=None, errors_only=False,
favorite_only=data.bookmarked, issue=None,
project_id=project_id, user_id=user_id)
Expand Down Expand Up @@ -322,10 +318,6 @@ def search_short_session(data: schemas.ClickMapSessionsSearch, project_id, user_
value=[0],
operator=schemas.MathOperator._greater))

data.filters.append(schemas.SessionSearchFilterSchema(type=schemas.FilterType.events_count,
value=[0],
operator=schemas.MathOperator._greater))

full_args, query_part = sessions.search_query_parts_ch(data=data, error_status=None, errors_only=False,
favorite_only=data.bookmarked, issue=None,
project_id=project_id, user_id=user_id)
Expand Down

0 comments on commit 91768bb

Please sign in to comment.