Commit b0f828e
Fix UpdateGithubDataJob email validation failures (#138)
* fix(jobs): allow blank email on users, remove unused NotifyAdminJob
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>
* fix(db): remove unique constraint on users.email
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>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9ff03f1 commit b0f828e
9 files changed
Lines changed: 9 additions & 71 deletions
File tree
- app
- jobs
- mailers
- models
- views/admin_mailer
- db
- migrate
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 33 | | |
42 | 34 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
This file was deleted.
This file was deleted.
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments