-
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
[PAID] Implement and use ReportUtils.transactionThreadHasViolations(report) #31095
Comments
@lindboe @cdanwards can you please comment here so I can assign you? |
Commenting for assignment |
@cdanwards Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Beginning work on this now. |
@cdanwards Huh... This is 4 days overdue. Who can take care of this? |
@cdanwards Still overdue 6 days?! Let's take care of this! |
@cdanwards 10 days overdue. I'm getting more depressed than Marvin. |
Still working on this. Getting some clarification after |
Alright there was a little trouble with converting things over to TS and solving that weird tests bug but got everything working and polishing it up for the PR! |
Awesome! @cdanwards can you add another condition to transactionThreadHasViolations to return false if the report is on a state that isn't open or processing? We only wanna show RBR on the left hand nav to the report submitter, and only if the report is open or processing |
@cead22 Definitely! I'll add that in. |
Work in progress |
Still a work in progress |
@trevor-coleman can you comment here so I can assign you please? |
PR was merged and is on staging. We found a bug that we're fixing now |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.28-0 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-01-28. 🎊 For reference, here are some details about the assignees on this issue:
|
Triggered auto assignment to @strepanier03 ( |
@strepanier03 can you please handle payment to @situchan for the PR review, and please make it double the standard amount we pay for these. This was was a pretty complex review and this is something I offered @situchan last month to put the review at the top of the priority list. Thanks |
Will do @cead22! |
@situchan - An offer has been sent. I'll check later today to finish paying out and closing up. |
Paid and contract closed. Thanks everyone! |
ReportUtils.reportHasViolations
ReportUtils.transactionThreadHasViolations
SidebarUtils.ts
Let's update thisresult.brickRoadIndicator = Object.keys(result.allReportErrors ?? {}).length !== 0 ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : '';
result.brickRoadIndicator = Object.keys(result.allReportErrors ?? {}).length !== 0 || ReportUtils.transactionThreadHasViolations(report) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : '';
ReportUtils.reportHasViolations
src/components/ReportActionItem/ReportPreview.js
let's update the code so the hasErrors value takes into account the report violationsconst hasErrors = (hasReceipts && ReportUtils.hasMissingSmartscanFields(props.iouReportID)) || ReportUtils.reportHasViolations(props.iouReportID);
The text was updated successfully, but these errors were encountered: