From eee06743a67bd1bd02141e16b3aa9bdff0c502e9 Mon Sep 17 00:00:00 2001 From: "benjamin.baker" Date: Wed, 9 Sep 2026 19:35:21 -0400 Subject: [PATCH] Register endpointlogcollections in PLUGIN_TABLE_OWNERS The new table was declared as a model and created by migration 7d51, but never added to the explicit ownership map. test_owned_tables_match_declared_models caught the drift. Not cosmetic bookkeeping: the per-plugin migration uses this map to decide which tables it owns, so an unlisted table is invisible to plugin-scoped baseline and prune. The prune path would have treated endpointlogcollections as unowned - collected logs surviving or vanishing on a schema operation that should have been deterministic about them. --- shopdb/plugins/alembic_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shopdb/plugins/alembic_template.py b/shopdb/plugins/alembic_template.py index dde01a12..b1a5292b 100644 --- a/shopdb/plugins/alembic_template.py +++ b/shopdb/plugins/alembic_template.py @@ -58,7 +58,7 @@ PLUGIN_TABLE_OWNERS: dict[str, Iterable[str]] = { 'endpointapplications', 'endpointmonitors', 'operatorreports', 'endpointhealthstates', 'endpointhealthtransitions', 'endpointmonitorimpacts', - 'endpointlocks'), + 'endpointlocks', 'endpointlogcollections'), 'geenforce': ('manifestscopes', 'manifestentries', 'manifestentrypctypes', 'manifestentryhostnames', 'manifestentrymachinenumbers', 'manifestinusechecks', 'manifestinusecheckprocesses',