-
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
[HOLD for payment 2023-05-25] [$1000] Remove button remains enabled when removing a user in other device #17166
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.In this issue, when two devices are on the Workspace members page and one or more than one members are selected and some/all members are removed from the workspace using another device, the state does not update for the selected members. This issue is prominently displayed in the frontend when all the selected users are removed from the workspace in another device, causing the remove button to stay enabled even when the members are not displayed / selected in the list. What is the root cause of that problem?In order to show the checkmark against the checkbox in the
The data displayed on this page is via the prop When we click on it and remove the user again, the API request is sent to the backend with that user's email. It doesn't really matter though at this point and thus, no error / bug is encountered. What changes do you think we should make in order to solve the problem?We need to update the state as well if the
This set of conditions will ensure success in all the following test cases (with no error):
The above mentioned logic flow works for all the mentioned cases. It integrates well with the enable / disable logic for the Remove and Select All buttons. PS: Step 2 and Step 3 can be combined to be slightly better at the cost of code readability but that is a matter for PR review, which we can take a look at later. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Remove button remains enabled when removing a user in other device. What is the root cause of that problem?The root cause is that we're using / mutating the animated opacity value directly in our What changes do you think we should make in order to solve the problem?As outlined in the RN docs, we should store the
We should then use Just as FYI, the above solution is for class components only. For functional components, we need to store the animated value inside a What alternative solutions did you explore? (Optional)None |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Job added to Upwork: https://www.upwork.com/jobs/~01433d40f907f1e928 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@Prince-Mendiratta Thanks for the proposal. Your RCA is correct. The general idea of the suggested solution is okay but it's not well executed (looks a bit over-engineered). Feedback: |
@allroundexperts Thanks for the proposal. I don't think the RCA is correct. You may be talking about a different problem. |
@dukenv0307 Thanks for the proposal. Your RCA is correct. The suggested fix looks good. 🎀 👀 🎀 C+ reviewed |
📣 @dukenv0307 You have been assigned to this job by @danieldoglas! |
Agreed with the solution. @dukenv0307 assigned. |
@danieldoglas @s77rt The PR is ready to review |
🎯 ⚡️ Woah @s77rt / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
@MelvinBot You learned new words. That's awesome!
Well, technically you are correct but I think you meant to say 3 working days as that's the rule
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.15-12 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-05-25. 🎊 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:
|
|
Offers sent to @dukenv0307, @s77rt, and @dhanashree-sawant pending payment date tomorrow, 5/25 |
Looks like we're good to go. Payments sent, no regression test suggested. Closing as completed. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should disable remove button on both the platforms after removing the user
Actual Result:
App keeps the button enabled on both the platforms even after removing the user
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.97-0
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
remove.btn.error.mobile.chrome.mp4
remove.btn.error.web.chrome.mp4
az_recorder_20230407_183613.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680692363191519
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: