Skip to content

Fixes setting user on third party Add-Ons for new developers#386

Open
duckduckgrayduck wants to merge 1 commit intomasterfrom
fix_addon_sync
Open

Fixes setting user on third party Add-Ons for new developers#386
duckduckgrayduck wants to merge 1 commit intomasterfrom
fix_addon_sync

Conversation

@duckduckgrayduck
Copy link
Copy Markdown
Contributor

@duckduckgrayduck duckduckgrayduck commented Apr 26, 2026

Alex G. from Datasette couldn't link the Github app to his user account on DocumentCloud to test an Add-On. The user was listed as "None" in the admin panel for the linked Add-On and cannot update. I saw that one other user had the same problem.

documentcloud/addons/signals.py line 23
if acct["provider"] != "github_app":
continue

if acct["provider"] != "github_app":

DocumentCloud's update_github_account signal handler filters incoming Squarelet user_update payloads for social accounts with provider == "github_app" and uses them to set GitHubAccount.user. On January 10, 2025, a Squarelet migration renamed that provider from "github_app" to "github", so the filter never matches anymore. The handler silently skips every GitHub social account, GitHubAccount.user is never populated for new third-party users, and AddOn.user (which reads through github_account.user) returns None.

Migration that broke this:
MuckRock/squarelet@e7ff9eb

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