-
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
[$500] Room - Can invite valid phone account multiple times into the room #30190
Comments
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~01da7f12cf9ed3d23f |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
I think number provided number( |
@alitoshmatov you can try with a new chat. the backend return invalid |
I think issue should fixed in backend. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Room allows multiple invitation for phone number which is already a member. What is the root cause of that problem?The problem is not invalid phone numbers can be invited multiple times (as commented in the title of the issue). It correctly validates when you input wrong number but for valid phone numbers it let's you invite it multiple times without validating and informing the user that the phone number is already a member of the room as it correctly does for emails. App/src/libs/OptionsListUtils.js Lines 1237 to 1238 in 844b3b9
Because it is comparing existing login list of members of the room ( optionsToExclude ) with the phone number input (searchInput) of the user passed to the addSMSDomainIfPhoneNumber function which concatinates '@expensify.sms' to the searchInput . But as I observed the login value for the phone number only holds the phone number without '@expensify.sms' concatination. Hence, existing phone numbers will never be filtered out as the comparison will always be false.
What changes do you think we should make in order to solve the problem?Change App/src/libs/OptionsListUtils.js Lines 1237 to 1238 in 844b3b9
to
Result: 10.New.Expensify.mp4What alternative solutions did you explore? (Optional)May be if this code is also necessary to support for previous login info (if there was time where we used to save phone number concatinated with '@expensify.sms' ) we could add an or condition to support for both situations like
|
Updated comment And I think this bug is worthy of fixing. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
Additionally, I found out there is a related bug that needs to be fixed (encounters in WorkspaceInvitePage as well):
What alternative solutions did you explore? (Optional)
ResultScreencast.from.27-10-2023.02.46.47.webm |
@greg-schroeder, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
awaiting proposal review from @rushatgabhane |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bump @rushatgabhane |
C+ reviewed 🎀 👀 🎀 I like @DylanDylann's propsoal #30190 (comment) |
Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@greg-schroeder I am working on it, I need to double-check because the latest main has a lot of changes |
Okay got it, thanks! |
The new PR is ready to review |
New PR was merged, awaiting deploy to staging -> prod |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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 2024-02-07. 🎊 For reference, here are some details about the assignees on this 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:
|
Seems like the PR for this was reverted again 😬 #35335 so no payment due yet |
RIP |
Are we even going to move forward here at all? It seems this might not actually go forward with another PR based on what @mountiny is saying in the linked PRs |
@rushatgabhane @mountiny I cannot reproduce this issue in staging anymore. Can anyone help confirm? |
Added |
I also couldn't repro, I think I'm going to close this given two failures to reproduce and also #30190 (comment). Reopen if you disagree |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.89.6
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
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698051749271339
Action Performed:
Expected Result:
The app should show an error when inviting an invalid phone number
Actual Result:
The system does not show errors and may invite invalid phone numbers multiple times
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Screen.Recording.2023-10-23.at.19.42.26.mov
Android: mWeb Chrome
Screen.Recording.2023-10-23.at.19.42.26.mov
iOS: Native
Screen.Recording.2023-10-23.at.19.42.26.1.mov
iOS: mWeb Safari
Screen.Recording.2023-10-23.at.19.43.59.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-23.at.16.06.33.mov
Recording.5119.mp4
MacOS: Desktop
Screen.Recording.2023-10-23.at.19.36.43.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: