Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename SyncUser::identity() to SyncUser::user_id() #7267

Closed
wants to merge 1 commit into from

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jan 18, 2024

I dropped this from #6837 because it was sort of just unnecessary churn, but in the time since I've continued to find it confusing. SyncUser currently has both identity() and identities() which are two completely unrelated things: the first is the unique id for the user generated by the server, and the second is the set of credentials which have been used to log in the user. To fix this, I renamed identity() to user_id() and aligned all of the related functions to that name, making it so that the word "identity" is only used for the SyncUserIdentity concept.

The word "identity" was used for two different concepts in SyncUser:
`identity()` returned the server-assigned unique id for the User, while
`identities()` returned information on the credentials used to log into the
user. This was very confusing, so rename the first one to user_id (and update
all the other places where identity was used for that).
@tgoyne tgoyne self-assigned this Jan 18, 2024
@tgoyne tgoyne closed this Feb 8, 2024
@tgoyne tgoyne deleted the tg/rename-user-identity branch February 8, 2024 16:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant