Marc-André Bombeck
78ac2c5aeb
refactor(sharing): read and judge grants from a leaf module
...
lib/sharing/grants.ts held both the grant transitions and the predicates
every reader asks (state, level, scope, the live grant for a pair). The
transitions reach into the managed-profile lifecycle and the OAuth connect
target, and both of those read a live grant, so grants, lifecycle and
connect-target formed an import cycle.
The predicates, findActiveGrant and touchGrantUsage move verbatim to
lib/sharing/grant-access.ts, which imports only the database client and
the scope vocabulary. Importers and the mocks that replaced those
functions point at the new module. Runtime import cycles fall from 7 to 6.
2026-10-23 11:02:10 +02:00
..
2026-10-23 10:54:23 +02:00
2026-10-23 11:02:10 +02:00
2026-10-21 21:38:32 +02:00
2026-10-22 14:50:00 +02:00
2026-10-20 09:08:40 +02:00
2026-10-03 18:18:56 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 13:16:22 +02:00
2026-10-16 05:36:42 +02:00
2026-10-23 11:02:10 +02:00
2026-10-21 22:40:43 +02:00
2026-09-25 21:55:14 +02:00
2026-09-10 03:55:46 +02:00
2026-10-21 19:24:21 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 13:53:54 +02:00
2026-10-21 19:24:21 +02:00
2026-10-21 19:24:21 +02:00
2026-10-16 01:23:26 +02:00
2026-10-21 16:25:26 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 16:09:28 +02:00
2026-10-21 12:32:12 +02:00
2026-10-16 01:20:53 +02:00
2026-10-23 08:14:32 +02:00
2026-10-20 13:29:14 +02:00
2026-10-20 13:57:11 +02:00
2026-10-22 05:31:09 +02:00
2026-10-21 21:37:21 +02:00
2026-10-23 10:54:23 +02:00
2026-10-21 21:37:21 +02:00
2026-10-21 20:51:13 +02:00
2026-10-20 13:29:14 +02:00
2026-10-22 23:15:43 +02:00
2026-10-20 13:01:45 +02:00
2026-10-22 18:20:02 +02:00
2026-10-22 10:34:45 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 10:40:45 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:48:15 +02:00
2026-10-20 20:56:08 +02:00
2026-08-02 16:36:25 +02:00
2026-10-20 09:08:40 +02:00
2026-10-22 23:15:43 +02:00
2026-10-22 14:50:00 +02:00
2026-10-23 08:14:15 +02:00
2026-10-01 10:06:39 +02:00
2026-10-04 15:13:52 +02:00
2026-10-22 05:32:21 +02:00
2026-10-20 13:53:54 +02:00
2026-10-21 21:37:21 +02:00
2026-10-22 14:50:00 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 13:29:14 +02:00
2026-10-21 21:37:21 +02:00
2026-10-20 16:01:13 +02:00
2026-08-06 04:59:25 +02:00
2026-10-21 19:49:07 +02:00
2026-10-11 15:17:43 +02:00
2026-10-22 14:50:00 +02:00
2026-10-20 20:56:08 +02:00
2026-10-20 09:28:40 +02:00
2026-10-22 05:32:09 +02:00
2026-10-20 13:29:14 +02:00
2026-10-23 10:54:23 +02:00
2026-10-22 15:16:42 +02:00
2026-10-09 15:02:14 +02:00
2026-10-22 05:30:31 +02:00
2026-10-23 08:18:43 +02:00
2026-10-21 16:50:14 +02:00
2026-10-20 13:53:54 +02:00
2026-10-20 09:08:40 +02:00
2026-10-21 21:37:21 +02:00
2026-10-21 21:18:33 +02:00
2026-10-22 18:21:02 +02:00