-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-07-17] [$1000] Capitalization in email search causing duplicate email in member invite preview #21599
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Capitalization in email search causing duplicate email in member invite preview. What is the root cause of that problem?The root cause of this issue is that when the search value is a legal email to invite
So, we're able to search and select multiple emails, like, What changes do you think we should make in order to solve the problem?According to the RCA above and the fact that email is case insensitive, I think we can fix this issue from the snippet to construct To achieve it, we can add a variable const userLoginToInvite = searchValue.toLowerCase(); after this line App/src/libs/OptionsListUtils.js Line 778 in 820fa93
and replace all usages of App/src/libs/OptionsListUtils.js Line 791 in 820fa93
to avoid searching and selecting duplicates. While replacing all usages within the snippet will be helpful to avoid confusion from UX. For example, if we start searching Click to see demo videoScreen.Recording.2023-06-25.at.7.41.12.PM.movWhat alternative solutions did you explore? (Optional)As discussed, we can change App/src/libs/OptionsListUtils.js Line 619 in 820fa93
|
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~017ccc4dfa896d2e90 |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
@eh2077 Thanks for your proposal. How about converting |
@sobitneupane Thanks for reviewing proposal!
That's a great point. I think we can convert App/src/libs/OptionsListUtils.js Line 731 in 820fa93
App/src/libs/OptionsListUtils.js Line 752 in 820fa93
App/src/libs/OptionsListUtils.js Line 760 in 820fa93
App/src/libs/OptionsListUtils.js Line 820 in 820fa93
In method isSearchStringMatch, we also do case insensitive matching.
I think I overlooked these lines App/src/libs/OptionsListUtils.js Lines 820 to 825 in 820fa93
I thought that case matters when ordering at the first glance of the condition and the comments. But, actually, it'll be safe to convert searchInputValue to lower case at the beginning of getOptions() function.
|
ProposalUpdated to convert |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @sobitneupane 🎉 An offer has been automatically sent to your Upwork account 🎉 Reviewer - [$1000] Capitalization in email search causing duplicate email in member invite preview |
📣 @eh2077 You have been assigned to this job! |
📣 @tewodrosGirmaA You have been assigned to this job! |
There's a deploy blocker #22123 blocks the testing of this PR. I'm going to revert that issue PR or apply the on-going fix to continue test PR for this issue. |
This is awaiting payment after regression period ends, right? It's no longer in review? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-07-17. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hi @sobitneupane please complete the steps above so I can pay this out on time! |
Friendly bump @kevinksullivan This is ready for payment |
I could not locate the exact PR. This could have been created by the change in backend as well.
https://expensify.slack.com/archives/C049HHMV9SM/p1690209472452549
Yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@eh2077 @sobitneupane @tewodrosGirmaA offers sent. Can you let me know here when you've accepted? |
@kevinksullivan Accepted offer, thanks! |
Payment Requested on newDot. |
Ah sorry @sobitneupane . I'll withdraw the offer on upwork. |
Bump @kevinksullivan |
@kevinksullivan Can you please summarize the appropriate individual payments for all parties involved in this issue? This is holding up @sobitneupane's NewDot payments. More information on this compliance process in Slack. |
Payout summary:
|
Reviewed details for @sobitneupane. This is accurate based on summary from Business Reviewer and approved for payment in NewDot. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
When searching for an email, capitalization should not affect the search results, and duplicate emails should not appear in the member invite preview.
Actual Result:
When searching for an email by capitalizing the first letter and marking it, and then searching for the same email with all lowercase letters, the email appears as a duplicate in the member invite preview. Only the email with all lowercase letters is invited, causing confusion for users
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.32-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
screen-capture (37).webm
Recording.5165.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687338486243019
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: