-
-
Notifications
You must be signed in to change notification settings - Fork 742
Cargo owner username disambiguation #14213
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
Open
moskirathe
wants to merge
32
commits into
rust-lang:main
Choose a base branch
from
moskirathe:cargo-owner-username-disambiguation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6dabebc
disambiguate username
moskirathe f3ea0da
owner add tests
moskirathe 8be3e00
remove owner disambiguation
moskirathe d6a9e22
remove owner tests
moskirathe ce2762c
update all relevant uses of gh_login to username
moskirathe 5928cda
snapshot fix
moskirathe 5870c0c
DRY disambiguate implementation
moskirathe ede90c5
fix formatting, minor updates
moskirathe e5a6ffe
fix formatting
moskirathe d4f4876
disambiguate using oauth_github.login rather than users.gh_login
moskirathe ff2f94a
split out refactoring changes
moskirathe b1a679f
minor updates to split out refactoring from behavioural changes
moskirathe 4d9231b
update comments; parse login before owner check; update parse login f…
moskirathe 584bc46
owner remove error conversion
moskirathe 7b4abe0
index migrations for username and gh login fields
moskirathe 2050824
update error message
moskirathe 3dd13a2
minor updates
moskirathe 6eb1a81
test updates
moskirathe feff924
tests
moskirathe ce90cd2
rebase and resolve merge conflicts
moskirathe b9d8348
minor formatting updates
moskirathe 2afe497
regenerate schema, fix migration to run concurrently
moskirathe eb38559
fix migration
moskirathe 3a924cb
fix migrations
moskirathe a827d1a
remove unecessary oauth_github lookup since its included in left join
moskirathe 5eed9fa
minor comment update
moskirathe 644e9e0
canonicalization fixes and tests, resolve ambigous login first before…
moskirathe b09e6a3
minor update
moskirathe 33d0069
fix lint
moskirathe d42af5a
minor update
moskirathe c1091af
minor update
moskirathe 35131d3
remove unused migration added in a separate pr
moskirathe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
migrations/2026-07-18-120001-0000_add_oauth_github_login_index/down.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| DROP INDEX CONCURRENTLY IF EXISTS index_oauth_github_login; |
1 change: 1 addition & 0 deletions
1
migrations/2026-07-18-120001-0000_add_oauth_github_login_index/metadata.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| run_in_transaction = false |
1 change: 1 addition & 0 deletions
1
migrations/2026-07-18-120001-0000_add_oauth_github_login_index/up.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CREATE INDEX CONCURRENTLY IF NOT EXISTS index_oauth_github_login ON oauth_github (lower(login)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same as
gh_loginbut reading fromoauth_githubinstead of the users table. I considered a change to stop reading fromusers.gh_loginand start reading fromoauth_github.loginthroughout the codebase instead (similar to #14258), but I think that would be a much bigger change that would warrant being tackled in a separate prView changes since the review