fix: show all assigned tasks on leader dashboard
This commit is contained in:
1 parent
9d1a6b4379
commit
03d01315a9
4 files changed
+30
-14
No files matched your search
@@ -80,6 +80,9 @@ test('table filters use a bounded single-connection read and default to 20 rows'
|
||||
server.indexOf("app.get('/api/operations-dashboard/tasks/:taskId'")
|
||||
);
|
||||
assert.match(dashboardQuery, /businessRouteId === 'unclassified'[\s\S]*?t\.business_route_id IS NULL/);
|
||||
assert.match(dashboardQuery, /t\.assigned_user_id IS NOT NULL[\s\S]*?t\.source IN \('manual', 'agentbus'\)/);
|
||||
assert.match(dashboardQuery, /actorUserId[\s\S]*?t\.assigned_user_id = \$\$\{params\.length\}/);
|
||||
assert.match(dashboardQuery, /LEFT JOIN users assignee ON assignee\.id = t\.assigned_user_id/);
|
||||
assert.match(dashboardQuery, /t\.business_route_id = \$\$\{params\.length\} OR t\.business_route_id IS NULL/);
|
||||
assert.match(dashboardQuery, /const taskSearchSelect = `[\s\S]*?t\.success_receipt = '\{\}'::jsonb[\s\S]*?END AS execution_result/);
|
||||
assert.match(dashboardQuery, /withTransaction\(this\.config/);
|
||||
@@ -102,6 +105,11 @@ test('table filters use a bounded single-connection read and default to 20 rows'
|
||||
assert.match(dashboardRoute, /request\.raw\.off\('aborted', abortRequest\)/);
|
||||
assert.match(dashboardQuery, /operations_dashboard_query_timeout/);
|
||||
|
||||
const dashboardDetail = taskService.slice(taskService.indexOf('async getOperationsDashboardTask('));
|
||||
assert.match(dashboardDetail, /t\.assigned_user_id IS NOT NULL/);
|
||||
assert.match(dashboardDetail, /t\.source IN \('manual', 'agentbus'\)/);
|
||||
assert.doesNotMatch(dashboardDetail, /t\.source = 'manual'/);
|
||||
|
||||
const sync = app.slice(
|
||||
app.indexOf('async function syncOperationsDashboard()'),
|
||||
app.indexOf('async function loadOperationsDashboardTask(')
|
||||
|
||||
Reference in new issue
Block a user