Implement worker schedule access control and runtime tracking: Added a new user right worker_schedule_read to manage access to the getWorkerSchedules WebSocket endpoint. Enhanced the WebSocket server to handle requests for worker schedules, including detailed responses. Introduced runtime tracking for workers, allowing for monitoring of their current state and activity. Updated relevant SQL and Rust structures to support these features.
All checks were successful
Deploy yourpart (blue-green) / deploy (push) Successful in 1m36s

This commit is contained in:
Torsten Schulz (local)
2026-05-08 09:04:21 +02:00
parent b7d7705bbe
commit 42f71d831f
7 changed files with 479 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
-- Recht für WebSocket-Endpoint `getWorkerSchedules`.
-- Zugriff nur für Admins oder User mit diesem Recht.
INSERT INTO "type".user_right (title)
SELECT 'worker_schedule_read'
WHERE NOT EXISTS (
SELECT 1
FROM "type".user_right
WHERE LOWER(title) = 'worker_schedule_read'
);