-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix/30190: Duplicate phone number can be invited to room #31010
Fix/30190: Duplicate phone number can be invited to room #31010
Conversation
src/pages/RoomInvitePage.js
Outdated
const excludedUsers = useMemo( | ||
() => _.map([...lodashGet(props.report, 'participants', []), ...CONST.EXPENSIFY_EMAILS], (participant) => OptionsListUtils.addSMSDomainIfPhoneNumber(participant)), | ||
[props.report], | ||
); |
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.
There is a minor change in my original proposal
- In the original, I will "add the @expensify.sms with the phone number when calling API "InviteToRoom".
- But when implementing the PR, I found that if we do like above, the unexpected personalProfile account will be returned by BE. So I will keep the current logic when calling API "InviteToRoom", and just add the "@expensify.sms" to the excludeUser
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@rushatgabhane Please help review this PR |
@rushatgabhane Please help review this PR again in case you miss it |
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.
@DylanDylann
The bug is still reproducible.
- Invite a number from same country
- Invite them again
Screen.Recording.2023-11-17.at.12.29.23.mov
@rushatgabhane This issue appears when we invite user to room (Based on issue `s title and reproduce steps), not a workspace. So I think we need to confirm that, in this PR, whether we should fix case invite user to workspace or not |
yea I think we should fix it everywhere |
@rushatgabhane Updated. Please help check |
@rushatgabhane Please help review this once you have a chance |
@rushatgabhane In case you miss it |
@rushatgabhane Please help review this PR again |
@rushatgabhane In case you miss it |
sorry this one slipped |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeMacOS: Chrome / SafariScreen.Recording.2023-12-15.at.18.28.43.mov |
Sorry but seems the last commit here was about a month ago, right? IF so, @DylanDylann can you please merge main & retest? |
@Beamanator im testing by merging with latest main |
@rushatgabhane aah you're testing locally with latest main? That shoulddddd be fine |
yepp we can merge if this looks good to you |
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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.4.14-0 🚀
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.4.14-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.14-6 🚀
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.4.17-0 🚀
|
@DylanDylann @Beamanator This was reverted as the additional phone check on the Search page has been causing the app to hang/ crash for Account Manager users who have thousands of people with sms number in their contacts With the next attempt, lets make an Adhoc build and ask internal users like @conorpendergrast or @muttmuure to test the build search page performance |
ooo i wonder if we should add performance test for Search page. |
We are working on that with Callstack and reassure tool in performance room |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.17-8 🚀
|
@rushatgabhane @mountiny I just created the new PR here |
Details
Fixed Issues
$ #30190
PROPOSAL: #30190 (comment)
Tests
${login} is already a member of ${name}
is displayedOffline tests
QA Steps
${login} is already a member of ${name}
is displayedPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screencast.from.08-11-2023.11.38.17.webm
Android: mWeb Chrome
Screencast.from.08-11-2023.10.35.17.webm
iOS: Native
Screencast.from.08-11-2023.09.38.35.webm
iOS: mWeb Safari
Screencast.from.08-11-2023.10.15.46.webm
MacOS: Chrome / Safari
Screencast.from.07-11-2023.23.56.47.webm
MacOS: Desktop
Screencast.from.08-11-2023.09.12.48.webm