Skip to content

Commit

Permalink
Fixed display of working time in Grafana management dashboard (#8112)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed Jul 3, 2024
1 parent f886f83 commit 9811a22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.d/20240703_102756_andrey_fix_grafana_dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Fixed display of working time in Grafana management dashboard
(<https://github.com/cvat-ai/cvat/pull/8112>)
2 changes: 1 addition & 1 deletion components/analytics/grafana/dashboards/management.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
}
},
"queryType": "sql",
"rawSql": "SELECT\r\n user_id as User,\r\n project_id as Project,\r\n task_id as Task,\r\n job_id as Job, sum(JSONExtractUInt(payload, 'working_time')) / 1000 / 3600 as \"Working time(h)\",\r\n count() as Activity\r\nFROM events\r\nWHERE JSONHas(payload, 'working_time')\r\n AND $__timeFilter(timestamp)\r\n AND user_id IN (${users})\r\n AND (-1 IN (${projects}) OR project_id IN (${projects}))\r\n AND task_id IN (${tasks})\r\n AND job_id IN (${jobs})\r\n AND source = 'client'\r\nGROUP BY user_id, project_id, task_id, job_id",
"rawSql": "SELECT\r\n user_id as User,\r\n project_id as Project,\r\n task_id as Task,\r\n job_id as Job, sum(JSONExtractUInt(payload, 'working_time')) / 1000 / 3600 as \"Working time(h)\",\r\n count() as Activity\r\nFROM events\r\nWHERE JSONHas(payload, 'working_time')\r\n AND $__timeFilter(timestamp)\r\n AND user_id IN (${users})\r\n AND (-1 IN (${projects}) OR project_id IN (${projects}))\r\n AND task_id IN (${tasks})\r\n AND job_id IN (${jobs})\r\nGROUP BY user_id, project_id, task_id, job_id",
"refId": "A"
}
],
Expand Down

0 comments on commit 9811a22

Please sign in to comment.