Task groups & viewer in admin panel #52 (#91)

* feat: historical tasks in database, better scheduling, and unified API for accessing tasks

* feat: new UI for everything

* fix: add translations and fix formatting
This commit is contained in:
DecDuck
2025-06-07 15:39:01 +10:00
committed by GitHub
parent d976ac87e3
commit 4184705b14
15 changed files with 468 additions and 105 deletions

View File

@ -0,0 +1,14 @@
-- CreateTable
CREATE TABLE "Task" (
"id" TEXT NOT NULL,
"taskGroup" TEXT NOT NULL,
"started" TIMESTAMP(3) NOT NULL,
"ended" TIMESTAMP(3) NOT NULL,
"success" BOOLEAN NOT NULL,
"error" JSONB,
"progress" DOUBLE PRECISION NOT NULL,
"log" TEXT[],
"acls" TEXT[],
CONSTRAINT "Task_pkey" PRIMARY KEY ("id")
);

View File

@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `name` to the `Task` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Task" ADD COLUMN "name" TEXT NOT NULL;