-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-06-01] [HOLD for payment] [$1000] Workspace - App crashed when delete Workspace on Web #17252
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
Nice 👍 I tested on Web + iOS FYI |
Job added to Upwork: https://www.upwork.com/jobs/~01def46407a583e847 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashed when user deletes workspace on other device What is the root cause of that problem?This line
=> Our App is crashed Beside, when user deletes a workspace, pusher will set policy_ID to null but still preserve policyMemberList_ID (this should be cleared) What changes do you think we should make in order to solve the problem?Solution 1: Add empty string ('') as the third parameter of
Solution 3: We should fix it on BE side to clear policyMemberList_ID when user deletes the WS via pusher. Additionally, we can move these line App/src/pages/workspace/WorkspaceMembersPage.js Lines 342 to 349 in a177ba3
ResultScreen.Recording.2023-04-11.at.14.36.54.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.App is crashed on What is the root cause of that problem?The root cause is from this line. When the Workspace is deleted from the other device, the value of What changes do you think we should make in order to solve the problem?To fix this issue, we can set default value as empty string for if (PolicyUtils.isExpensifyTeam(lodashGet(this.props.policy, 'owner', ''))) { Then FullPageNotFoundView will be enabled if What alternative solutions did you explore? (Optional)We can also add string undefined check in method PolicyUtils.isExpensifyTeam, Str.extractEmailDomain or Str.cutBefore |
Triggered auto assignment to @youssef-lr ( |
@tienifr Thanks for the proposal. The RCA is arguably accurate but I think there is more. |
@eh2077 Thanks for the proposal. Your RCA is also about right but I think there is something else to check. |
@s77rt Thanks for your review, can you elaborate more? You mean we shouldn't show not found page? |
Both proposals above are somehow right but I think this is also related to the backend. Deleting a workspace will set @youssef-lr Would you please check the pusher payload for workspace deletion |
@tienifr ^ |
Thanks @s77rt. I see your mean, yes we should clear the policyMemberList too. But I think we can handle them independently. What is your thought? |
sure thanks for your suggestion @s77rt. I updated my proposal as well 🚀 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
@youssef-lr, @s77rt, @NicMendonca Whoops! This issue is 2 days overdue. Let's get this updated quick! |
The PR is ready for review! #19103 |
Going OOO until June 5th so assigning a buddy to this GH to watch over the issue/ issue payment |
Triggered auto assignment to @kadiealexander ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.17-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 2023-06-01. 🎊 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:
|
The bug was internal (Not clearing |
@kadiealexander The bug was internal so I don't think we have a E/App PR to blame, but if I have to pinpoint the offending PR it would be #16338 (comment: #16338 (comment)). Is this eligible for payments? Asking because technically this is an internal issue and it was fixed internally. |
I think you both qualify for payment for your work on this PR, but I'll let @youssef-lr make the final call as he has more experience with the issue. |
@youssef-lr, @s77rt, @kadiealexander, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@kadiealexander for this specific issue we only need to pay @tienifr for suggesting the backend fix we implemented. |
Thanks @youssef-lr! |
I have paid @tienifr. |
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 is not crashed
Actual Result:
App crashed on second device when Delete WS on web.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.98.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6012947_az_recorder_20230410_185940.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: