Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3320928
feat(dupes): interactive duplicate-person review (scan, review, expor…
2000game Nov 9, 2026
1f744a3
fix(dupes): address review findings
2000game Nov 9, 2026
650149d
fix(dupes): tag Dublette and open CT's duplicate page, show group nam…
2000game Nov 9, 2026
b909c20
fix(dupes): clearer merge plan wording (person ids, no-groups case)
2000game Nov 9, 2026
25041ed
feat(dupes): merge through the ChurchTools merge API
2000game Nov 9, 2026
ce4d49a
fix(dupes): safe merge body (emails, empty fields, retries)
2000game Nov 9, 2026
8bc50c1
feat(dupes): ChurchTools-style original/duplicate view with swap
2000game Nov 9, 2026
9874c63
feat(dupes): full-screen review TUI modelled on ChurchTools' duplicat…
2000game Nov 9, 2026
b9be10a
fix(dupes): send the merge body in the shape ChurchTools' UI sends; s…
2000game Nov 10, 2026
41307e5
fix(dupes): build the merge body from an allowlist; CT fails on neste…
2000game Nov 10, 2026
c132703
feat(dupes): clean up shared groups before merging
2000game Nov 10, 2026
3a9c30d
feat(dupes): review in the browser, modelled on ChurchTools' duplicat…
2000game Nov 11, 2026
38ad609
feat(dupes): clickable arrows and a Bereich section in the browser re…
2000game Nov 11, 2026
5e4ed03
feat(dupes): merge without a confirm box in the browser review
2000game Nov 11, 2026
433708b
feat(dupes): show each email's contact type, as ChurchTools does
2000game Nov 11, 2026
ede1fac
feat(dupes): show dates as ChurchTools does (30.06.1999)
2000game Nov 11, 2026
7427e1a
feat(dupes): × leaves an email out, the arrow takes it, as in ChurchT…
2000game Nov 11, 2026
0a904c3
feat(dupes): keep both Bereiche, stay on the pager position, show Chu…
2000game Nov 11, 2026
95ba80c
feat(dupes): name both persons and their Optigem IDs in the finance e…
2000game Nov 11, 2026
be78b27
feat(dupes): explain ChurchTools' refusal to merge a person with perm…
2000game Nov 11, 2026
1db2d86
feat(dupes): keep the dialog steady while merging and loading the nex…
2000game Nov 11, 2026
f4b19d5
feat(dupes): download the finance export from the review page
2000game Nov 11, 2026
d4609a7
fix(dupes): address review findings on merge safety, loading, export …
2000game Nov 11, 2026
4803869
docs(dupes): describe retry-safe group clean-up, recovered merges and…
2000game Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export `CT_LOGINTOKEN` (and `CT_HOST`) instead. Never commit a token — see
tool can have. Anything touching diffing needs a test that pins the rendered plan.
- **A clean apply must round-trip to a no-op.** If applying a config and re-planning shows
a diff, the resource's `managedFields` are wrong — that is a bug, not a quirk.
- **People are out of scope, permanently.** `assertNotPeople` guards every write path.
PRs that manage people will be declined regardless of quality; it is a boundary, not a
gap.
- **People are out of scope for the structure engine, permanently.** `assertNotPeople`
guards every engine write path. PRs that make `plan` / `apply` manage people will be
declined regardless of quality; it is a boundary, not a gap. The only code that touches
person records is `ct dupes` (`src/dupes/`, `src/commands/dupes.ts`): interactive,
operator-driven, with its own personal-data guard. Keep it that way.
- **Live-API tests are opt-in, and writes are triple-gated.** Reads need `CT_LIVE=1`.
Writes additionally need `CT_LIVE_WRITE=1` **and** `CT_LIVE_WRITE_HOST` set to exactly
the authenticated host — a deliberate barrier against a live write landing on prod.
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ group types and roles, permissions, auto-groups — as versioned desired-state
code, and reconcile it against the ChurchTools API with Terraform-style
**`plan` / `apply`**.

> **People are never managed.** This tool touches only the scaffold, and only
> resources that are _explicitly_ declared or adopted. Everything else is
> invisible: never shown, never changed, never proposed for deletion.
> **The structure commands never touch people.** `plan` / `apply` / `destroy`
> work only on the scaffold, and only on resources that are _explicitly_ declared
> or adopted. Everything else is invisible: never shown, never changed, never
> proposed for deletion. The one exception is the separate, interactive-only
> [`ct dupes`](docs/handbuch/dupes.md) command family, which helps an operator
> review duplicate person records. It never runs unattended and refuses to run
> in a non-interactive session against a protected environment.

> **Frozen.** The TypeScript config DSL receives bugfixes only and is removed
> in ct-cli 5.0. Its successor is `terraform-provider-churchtools`, an
Expand Down Expand Up @@ -330,7 +334,7 @@ ct apply --env prod # protected env: type the env name to confirm
- Protected environments: apply/destroy always require typed confirmation of the
env name — `--auto-approve` / `--force` never bypass it.
- Per-env state files are host-bound: `--env prod` can never touch a dev-bound state.
- People and memberships are never touched (a hard boundary in code).
- `plan` / `apply` / `destroy` never touch people or memberships (a hard boundary in code). Only `ct dupes` does, explicitly and interactively.
- Backup/export before every `apply` and `destroy`.
- Rate-limit + retry on API calls (writes are never blindly re-sent on 5xx).
- Tokens live in the OS keychain / `.env`, never in git.
Expand Down
264 changes: 264 additions & 0 deletions docs/handbuch/dupes.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/handbuch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ each page marks explicitly what was **verified** and what is still an
- **[API behaviour](api-behaviour.md)** — what ChurchTools does that its API
documentation does not say: the session cookie rename, login tokens, OAuth
clients, error bodies, and the traps in group membership reads and writes.
- **[Duplicate review (`ct dupes`)](dupes.md)** — the interactive, operator-only
workflow for finding, reviewing and merging duplicate person records, and the
personal-data guard around it.

!!! note "Language"
These pages are English while the rest of the Handbuch is German. That is a
Expand Down
1 change: 1 addition & 0 deletions docs/handbuch/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ nav:
- Group member fields: group-member-fields.md
- Blueprints: blueprints.md
- API behaviour: api-behaviour.md
- Duplicate review (ct dupes): dupes.md
Loading
Loading