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 2024-11-13] [$250] RBR isn't displayed when scanning failed #50799
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
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
@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
@pac-guerreiro The issue is totally unrelated with the PR, it has nothing to do with Debug (it's just only linked because @DylanDylann found it coincedentally reviewing the pr) I don't see it logical to fix it there and, of course, as we have proposed appropriate fixes here. @DylanDylann WDYT
changed the title [-][$250] RBR isn't displayed when scanning failed[/-][+][HOLD for payment 2024-11-13] [$250] RBR isn't displayed when scanning failed[/+]on Nov 6, 2024
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:
@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]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: It happens long time ago and It is hard to find the exact PR that cause this problem
Regression Test Proposal
Precondition:
Test:
Login with a new account, create a WS and submit a manual expense
Submit a scan expense with a wrong image
After scanning, verify that: RBR is displayed for the transaction thread in LHN
@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
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Oct 15, 2024
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.daledah commentedon Oct 15, 2024
Proposal
Please 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)
FitseTLT commentedon Oct 15, 2024
Proposal
Please 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)
DylanDylann commentedon Oct 15, 2024
@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
pac-guerreiro commentedon Oct 15, 2024
I can apply the fix for this in #50468 before it gets merged
FitseTLT commentedon Oct 15, 2024
@pac-guerreiro The issue is totally unrelated with the PR, it has nothing to do with
Debug(it's just only linked because @DylanDylann found it coincedentally reviewing the pr) I don't see it logical to fix it there and, of course, as we have proposed appropriate fixes here.@DylanDylann WDYT
melvin-bot commentedon Oct 15, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021846286418177490016
[-]RBR isn't displayed when scanning failed[/-][+][$250] RBR isn't displayed when scanning failed[/+]melvin-bot commentedon Oct 15, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)46 remaining items
[-][$250] RBR isn't displayed when scanning failed[/-][+][HOLD for payment 2024-11-13] [$250] RBR isn't displayed when scanning failed[/+]melvin-bot commentedon Nov 6, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 6, 2024
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:
melvin-bot commentedon Nov 6, 2024
@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]
DylanDylann commentedon Nov 6, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Put duplicate detection under a new beta #43864 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: It happens long time ago and It is hard to find the exact PR that cause this problem
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
FitseTLT commentedon Nov 6, 2024
@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!
isabelastisser commentedon Nov 13, 2024
Payment summary:
@daledah requires payment automatic offer (Contributor) $150 Paid!
@FitseTLT paid in Upwork C+. $100.
All set!
DylanDylann commentedon Nov 14, 2024
@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
isabelastisser commentedon Nov 14, 2024
@DylanDylann, sorry for the confusion! I've processed your payment in Upwork now. Thanks!