-
Notifications
You must be signed in to change notification settings - Fork 3k
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-13] [$250] RBR isn't displayed when scanning failed #50799
Comments
Triggered auto assignment to @isabelastisser ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The RBR doesn't display in LHn even though the scanning failed What is the root cause of that problem?App/src/libs/TransactionUtils/index.ts Lines 748 to 752 in 4a3f2da
hasWarningTypeViolation always returns false if canUseDupeDetection is false, but dupe detection is only one reason that causes a warning violation type. When a receipt scanning fails, the BE still returns a warning violation In this case, hasWarningTypeViolation should return true What changes do you think we should make in order to solve the problem?We should only check canUseDupeDetection permission if all warning violations are DUPLICATED_TRANSACTION. If another reason like smartscanFailed causes a warning violation, hasWarningTypeViolation still should return true This is my draft implementation for the above idea, we can improve it later
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.RBR isn't displayed when scanning failed What is the root cause of that problem?We already have the logic to check for missing smart scan fields for thread transaction threads here App/src/libs/OptionsListUtils.ts Lines 504 to 512 in 8ff185a
the only problem being we are trying to access allReportActions without the report actions collection prefix What changes do you think we should make in order to solve the problem?Change it to
What alternative solutions did you explore? (Optional) |
@isabelastisser I discovered this bug while reviewing this PR. Just a note, when implementing PR to fix this issue, we also need to ensure that RBR in scanning failed works well for the debug feature |
I can apply the fix for this in #50468 before it gets merged |
@pac-guerreiro The issue is totally unrelated with the PR, it has nothing to do with |
Job added to Upwork: https://www.upwork.com/jobs/~021846286418177490016 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
I disagree with this @DylanDylann because, firstly, we don't normally show rbr for warning type violations we only allowed that for hold as an exception. Secondly, we handle the missing smart scan fields via App/src/libs/OptionsListUtils.ts Lines 504 to 512 in 8ff185a
The problem is we forgot ONYXKEYS.COLLECTION.REPORT_ACTIONS prefix as I have discussed in my proposal and that is the correct RCA.
|
@FitseTLT Wait wait, why do you think so? Please correct me If I am missing anything |
We are returning false if permission for dupe detection is off App/src/libs/TransactionUtils/index.ts Lines 749 to 750 in 8ff185a
that clearly shows an intent to disable as long as we are on beta for dupe detection so will require separate discussion if we need to allow it. And regarding the current issue, missing scanning fields, there is a clear way to handle it, which checks for missing fields, that is used in all other places so in this case we need to only fix the problem I mentioned to make the already existing code to work. |
@isabelastisser, @getusha Huh... This is 4 days overdue. Who can take care of this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@getusha, please provide an update, thanks! I will DM you for visibility. |
@isabelastisser Could you please check this comment? I reported this bug and have more context here |
@DylanDylann, are you referring to this comment: #50799 (comment)? @getusha, can you please review the discussion above and weigh in? Thanks! |
@isabelastisser Ahh yes 😄 |
Go ahead @DylanDylann |
@Julesssss @isabelastisser @DylanDylann 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! |
@MelvinBot No, we close to the implementation phase |
@Julesssss Friendly bump |
We can. But who would like to implement? |
@DylanDylann I can raise a PR ASAP for this. |
Perfect cc @Julesssss |
📣 @daledah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-13. 🎊 For reference, here are some details about the assignees on this issue:
|
@DylanDylann @isabelastisser 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:
Do we agree 👍 or 👎 |
@isabelastisser It is to remind you the payment setup for this issue it's $100 for me and $150 for @daledah based on #50799 (comment) Thx! |
Payment summary: @daledah requires payment automatic offer (Contributor) $150 Paid! All set! |
@isabelastisser In this issue, we split the compensation to two contributors (@daledah and @FitseTLT). I am C+ on this issue and I should get paid 250$ for this work. Thanks |
@DylanDylann, sorry for the confusion! I've processed your payment in Upwork now. Thanks! |
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.49-0
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: @DylanDylann
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1728897430938149
Action Performed:
Expected Result:
RBR is displayed when scanning failed
Actual Result:
RBR isn't displayed when scanning failed
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
BUG-RBR.mov
Recording.661.mp4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @isabelastisserThe text was updated successfully, but these errors were encountered: