Liefere Zähler, Rauminhalt und Teilen im Stapel für die neue Ablage.

Akten und Vorgänge melden Unterakten, Vorgänge und die Räume, mit denen sie geteilt sind, jeweils nur aus Lesbarem. Neue Endpunkte zeigen die Räume als Kacheln, den Inhalt eines Raums und teilen mehrere Einträge auf einmal oder gar nicht. Beim Anlegen lässt sich ein Eintrag gleich in einen Raum legen.

Die lokale Suite läuft mit 148 Tests grün.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-10-22 11:38:02 +02:00
1 parent 30b6544514
commit d39c7d7999
9 files changed
+411 -24

No files matched your search

+4 -4
View File
@@ -747,23 +747,23 @@ def matter_contexts(conn, actor: UUID, matter: dict) -> list[dict]:
return contexts
def shared_room_names(conn, kind: str, resource_id: UUID) -> list[str]:
def _shared_rooms(conn, kind: str, resource_id: UUID) -> list[dict]:
rows = conn.execute(
"""
SELECT r.name FROM room_shares s JOIN data_rooms r ON r.id = s.room_id
SELECT r.id, r.name, s.access FROM room_shares s JOIN data_rooms r ON r.id = s.room_id
WHERE s.resource_kind = %s AND s.resource_id = %s
ORDER BY r.name, r.id
""",
(kind, resource_id),
).fetchall()
return [row["name"] for row in rows]
return [{"id": str(row["id"]), "name": row["name"], "access": row["access"]} for row in rows]
def matter_summary(conn, actor: UUID, matter: dict) -> dict:
owner = matter["owner_subject_id"] == actor
return {
"is_owner": owner,
"shared_with": shared_room_names(conn, "matter", matter["id"]) if owner else [],
"shared_with": _shared_rooms(conn, "matter", matter["id"]) if owner else [],
"id": str(matter["id"]),
"title": matter["title"],
"status": matter["record_status"],