-
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 2023-12-15] IOU - Infinite loading when click on E-Receipt of distance request created offline #32501
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @iwiznia ( |
@lanitochka17 if you can, always include a screenshot of the JS console for issues reproducible in web. |
I think this is the offending PR Remove receipt from carousel, and we should revert it since it breaks distance eReceipts, both on and offline. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU - Infinite loading when click on E-Receipt of distance request created offline What is the root cause of that problem?This is a regression from other PR as mentioned in the above comment. If we're going to keep the PR up and going, here's my explanation for the issue. This only happens when we turn on Staging server, which typically happens only on staging or dev environments, so this shouldn't effect the real application at all. But the the real issue lies in this block of code, App/src/components/ReportActionItem/ReportActionItemImage.js Lines 52 to 53 in d521dd6
staging to the route.
But since we're in offline mode, we're loading image (thumbnail) from local source which is served under So here's the main issue, adding This only have observed here, but it's potential issue which can anytime cause the issue. What changes do you think we should make in order to solve the problem?We already have the logic to handle the local file rendering for mobile apps, but not for desktop devices. We need to update function tryResolveUrlFromApiRoot(url: string, isLocalFile?: boolean): string;
function tryResolveUrlFromApiRoot(url: number, isLocalFile?: boolean): number;
function tryResolveUrlFromApiRoot(url: string | number, isLocalFile?: boolean): string | number {
// in native, when we import an image asset, it will have a number representation which can be used in `source` of Image
// in this case we can skip the url resolving
if (typeof url === 'number' || isLocalFile) {
return url;
}
const apiRoot = ApiUtils.getApiRoot({ shouldUseSecure: false } as Request);
return url.replace(ORIGIN_PATTERN, apiRoot);
} What alternative solutions did you explore? (Optional)NA |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.9-5 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 2023-12-15. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
|
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
@neil-marcellini Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
We just reverted a PR here, so the resolution is being handled in the original issue |
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: 1.4.8-0
Reproducible in staging?: Y
Reproducible in production?: N
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: Applause - Internal Team
Slack conversation:
Issue found when executing PR #32424
Action Performed:
Expected Result:
The EReceipt is displayed
Actual Result:
The EReceipt is not displayed. There is Infinite loading when click on EReceipt
The receipt shows attachment thumbnail on Android and iOS
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6302109_1701797499956.Recording__1474.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: