* fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * feat(chalice): autocomplete return top 10 with stats * fix(chalice): fixed autocomplete top 10 meta-filters * refactor(chalice): removed sessions insights refactor(DB): removed sessions insights * refactor(chalice): upgraded dependencies refactor(crons): upgraded dependencies refactor(alerts): upgraded dependencies feat(chalice): moved CH to FOSS feat(chalice): use clickhouse-connect feat(chalice): use CH connexion pool feat(scripts): defined ch-data-port
17 lines
556 B
Python
17 lines
556 B
Python
from typing import Union
|
|
|
|
import schemas
|
|
from chalicelib.core import product_anaytics2
|
|
from fastapi import Body, Depends
|
|
from or_dependencies import OR_context
|
|
from routers.base import get_routers
|
|
|
|
|
|
public_app, app, app_apikey = get_routers()
|
|
|
|
|
|
@app.post('/{projectId}/events/search', tags=["dashboard"])
|
|
def search_events(projectId: int,
|
|
# data: schemas.CreateDashboardSchema = Body(...),
|
|
context: schemas.CurrentContext = Depends(OR_context)):
|
|
return product_anaytics2.search_events(project_id=projectId, data={})
|