Skip to content

chore: drop member_type from MemberEmailDelivery ignored_columns - #2830

Merged
mroderick merged 1 commit into
masterfrom
chore/drop-member-type-ignored-columns
Aug 31, 2026
Merged

chore: drop member_type from MemberEmailDelivery ignored_columns#2830
mroderick merged 1 commit into
masterfrom
chore/drop-member-type-ignored-columns

Conversation

@mroderick

@mroderick mroderick commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Problem

Follow-up to #2829: the ignored_columns += ['member_type'] guard added there is unnecessary and would linger as a "why is this here?" artifact.

Reasoning

ignored_columns matters for two-phase column removals: deploy code that ignores the column first, drop it later, so old dynos with a stale schema cache can't generate SQL referencing it. That is why the can_log_in precedent kept its line — its rollout was two-phase.

Here the column removal ships in the same release as the migration, and no code ever referenced member_type (the concern's INSERTs list explicit attributes; all reads are SELECT .*). Old dynos during the rolling deploy cannot generate SQL mentioning the column, so there is nothing for the guard to protect.

Context

Stacked on #2829 — base branch is chore/remove-unused-member-type; retarget to master when that merges.

@mroderick
mroderick marked this pull request as ready for review August 31, 2026 09:58
@mroderick
mroderick requested a review from olleolleolle August 31, 2026 09:58

@olleolleolle olleolleolle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we can, we can merge this.

Base automatically changed from chore/remove-unused-member-type to master August 31, 2026 10:22
The guard is unnecessary: the column removal ships in the same release
as the migration, and no code ever referenced member_type, so stale
schema caches on old dynos cannot generate SQL mentioning it. The
can_log_in precedent kept its line because that rollout was two-phase;
this one is not.
@mroderick
mroderick force-pushed the chore/drop-member-type-ignored-columns branch from 7d11214 to 8401c98 Compare August 31, 2026 10:22
@mroderick
mroderick merged commit 9c99911 into master Aug 31, 2026
9 checks passed
@mroderick
mroderick deleted the chore/drop-member-type-ignored-columns branch August 31, 2026 10:29
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