Skip to content

Stop requiring a status on organizations - #2685

Merged
maebeale merged 3 commits into
mainfrom
maebeale/dedupe-organization-status-rule
Oct 14, 2026
Merged

maebeale merged 3 commits into
mainfrom
maebeale/dedupe-organization-status-rule

Conversation

@maebeale

@maebeale maebeale commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 drops a model validation; small diff but every org save path is affected

Organizations no longer need a status to be saved, which unblocks merging duplicate orgs that never had one.

What is the goal of this PR and why is this important?

  • The stored organization_status is derived from affiliations and isn't consulted as an input (ADR-0003 D4).
  • Requiring it only blocked saves on legacy orgs without one — most visibly dedupe merges ("Organization status can't be blank").

How did you approach the change?

  • belongs_to :organization_status is now optional and the presence validation is gone.
  • The admin status select on the org form is no longer marked required.
  • Status selects (org form + dedupe preview) offer a "(none)" option, so a status-less org reads as having none instead of silently showing the first status.

Anything else to add?

  • The org form's hidden field still defaults new orgs to "Active"; affiliation sync keeps updating the column as before.
  • The column stays in place — dropping it is a separate call.

🤖 Generated with Claude Code

maebeale and others added 2 commits October 14, 2026 10:45
The stored organization_status is derived from affiliations and many legacy
orgs have none, so requiring it blocked admins from merging duplicates. The
preview also silently stamped the first status onto a blank keeper.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The stored status is derived from affiliations and nothing reads it as an
input anymore (ADR-0003 D4), so requiring it only blocked saves — dedupe
merges included — on legacy orgs that never had one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale maebeale changed the title Let organizations merge without a status Stop requiring a status on organizations Oct 14, 2026
A bare blank option reads like a missing render, so an org without a status
looked like it had one or like the select was broken.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale
maebeale marked this pull request as ready for review October 14, 2026 15:26
@maebeale
maebeale merged commit 7abea31 into main Oct 14, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/dedupe-organization-status-rule branch October 14, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant