Skip to content

Remove legacy name tracking callback from User model#1276

Merged
maebeale merged 1 commit intomainfrom
maebeale/remove-legacy-name-tracking
Mar 1, 2026
Merged

Remove legacy name tracking callback from User model#1276
maebeale merged 1 commit intomainfrom
maebeale/remove-legacy-name-tracking

Conversation

@maebeale
Copy link
Collaborator

@maebeale maebeale commented Mar 1, 2026

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

  • Names are now stored on the Person model, not User
  • The track_name_change callback was firing unnecessarily on User updates, creating misleading Ahoy events
  • This removes dead code that no longer serves a purpose

How did you approach the change?

  • Removed the after_update :track_name_change callback from User
  • Removed the track_name_change private method

Anything else to add?

  • No migration needed — existing auth.name_changed Ahoy events remain in the database but no new ones will be created

🤖 Generated with Claude Code

Names are now stored on Person, not User, so the track_name_change
callback was firing unnecessarily on User updates. Remove the
after_update hook and the track_name_change method.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maebeale maebeale merged commit 2ed56b7 into main Mar 1, 2026
6 of 9 checks passed
@maebeale maebeale deleted the maebeale/remove-legacy-name-tracking branch March 1, 2026 13:59
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