-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Labels
A-backend ⚙️C-bug 🐞Category: unintended, undesired behaviorCategory: unintended, undesired behaviorE-has-mentorE-help-wanted
Description
See rust-lang/cargo#4019 (comment).
GitHub treats organizations case insensitively; you can visit either github.com/ParityTech or github.com/paritytech and these are the same organization. This is probably the same for teams as well, but we should check this.
We're not currently treating teams.login in a case-insensitive fashion. We should:
- run a migration to LOWER all teams.login values
- change the uniqueness constraint on teams.login to be unique on LOWER
- always look up teams in the database using the user's input lowercased
- when comparing the team name to team slugs in github API responses, always lower the team slug from github
- add some tests that ensure adding teams to crates using different casing works
Aaron1011
Metadata
Metadata
Assignees
Labels
A-backend ⚙️C-bug 🐞Category: unintended, undesired behaviorCategory: unintended, undesired behaviorE-has-mentorE-help-wanted