-
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 2024-06-13] [$250] mWeb - Members - When last member leaves the group, user is not prompted with a warning message #42204
Comments
Triggered auto assignment to @greg-schroeder ( |
@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.When the final member leaves from the group, the user won't receive a warning message To see this bug clearly, we can do these steps:
What is the root cause of that problem?The issue arises because when removing the member, we only add the "pending" field and remain
What changes do you think we should make in order to solve the problem?We must ensure that we don't include members with pending deletion actions when verifying if they are the last member
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Actually we have a ticket where we need to refactor Details page and move leave button to menu items So I think it's better to fix this issue it there since this button will be moved to And to fix this issue ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - Members - When last member leaves the group, user is not prompted with a warning message What is the root cause of that problem?The main problem with issue is that when we remove member it remains in
What changes do you think we should make in order to solve the problem?To fix this issue we can use App/src/pages/ReportDetailsPage.tsx Lines 100 to 103 in 7c630c8
instead
What alternative solutions did you explore? (Optional)NA |
Checking if we should handle here before applying External |
Looks like they want to solve this separately, so let's keep it here. Going to add |
Job added to Upwork: https://www.upwork.com/jobs/~0108d139f0fc936c57 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When last member leaves the group, user is not prompted with a warning message What is the root cause of that problem?
It's because in here, we're getting the list of all participants account ids including the members that are already (pending) deleted. What changes do you think we should make in order to solve the problem?
If
In here, use a. In here, also pass After this fix, we'll face the issue where in offline mode, we delete the user, then add the same user, then go online, although the user was successfully added, they will not show up in the members list. That's because the logic to reset the b. Let's say the To fix this we need to remove the pending delete of the same user in What alternative solutions did you explore? (Optional)In A potential refactoring to consider: |
Overall all proposals have similar ideas on fixing this, but I found @tienifr's proposal comprehensive. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav, @dangrous, @greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@dangrous quick bump |
Thanks @mananjadhav you were 3 minutes ahead of me! |
Thanks for your patience! I'm still on my 40% schedule so a bit slow. I agree with @mananjadhav's assessment, assigning to @tienifr! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@mananjadhav PR #42512 can be reviewed |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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-06-13. 🎊 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:
|
I couldn't pinpoint to the exact PR for this one, but I feel we should add a regression test for this one. The test steps from the PR looks fine to me.
|
Processing |
Payment summary: Contributor: @tienifr - $250 - Paid via Upwork |
Regression test filed, closing |
$250 approved for @mananjadhav |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.74
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4566310
Issue reported by: Applause - Internal Team
Action Performed:
Go to https://staging.new.expensify.com/home
Tap start chat
Select a user and create group
Send few messages
Tap header -- member
Select one member listed and remove the member
Tap back
Tap Leave group
Expected Result:
When last member leaves the group, user must be prompted with a warning message
Actual Result:
When last member leaves the group, user is not prompted with a warning message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6481922_1715795982090.group.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: