Skip to content

Conversation

@jjnesbitt
Copy link
Member

There is a bug in the API, where if a user has a value of null in their social account name field, their user isn't properly displayed in the user search (used mainly in the GUI). This in theory could also exist for the login field, but since the response from github is guaranteed to have that field filled out with the user's github username, it should be impossible.

@jjnesbitt jjnesbitt requested a review from waxlamp December 30, 2025 23:34
"""Serialize a user that's been annotated with a `social_account_data` field."""
username = user.username
name = f'{user.first_name} {user.last_name}'.strip()
name = user.get_full_name()
Copy link
Member Author

@jjnesbitt jjnesbitt Dec 30, 2025

Choose a reason for hiding this comment

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

This function on the User model is exactly the same as what we're doing here.

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