Merge remote-tracking branch 'origin/api-v1.5.5' into dev
This commit is contained in:
commit
0bc8a08ebc
1 changed files with 7 additions and 6 deletions
|
|
@ -7,11 +7,11 @@ from chalicelib.utils import pg_client
|
||||||
from chalicelib.utils.TimeUTC import TimeUTC
|
from chalicelib.utils.TimeUTC import TimeUTC
|
||||||
|
|
||||||
CATEGORY_DESCRIPTION = {
|
CATEGORY_DESCRIPTION = {
|
||||||
'overview': 'lorem ipsum',
|
'overview': 'High-level metrics and web vitals.',
|
||||||
'custom': 'lorem cusipsum',
|
'custom': 'Previously created custom metrics by me and my team.',
|
||||||
'errors': 'lorem erripsum',
|
'errors': 'Keep a closer eye on errors and track their type, origin and domain.',
|
||||||
'performance': 'lorem perfipsum',
|
'performance': 'Optimize your app’s performance by tracking slow domains, page response times, memory consumption, CPU usage and more.',
|
||||||
'resources': 'lorem resipsum'
|
'resources': 'Find out which resources are missing and those that may be slowing your web app.'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -28,7 +28,8 @@ def get_templates(project_id, user_id):
|
||||||
AND (project_id ISNULL OR (project_id = %(project_id)s AND (is_public OR user_id= %(userId)s)))
|
AND (project_id ISNULL OR (project_id = %(project_id)s AND (is_public OR user_id= %(userId)s)))
|
||||||
) AS metrics
|
) AS metrics
|
||||||
GROUP BY category
|
GROUP BY category
|
||||||
ORDER BY category;""", {"project_id": project_id, "userId": user_id})
|
ORDER BY ARRAY_POSITION(ARRAY ['custom','overview','errors','performance','resources'], category);""",
|
||||||
|
{"project_id": project_id, "userId": user_id})
|
||||||
cur.execute(pg_query)
|
cur.execute(pg_query)
|
||||||
rows = cur.fetchall()
|
rows = cur.fetchall()
|
||||||
for r in rows:
|
for r in rows:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue