feat(alle opgaver): et endepunkt med alle åbne opgaver

GET /api/v1/all-tasks: hver åben opgave på øverste niveau i hvert aktivt
projekt, man kan se. Arkiverede projekter er udeladt, underopgaver vises
som deres forælders tal. Højst 2000, og svaret siger det, når der var flere.

Og en kalendertest, der var blevet rød på main: dens begivenhed lå fast
på 20. august, og vinduet holder 90 dage tilbage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
kristianwind
2026-11-21 13:51:27 +01:00
co-authored by Claude Opus 5.5
parent f578dee45f
commit 6dba7ab60a
7 changed files with 162 additions and 9 deletions
+28
View File
@@ -2693,6 +2693,34 @@ paths:
type: array
items: { $ref: "#/components/schemas/Task" }
/api/v1/all-tasks:
get:
tags: [views]
summary: Every open task, for the "All tasks" view.
description: |
Every open, top-level task in every active (not archived) project you can
see. Sub-tasks are left out: they show as their parent's count, as they do
in a project.
Flat rather than grouped. The client groups by project group and project,
and it already holds both lists with their names, colours and order.
At most 2000 tasks are returned. `truncated` is true when there were more,
so a client can say that the list is not complete rather than showing a
shorter one as if it were.
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
tasks:
type: array
items: { $ref: "#/components/schemas/Task" }
truncated: { type: boolean }
/api/v1/search:
get:
tags: [views]