feat(api): EE optimized get error details

This commit is contained in:
Taha Yassine Kraiem 2022-04-29 18:52:29 +02:00
parent 45e6504a00
commit b95faa0f1a

View file

@ -272,6 +272,7 @@ def get_details(project_id, error_id, user_id, **data):
INNER JOIN events.errors AS ee USING (error_id) INNER JOIN events.errors AS ee USING (error_id)
INNER JOIN public.sessions USING (session_id) INNER JOIN public.sessions USING (session_id)
WHERE pe.project_id = %(project_id)s WHERE pe.project_id = %(project_id)s
AND sessions.project_id = %(project_id)s
AND error_id = %(error_id)s AND error_id = %(error_id)s
ORDER BY start_ts DESC ORDER BY start_ts DESC
LIMIT 1;""", LIMIT 1;""",