You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-30] [HOLD for payment 2023-10-27] [$500] Workspace - Crash when deleting a workspace #30078
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Please re-state the problem that we are trying to solve in this issue.
App crashes after deleting a workspace if we open it from the report details page.
What is the root cause of that problem?
When we successfully delete a workspace, the BE response will return an onyx data to set the deleted policy to null. Because the policy data is null, we got an error when trying to access its id property here (which is being used in the report details page).
looks like Onyx initially sent the null policy to the subscriber, but after we refresh, the null policy is removed from the collection
This issue happens after #27966 where isPolicyMember is first introduced.
What changes do you think we should make in order to solve the problem?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Link to discussion: N/A I think this could be caught during PR review. The PR appears quite extensive, making it easier for such bugs to go unnoticed in the review process.
Determine if we should create a regression test for this bug: I don't think we should require a regression test for this case, but in case we need one :
Regression Test Proposal
Open the workspace #admins or #announce chat of any workspace
Press the chat header to open the details
Press the workspace name below the chat name. You will be navigated to the workspace page.
Delete the workspace. You will be navigated back to the chat details.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
kbecciv commentedon Oct 20, 2023
Proposal by: @bernhardoj
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697777999060829
Proposal
Please re-state the problem that we are trying to solve in this issue.
App crashes after deleting a workspace if we open it from the report details page.
What is the root cause of that problem?
When we successfully delete a workspace, the BE response will return an onyx data to set the deleted policy to null. Because the policy data is null, we got an error when trying to access its
idproperty here (which is being used in the report details page).App/src/libs/PolicyUtils.js
Line 164 in 732d48e
looks like Onyx initially sent the null policy to the subscriber, but after we refresh, the null policy is removed from the collection
This issue happens after #27966 where
isPolicyMemberis first introduced.What changes do you think we should make in order to solve the problem?
We need to safely access the
idusinglodashGetOSBotify commentedon Oct 20, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Oct 20, 2023
Triggered auto assignment to @dangrous (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.dangrous commentedon Oct 20, 2023
Lovely! I'll make this external and assign you @bernhardoj
[-]Workspace - Crash when deleting a workspace[/-][+][$500] Workspace - Crash when deleting a workspace[/+]melvin-bot commentedon Oct 20, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01da3b9ed2ccdd9252
28 remaining items
melvin-bot commentedon Oct 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dangrous commentedon Oct 23, 2023
added you @zanyrenney to handle payment when it's needed! (10/30)
zanyrenney commentedon Oct 26, 2023
sounds good ! I have ensured alll the contributors are already hired on the issue.
fedirjh commentedon Oct 26, 2023
BugZero Checklist:
Regression Test Proposal
dangrous commentedon Oct 26, 2023
I like the test, I think it's worth adding the regression test since this would probably be somewhat common (and that way it would get caught sooner).
zanyrenney commentedon Oct 30, 2023
From Oct 20 so urgency bonus was still "live"
zanyrenney commentedon Oct 30, 2023
Payment summary
@fedirjh requires payment offer (Reviewer) - paid $500 + $250 urgency
@bernhardoj requires payment offer (Contributor) paid $500 + $250 urgency
@bernhardoj requires payment offer (Contributor) paid $50 reporting
regression test requested, all other actions complete.