feat(identity): make persons-seed CLI-only with a scheduled CronJob (#1690) (#2046) - #2059
Conversation
…1690) (#2046) Cherry-pick of the #2046 merge (fab0089) from main. The identity org projection froze after bootstrap (nothing re-ran the persons-seed while connectors kept identity_inputs fresh) — Team-view rosters went stale for everyone re-parented since the last run (vz_blocker #1690). The seed is now a `seed` CLI subcommand run by a Helm CronJob (30 6 * * * UTC) with per-tenant advisory locking (RAII), input guards, an operations journal, and sole-tenant inference when tenant_default_id is not configured. POST /v1/persons-seed and its in-process queue are removed; the GET journal routes remain. Verified on dev pre- and post-merge: org_chart unfroze (max valid_from 27.07 → 29.07), tenant inference works with the untouched dev Secret, re-runs are idempotent. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Cherry-pick of #2046 (merge fab0089) from
mainintorelease-2026.07.1— the delivery path to the deployed instances (#1690 is avz_blocker; dev tracks this branch).Clean pick, no conflicts (24 files). See #2046 for the full description, review threads, and the manual-run instructions.
Verified on this base: 72 unit tests, clippy clean,
helm lintgreen.Verified live on dev (image from the merged main, manual Job from the CronJob): org_chart unfroze (
max valid_from27.07 → 29.07), sole-tenant inference works with dev's untouched Secret (WARN + inferred63b4c45f…), re-runs idempotent, journal rowscompletedwithtrigger: "cli".Rollout note: dev currently runs a manually-applied image + CronJob (drift); this PR makes the delivery durable. No config changes required anywhere — instances without
tenant_default_idin their Secret work via sole-tenant inference.🤖 Generated with Claude Code