-
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]: Number of announce room members does not update when remove workspace members due to pendingAction
#39796
Conversation
@rayane-djouah 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] |
Lint and perf-tests checks are failing |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecording.2024-04-12.203347.mp4Android: mWeb ChromeRecording.2024-04-12.195605.mp4iOS: NativeRecording.2024-04-12.194418.mp4iOS: mWeb SafariRecording.2024-04-12.194801.mp4MacOS: Chrome / SafariRecording.2024-04-12.193942.mp4MacOS: DesktopRecording.2024-04-12.194159.mp4 |
Please complete the Screenshots/Videos section. |
sorry, upgraded my system, will put up the changes and the videos by tomorrow, will setup the system today thanks :) |
Finally was able to setup for all platforms (the recent changes in architecture made android fail), will implement these changes in few hours |
@rayane-djouah , PR ready for your review, can you tick the checklist please ;) thanks |
Please complete Screenshots/Videos section for all platforms. Thanks! |
Added all video @rayane-djouah , also please check comments |
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
Co-authored-by: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com>
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.
Not a blocker: optional chaining is not needed here as activeChatMembers
can be empty but not null
or undefined
Co-authored-by: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com>
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.
Please resolve merge conflicts correctly
ahh, I fixed them locally but somehow it failed to get pushed, lol, my bad |
✋ 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/jasperhuangg in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
const pendingMember = report?.pendingChatMembers?.findLast((member) => member.accountID === accountID.toString()); | ||
return !pendingMember || pendingMember.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? accountID : []; | ||
}); |
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.
We do not filter out the accountID
that is not available in the personalDetails
object. This resulted in #46670
Details
There was a mismatch in the number of participant count shown on report details page, this was because we used to count members in the pending state as well
Fixed Issues
$ #39446
PROPOSAL: #39446 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Note
The expected result is that the number of participants when we click on participants and the count on the previous screen should match
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
MacOS: Chrome / Safari
Screen.Recording.2024-04-11.at.5.27.05.AM.mov
MacOS: Desktop
Screen.Recording.2024-04-11.at.5.43.39.AM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-11.at.05.48.37.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-11.at.23.09.50.mp4
Android: Native
Screen_recording_20240411_221001.webm
Android: mWeb Chrome
Screen_recording_20240411_221001.webm