-
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
I'm trying to invite https://crates.io/users/matherunner to my crate https://crates.io/crates/hltas. I tried adding Matherunner
, matherunner
as well as his email address, multiple times, always getting "An invite has been sent to matherunner". However, he never got any emails and his owner invites are empty.
Implementation instructions
- Start from this branch that has a test that fails because the username of the invited owner is specified in a different case than it is in the database.
- Get the test to pass by changing this
filter
to be case insensitive using thecrate::lower
function like this code does (I'm not sure why that code chooses to lowercase the provided name in Rust and then use the SQLcrate::lower
function on thegh_login
... I think both should be done with SQL in this case?) We have an index onlower(gh_login)
so this query will be fast.
Metadata
Metadata
Assignees
Labels
A-backend ⚙️C-bug 🐞Category: unintended, undesired behaviorCategory: unintended, undesired behaviorE-has-mentorE-help-wanted