Skip to content

chore(events): remove EventsEnrichedExpanded model - #6441

Merged
vincent-pochet merged 1 commit into
mainfrom
chore/remove-events-enriched-expanded
Sep 18, 2026
Merged

vincent-pochet merged 1 commit into
mainfrom
chore/remove-events-enriched-expanded

Conversation

@vincent-pochet

Copy link
Copy Markdown
Collaborator

Context

events_enriched_expanded was introduced to feed events_aggregated through a materialized view.
That view and its target table have since been dropped, so nothing reads the table anymore. The
Rails side still carries a model, a factory and a deletion path pointing at it.

Description

  • Remove the Clickhouse::EventsEnrichedExpanded model, its factory and its spec.
  • Stop fanning billable-metric deletions out to events_enriched_expanded in Events::DeleteForMetricService.

The ClickHouse schema is left untouched on purpose: the table, its Kafka queue and their migrations
stay in place, so this carries no data loss and stays reversible. Dropping the schema, and with it
the now-idle events_enriched_expanded_queue consumer, is a separate call.

🤖 Generated with Claude Code

## Context

The `events_enriched_expanded` ClickHouse table was introduced to feed
`events_aggregated` through a materialized view. That view and its target
table were dropped, leaving the expanded table without any consumer. The
Rails side kept a model, a factory and a deletion path pointing at a table
nothing reads anymore.

## Description

Remove the `Clickhouse::EventsEnrichedExpanded` model along with its factory
and spec, and stop fanning billable-metric deletions out to the table in
`Events::DeleteForMetricService`.

The ClickHouse schema is deliberately left untouched: the table, its Kafka
queue and their migrations stay in place, so this change is reversible and
carries no data loss. Dropping the schema is a separate decision.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vincent-pochet
vincent-pochet merged commit 6d53867 into main Sep 18, 2026
12 checks passed
@vincent-pochet
vincent-pochet deleted the chore/remove-events-enriched-expanded branch September 18, 2026 15:03
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.

2 participants