Approve equipment registrations and edits automatically #108
+223
−46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
EQUIPMENT_AUTO_APPROVE, which defaults to on; set it tofalseto bring the review queue back without a code change.sync_config_snapshot. It re-reads the committed row under a per-equipment file lock, then writes or removes the snapshot to match, so two saves at nearly the same moment can't leave the older definition on disk.Testing
EQUIPMENT_AUTO_APPROVE=false, and two new tests cover auto-approval: status, reviewer fields, notices, and snapshot refresh through the API routes.test_rcac_runner.pyfails to import (rcac_runnerhas no source in the repo, only a stale.pyc). This is unrelated and pre-existing.Deploy
API change, no schema change. Per the usual procedure: build the API image, run the
dt-db-migrateJob with it, thenkubectl set imageondt-apiandcronjob/dt-api-retrain; also rebuilddt-webfor the text change.🤖 Generated with Claude Code