Skip to content

Conversation

@ChrisPenner
Copy link
Member

Overview

In some cases, like granting a user permission to a new repo, it's safest to use a user's UserId rather than their handle, since the user Id is immutable.

To enable this, we provide the UserID in search results alongside the handle, name, and avatar.

Implementation notes

  • Adds the userId field to the User search result JSON
  • Updates transcripts, and ports the code-browse transcripts to the new format.

Test coverage

See transcripts

Comment on lines +7 to +8
"tag": "User",
"userId": "U-<UUID>"
Copy link
Member Author

Choose a reason for hiding this comment

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

Here's an example response, except the transcript runner filters out UUIDs since they're random, but you get the idea :)

@ChrisPenner ChrisPenner requested a review from hojberg February 19, 2025 23:19
@ChrisPenner ChrisPenner merged commit 2093ee0 into main Feb 19, 2025
@ChrisPenner ChrisPenner deleted the cp/search-user-id branch February 19, 2025 23:32
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