Skip to content

Fix UpdateGithubDataJob email validation failures#138

Merged
newstler merged 2 commits intomainfrom
fix/update-github-job
Feb 12, 2026
Merged

Fix UpdateGithubDataJob email validation failures#138
newstler merged 2 commits intomainfrom
fix/update-github-job

Conversation

@newstler
Copy link
Owner

@newstler newstler commented Feb 12, 2026

Summary

  • Relaxed email validation on User model to allow_blank — GitHub's GraphQL API returns nil for users with private emails, causing ~50% of batch updates to fail
  • Removed NotifyAdminJob, AdminMailer, and associated views — failures are already logged by the job itself

Test plan

  • All 116 tests pass
  • Brakeman: 0 warnings
  • RuboCop: clean
  • Deploy and verify next UpdateGithubDataJob run completes without email validation errors

🤖 Generated with Claude Code

newstler and others added 2 commits February 12, 2026 03:40
UpdateGithubDataJob was failing for ~50% of users because GitHub's
GraphQL API returns nil for private emails, triggering the email
presence validation. Relaxed to allow_blank since this is OAuth-only.

Removed NotifyAdminJob, AdminMailer, and associated views as they
were unused beyond logging (which the job already does).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Multiple GitHub users have nil/blank emails (private email setting).
The database-level UNIQUE index caused SQLite3::ConstraintException
for these users during batch updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@newstler newstler merged commit b0f828e into main Feb 12, 2026
4 checks passed
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