feat(api): funnel changes

feat(api): reduce DB pool initial size
This commit is contained in:
Taha Yassine Kraiem 2022-01-18 14:19:16 +01:00
parent be2b1708b7
commit e742955fd0
3 changed files with 9 additions and 7 deletions

View file

@ -35,7 +35,7 @@ pg_password=asayerPostgres
pg_port=5432
pg_user=postgres
pg_timeout=30
pg_minconn=50
pg_minconn=45
put_S3_TTL=20
sentryURL=
sessions_bucket=mobs

View file

@ -739,7 +739,7 @@ def get_funnel_issue_sessions(projectId: int, funnelId: int, issueId: str,
data: schemas.FunnelSearchPayloadSchema = Body(...),
context: schemas.CurrentContext = Depends(OR_context)):
data = funnels.search_by_issue(project_id=projectId, user_id=context.user_id, issue_id=issueId,
funnel_id=funnelId, data=data.dict())
funnel_id=funnelId, data=data)
if "errors" in data:
return data
if data.get("issue") is None:

View file

@ -38,11 +38,13 @@ jwt_exp_delta_seconds=2592000
jwt_issuer=openreplay-default-ee
jwt_secret="SET A RANDOM STRING HERE"
peers=http://utilities-openreplay.app.svc.cluster.local:9000/assist/%s/peers
pg_dbname=app
pg_host=127.0.0.1
pg_password=
pg_port=9202
pg_user=
pg_dbname=postgres
pg_host=postgresql.db.svc.cluster.local
pg_password=asayerPostgres
pg_port=5432
pg_user=postgres
pg_timeout=30
pg_minconn=45
put_S3_TTL=20
sentryURL=
sessions_bucket=mobs