Add row deltas for system tenant administration lists #1

Closed
opened 2026-07-09 16:22:41 +02:00 by zemion · 1 comment
Owner

GET /api/v1/admin/tenants currently returns the full tenant administration list. This is fine with private ETags for small installations, but larger multi-tenant deployments should use the shared row-delta contract.

Scope:

  • Record tenant list changes in core_change_sequence for create/update/status changes that affect the tenant administration grid.
  • Add GET /api/v1/admin/tenants/delta returning tenant rows, tombstones when tenants leave the visible list, watermark, has_more, and full.
  • Add cursor/keyset support if server-side pagination is introduced for the tenant grid.
  • Update the Access/Admin WebUI tenant panel to prefer deltas while retaining the existing snapshot endpoint.
  • Add smoke tests for tenant create, update, deactivate/reactivate, and stale-watermark fallback.

Related platform work: govoplan-core#222.

`GET /api/v1/admin/tenants` currently returns the full tenant administration list. This is fine with private ETags for small installations, but larger multi-tenant deployments should use the shared row-delta contract. Scope: - Record tenant list changes in `core_change_sequence` for create/update/status changes that affect the tenant administration grid. - Add `GET /api/v1/admin/tenants/delta` returning tenant rows, tombstones when tenants leave the visible list, `watermark`, `has_more`, and `full`. - Add cursor/keyset support if server-side pagination is introduced for the tenant grid. - Update the Access/Admin WebUI tenant panel to prefer deltas while retaining the existing snapshot endpoint. - Add smoke tests for tenant create, update, deactivate/reactivate, and stale-watermark fallback. Related platform work: govoplan-core#222.
Author
Owner

Implemented and verified tenant administration row deltas.

Changes:

  • Added GET /api/v1/admin/tenants/delta with full fallback, watermark, has_more, and tombstones.
  • Recorded tenant create/update changes into core_change_sequence.
  • Switched the Access tenant admin table to the shared row-delta loader.
  • Added focused smoke coverage for create/update replay.

Verification: test_tenant_admin_delta_tracks_create_and_update passes.

Implemented and verified tenant administration row deltas. Changes: - Added `GET /api/v1/admin/tenants/delta` with full fallback, `watermark`, `has_more`, and tombstones. - Recorded tenant create/update changes into `core_change_sequence`. - Switched the Access tenant admin table to the shared row-delta loader. - Added focused smoke coverage for create/update replay. Verification: `test_tenant_admin_delta_tracks_create_and_update` passes.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-tenancy#1
No description provided.