-
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 2024-11-26] [$250] Unable to Act on Report Due to Deleted Workspace, Stuck with RBR in Focus Mode Without Edit Access #50573
Comments
Triggered auto assignment to @sonialiap ( |
Note Can i be the C+ for this issue @sonialiap , I reported this bug and have prior context |
Edited by proposal-police: This proposal was edited at 2024-10-17 14:42:26 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The RBR still shows for deleted workspace chat and its expense report and thread. What is the root cause of that problem?There are 3 RBRs here. 1 in LHN, App/src/libs/OptionsListUtils.ts Lines 489 to 527 in 8f90bf8
1 in report preview, App/src/components/ReportActionItem/ReportPreview.tsx Lines 162 to 168 in 8f90bf8
and 1 in the expense/transaction preview. App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 147 in 8f90bf8
None of the conditions check for the report archive status. The expense report will stay on the LHN because we always show it if there are errors other than failed receipt. Lines 121 to 135 in 8f90bf8
Why do the workspace chat and expense/transaction thread not show even if they have the RBR? The App/src/hooks/useReportIDs.tsx Line 87 in 5f1ea58
and somehow the selector that was recently added in #49918 returns a wrong array of actions. For the transaction thread, the parent report action here is undefined, App/src/libs/OptionsListUtils.ts Lines 503 to 504 in 5f1ea58
so, App/src/libs/OptionsListUtils.ts Line 506 in 5f1ea58
What changes do you think we should make in order to solve the problem?We need to check for the report archive status when getting all report errors. Lines 6303 to 6318 in 20b7017
|
Note Can i be the C+ for this issue @sonialiap , I reported this bug and have prior context |
Job added to Upwork: https://www.upwork.com/jobs/~021845769561131002585 |
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new. |
@allgandalf added you as C+ 👍 thanks for volunteering :) |
Thanks @sonialiap , appreciated 😄 |
@sonialiap just to confirm, with @bernhardoj proposal above:
@bernhardoj if you want to add something more the ^ ? |
@allgandalf extra noise in the LHN is a bane of my existence so my vote is to remove archived reports from LHN when in #focus mode even if there's a violation since the violation can't be actioned 😂 But let me check with the team if there's any preference on whether to show them until read, immediately archive them when the workspace is closed, or do something else |
@sonialiap any update ? If a discussion is ongoing in #expense can you please tag me there :) |
@allgandalf sorry I forgot to share the results 🙈 thanks for the bump! The conclusion (in #product) was that if it can't be actioned it shouldn't have RBR. Fine to show violation in the actual expense, but not in the LHN |
haha, no worries, thanks for the update. @bernhardoj do you want to update your proposal accordingly ? let me know then i will start the review |
My proposal actually already have that case, but I updated to remove the others. |
@bernhardoj let's not show the RBR for the archived workspace chat. The chat is closed for new comments so there's no way for the user to clear the RBR |
Thanks for the confirmation! PR is ready cc: @allgandalf |
PR approved, waiting for final review from @AndrewGable 🙇 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.63-3 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-11-26. 🎊 For reference, here are some details about the assignees on this issue:
|
@allgandalf @sonialiap @allgandalf The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@allgandalf please complete the checklist so that I can release the payment for you tomorrow 😊 |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Verify the workspace chat doesn't show RBR anymore Do we agree 👍 or 👎 |
Sorry for the delay 😅 , I completed the checklist ! |
Requested in ND. |
Waiting for payment summary. |
Payment summary:
|
@JmillsExpensify good to approve the ND request 💰 |
$250 approved for @bernhardoj |
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: 9.0.47-2
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
Expensify/Expensify Issue URL:
Issue reported by: @allgandalf
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1728540959841099
Action Performed:
Expected Result:
Report in archived status
Actual Result:
See RBR in LHN with the report, but cannot act on it as don't have edit access anymore to that report, but also cannot do anything here, it stays in my LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Recording.642.mp4
Onyx data:
{ "chatReportID": "4695747423350738", "chatType": "", "currency": "INR", "description": "", "errorFields": {}, "hasOutstandingChildRequest": false, "hasOutstandingChildTask": false, "hasParentAccess": true, "isCancelledIOU": false, "isOwnPolicyExpenseChat": false, "isPinned": false, "isWaitingOnBankAccount": false, "lastActionType": "CLOSED", "lastActorAccountID": "16559988", "lastMessageHtml": "closed this report", "lastMessageText": "closed this report", "lastReadSequenceNumber": 0, "lastReadTime": "2024-10-10 06:16:13.007", "lastVisibleActionCreated": "2024-04-08 08:54:26.839", "lastVisibleActionLastModified": "2024-04-08 08:54:26.839", "managerID": 0, "nonReimbursableTotal": 0, "notificationPreference": "hidden", "oldPolicyName": "Whogandalf's Workspace 27", "ownerAccountID": 16559988, "parentReportActionID": "6007246625411673721", "parentReportID": "4695747423350738", "participants": { "16559988": { "hidden": true, "notificationPreference": "hidden" } }, "permissions": [], "policyID": "3DEDDF79F054B00A", "private_isArchived": "2024-07-18 11:24:28.169", "reportID": "4817250283487348", "reportName": "Expense Report #5426340451518743", "stateNum": 2, "statusNum": 2, "total": 0, "type": "expense", "unheldTotal": 0, "welcomeMessage": "", "writeCapability": "all", "isLoadingPrivateNotes": false, "privateNotes": { "16559988": { "note": "" } } }
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: