-
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 2024-10-29] [$250] LHN - RBR appears on the wrong workspace chat for an error occurring on another workspace #47874
Comments
Triggered auto assignment to @garrettmknight ( |
We think that this bug might be related to #wave-collect - Release 1 |
@garrettmknight 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 |
@garrettmknight Eep! 4 days overdue now. Issues have feelings too... |
Job added to Upwork: https://www.upwork.com/jobs/~015a69a9ddbd29631a |
Reproduced, opening up. Not sure if this is BE or FE so starting with |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@garrettmknight, @ntdiary Eep! 4 days overdue now. Issues have feelings too... |
Proposal Please re-state the problem that we are trying to solve in this issue. What is the root cause of that problem?
At Step-14, the reportActionID: "5238883410418754601" was marked as deleted in Workspace 77-1: [Complete OpenReport Response]
Simultaneously, the iouReport (ID: "5726784747188717") was shifted to Workspace 77-2 with a new reportActionID: 7661044324410620555. [Complete OpenReport Response] However, the deleted reportActionID: "5238883410418754601" remains linked to Workspace 77-1. Now when Workspace77-1 try process it, it follows the following steps to find the errors App/src/libs/OptionsListUtils.ts Line 744 in 2c04129
App/src/libs/OptionsListUtils.ts Line 492 in 2c04129
Line 7067 in 2c04129
And at following line it has wrongly picked the linkedReportID: "5726784747188717" which is an ID of iouReport and has been shifted in second Workspace 77-2 App/src/libs/ReportActionsUtils.ts Line 921 in 2c04129
Due to this wrong IOUReportID 5726784747188717 of Workspace 77-2 following line return true and causing to show RBR
Line 7068 in 2c04129
What changes do you think we should make in order to solve the problem? Lines 7062 to 7063 in 2c04129
With
What alternative solutions did you explore? Replace App/src/libs/ReportActionsUtils.ts Lines 917 to 922 in 2c04129
With
|
📣 @SIMalik! 📣
|
@SIMalik Your proposal will be dismissed because you did not follow the proposal template. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Under review. can provide an update in about 12 hours. |
@SIMalik, curious how did you start analyzing from the code below? Which component in the OP called this App/src/libs/OptionsListUtils.ts Line 744 in 2c04129
As for the solution, if we decide to modify
unlike when displaying the message list, we didn't filter out the invisible messages when collecting all errors for the report. App/src/libs/OptionsListUtils.ts Lines 467 to 469 in 2c04129
message list logic: App/src/pages/home/report/ReportActionsList.tsx Lines 190 to 200 in 2c04129
Additionally, these two RBRs should also not be displayed when switching to workspace 1 |
@garrettmknight @ntdiary this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
The getAllReportErrors function is called in multiple parts of the app. Specifically, when we click on a scanned expense that has or will have violations, it follows the following path to trigger the function. App/src/hooks/useReportIDs.tsx Lines 98 to 114 in 156b8b0
Line 108 in 156b8b0
App/src/libs/OptionsListUtils.ts Line 492 in 2c04129
scanned_violation2.mp4
Yes, we can modify the function Lines 7075 to 7080 in 156b8b0
to:
47874_RBR_Left_bottom.mp4 |
OK, I think we can move forward with @SIMalik's proposal. To summarize briefly, the cause of this issue is that we didn't filter out the deleted App/src/libs/OptionsListUtils.ts Lines 467 to 469 in 2c04129
So, we can fix this specific scan issue by applying the filter condition in function hasSmartscanError(reportActions: ReportAction[]) {
return reportActions.some((action) => {
if ((!ReportActionsUtils.isSplitBillAction(action) && !ReportActionsUtils.isReportPreviewAction(action)) || ReportActionsUtils.isDeletedAction(action)) {
return false;
}
const IOUReportID = ReportActionsUtils.getIOUReportIDFromReportActionPreview(action); Furthermore, if we don’t want to collect any errors related to deleted 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This issue has not been updated in over 15 days. @garrettmknight, @ntdiary, @neil-marcellini, @SIMalik eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Not overdue, PR is still under testing. :) |
How's this going? When you do you think the PR will be ready? |
@neil-marcellini, @SIMalik is trying to setup the iOS native app, they have already completed the Android-mWeb & MacOS-Chrome screenshots, four other platforms is still missing. Optimistically, the testing could be completed by next week. Or perhaps we could approve and merge the PR this week, as I've already tested it on all platforms. As for the other errors @SIMalik is encountering in their environment setup, I can help him work through them gradually so that they will feel more confident handling other issues in the future. 😄 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.51-4 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-10-29. 🎊 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 hope this message finds you well. Please see the following details regarding the job offer on Upwork, which I have yet to receive. Could you kindly assist with any necessary actions to help move this forward? #47874 (comment) melvin-bot:
#47874 (comment) melvin-bot:
#47874 (comment)
Thank you for your time and support in helping facilitate this process. Please let me know if you need further information from my end. Best regards, |
#47874 (comment) melvin-bot:
|
@SIMalik, don't worry, I will fill the BugZero Checklist tomorrow, and BZ member may send you the offer after the regression period. :) |
This issue should be an edge case that was overlooked during the original feature development. After excluding the deleted messages, this issue should no longer recur, so I don't have strong feelings on regression test. If you have different thoughts, please feel free to let me know. :) |
Payment SummaryBugZero Checklist (@garrettmknight)
|
@SIMalik offer out to you in Upwork https://www.upwork.com/nx/wm/offer/104649625 |
@ntdiary request when you're ready. |
$250 approved for @ntdiary |
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.23-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): nathanmulugetatesting+1097@gmail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
No RBR will be present on the workspace chat 1
Actual Result:
RBR is present on workspace chat 1 even if the scan expense which has an error is on the workspace chat 2. When opening the workspace chat 1 with RBR there is nothing inside the workspace chat.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6579370_1724341239931.bandicam_2024-08-22_18-11-28-203.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: