-
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
[$250] Scan - Receipt scanning shown on LHN after scanning is done #51251
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 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 |
@strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021851023250294310857 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
This is BE bug, it is setting receipt state to |
ProposalPlease re-state the problem that we are trying to solve in this issue.When clicking to navigate to other chat rooms after scanning is finished, the title of scanned report on LHN is changed back to "Receipt scanning..." not "xxx owes x$". What is the root cause of that problem?When onyx data of scanned receipt is given("Action Performed" 5), the onyx data aren't added to data: Array (3)
0 {key: "transactions_8985775263575639680", onyxMethod: "merge", value: Object}
1 {key: "report_5903074309041026", onyxMethod: "merge", value: Object}
2 {key: "reportNameValuePairs_5903074309041026", onyxMethod: "merge", value: {type: "iou"}} When scanning is finished("Action Performed" 5), There is a reason why data from App/src/libs/actions/OnyxUpdates.ts Line 32 in 66195ad
However [info] [Report] Handled multipleEvents event sent by Pusher -
{"updates":[{"data":[{"key":"transactions_8503838541148848104",
"onyxMethod":"merge","value":{"modifiedAmount":300,
"modifiedCreated":"2017-04-07","modifiedCurrency":"KRW",
"modifiedMerchant":"Unknown Merchant",
"receipt":{"receiptID":8716085149354104,"source":"https://www.expensify.com/receipts/w_b747533cfa6161c6f5b025f03b5107b661fcb0c6.png","state":"SCANCOMPLETE"}}},
{"key":"transactionViolations_","onyxMethod":"mergecollection","value":
{"transactionViolations_8503838541148848104":null}}],"eventType":"onyxApiUpdate"}],
"lastUpdateID":2686094501,"previousUpdateID":2686094474}""
By adding requests in For this issue, Submit expense with "Scan" did money request("write" type) once, and then "GetMissingOnyxMessages" done as a 2nd. However "GetMissingOnyxMessages" gives information which update is needed without having data like What changes do you think we should make in order to solve the problem?We should add a condition to add the updates given by Pusher into App/src/libs/actions/OnyxUpdates.ts Lines 69 to 81 in e7532e9
It does function applyPusherOnyxUpdates(updates: OnyxUpdateEvent[]) {
condition ? QueuedOnyxUpdates.queueOnyxUpdates(updates[0].data) : null;
pusherEventsPromise = pusherEventsPromise.then(() => {
console.debug('[OnyxUpdateManager] Applying pusher update');
}); What alternative solutions did you explore? (Optional)We can add a key for updates to pass a condition. With a flag we can easily pass a condition to add the updates into Array
0 Object
data: Array (3)
0 {key: "transactions_8503838541148848104", onyxMethod: "merge", value: Object}
1 {key: "report_5967872421914163", onyxMethod: "merge", value: Object}
2 {key: "reportNameValuePairs_5967872421914163", onyxMethod: "merge", value: {type: "iou"}}
eventType: "onyxApiUpdate" We may add a key like function applyPusherOnyxUpdates(updates: OnyxUpdateEvent[]) {
shouldAddIntoQueueOnyxUpdates ? QueuedOnyxUpdates.queueOnyxUpdates(updates[0].data) : null;
pusherEventsPromise = pusherEventsPromise.then(() => {
console.debug('[OnyxUpdateManager] Applying pusher update');
}); |
@strepanier03, @Ollyws Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Will get to this one tomorrow. |
IOU bug, moving to MEDIUM |
@strepanier03 @Ollyws 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! |
@FitseTLT, where are you seeing this? I'm recieving a pusher event with the state |
The LHN changes to receipt scanning when it's receipt state is changed back to |
There is a Pusher giving the transaction merged. But it isn't added into |
@strepanier03, @Ollyws Eep! 4 days overdue now. Issues have feelings too... |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@strepanier03, @Ollyws 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Will get to this one asap. |
I think this issue should get help from BE guys or needs discussion on slack to solve because I don't know enough cases of http requests for this app. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@strepanier03 @Ollyws this issue is now 4 weeks old, please consider:
Thanks! |
@strepanier03, @Ollyws Eep! 4 days overdue now. Issues have feelings too... |
Still don't think we've got the correct RCA on this one... |
@Ollyws Could you review my proposal? |
Ah apologies missed that @jacobkim9881 Screen.Recording.2024-11-20.at.23.13.03.mov |
Issue not reproducible during KI retests. (First week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Given the above I think we can close this one. |
Issue not reproducible during KI retests. (Second week) |
@strepanier03, @Ollyws Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@strepanier03, @Ollyws 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.52-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The LHN subtitle shows the amount of the scanned receipt
Actual Result:
The LHN subtitle shows "Receipt scanning..." even if the receipt is done scanning
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6642015_1729600729210.bandicam_2024-10-22_15-29-26-242.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OllywsThe text was updated successfully, but these errors were encountered: