Skip to content

Add use_for_projections to events - #2230

Merged
moveson merged 1 commit into
masterfrom
oveson/claude/use-for-projections-migration
Aug 20, 2026
Merged

Add use_for_projections to events#2230
moveson merged 1 commit into
masterfrom
oveson/claude/use-for-projections-migration

Conversation

@moveson

@moveson moveson commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Migration-only PR for #2229 (decoupling projection/planning data inclusion from event group concealment). No model or business logic — that comes in a follow-up PR after this has merged and run in production.

  • db/migrate: adds events.use_for_projections, boolean, default: true, null: false
  • db/data: backfills use_for_projections = false for events in concealed event groups, seeding the flag from the projection engine's current concealment predicate so its introduction is behavior-invisible; after the backfill the flag and concealment move independently
  • db/schema.rb, db/data_schema.rb, erd.mmd regenerated by the migrations

The backfill's down is a deliberate no-op: the column default is the only prior state.

Relates to #2229

Testing

  • bin/rails db:migrate and bin/rails data:migrate run clean locally (backfill flipped 1 event in the dev database's one concealed group)

🤖 Generated with Claude Code

Schema-only PR for #2229. Adds the boolean (default true, null false)
and a data migration seeding it from current behavior: events in
concealed event groups start excluded, so introducing the flag changes
nothing at rollout. The projection engine and event form changes follow
in a separate PR once this has run in production.

Relates to #2229

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@moveson
moveson merged commit 8c52a70 into master Aug 20, 2026
13 of 14 checks passed
@moveson
moveson deleted the oveson/claude/use-for-projections-migration branch August 20, 2026 16:36
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