Skip to content

Commit

Permalink
fix(chalice): fixed clickmaps duplicate filters
Browse files Browse the repository at this point in the history
  • Loading branch information
tahayk committed May 29, 2024
1 parent 52ca86a commit 01c07e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requests = "==2.32.2"
boto3 = "==1.34.113"
pyjwt = "==2.8.0"
psycopg2-binary = "==2.9.9"
psycopg = {extras = ["binary", "pool"], version = "==3.1.19"}
psycopg = {extras = ["pool", "binary"], version = "==3.1.19"}
elasticsearch = "==8.13.2"
jira = "==3.8.0"
fastapi = "==0.111.0"
Expand Down
3 changes: 2 additions & 1 deletion api/chalicelib/core/custom_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def __get_sessions_list(project_id, user_id, data: schemas.CardSchema):
def __get_click_map_chart(project_id, user_id, data: schemas.CardClickMap, include_mobs: bool = True):
if len(data.series) == 0:
return None
data.series[0].filter.filters += data.series[0].filter.events
# this code is duplicating the clickmap filters when creating a card
# data.series[0].filter.filters += data.series[0].filter.events
return click_maps.search_short_session(project_id=project_id, user_id=user_id,
data=schemas.ClickMapSessionsSearch(
**data.series[0].filter.model_dump()),
Expand Down

0 comments on commit 01c07e3

Please sign in to comment.