-
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-02-20] [$500] Android - Receipt - App crashes when downloading EReceipt from Expensify Card transaction #34348
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01c571000bd51ff4ec |
Triggered auto assignment to @sophiepintoraetz ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issueApp crashes when downloading EReceipt from Expensify Card transaction. Instructions to reproduce issue on local developmentThis will add an EReceipt Card locally in Onyx.
console.log(Onyx.merge("transactions_transactionID", { // <- make sure to change transactionID
cardID: 1,
merchant: 'Google', // Random merchant
mccGroup: 'Android', // Random group
hasEReceipt: true,
}));
Note: keep the step 4 console log within the code because if removed the EReceipt won't persist due to transaction re-fetching when navigating. What is the root cause of that problem?The crash happens because the source url we're trying to download has the following form: What changes do you think we should make in order to solve the problem?Using a package we already use called Pseudo code:
What alternative solutions did you explore? (Optional)As per #34348 (comment), as an alternative to fixing this issue we should hide the download button for EReceipt attachments by adding an additional check in the line: App/src/components/AttachmentModal.js Line 420 in 045a0d0
for when the attachment is an eReceipt in order to hide the download button on all platforms since:
We can check for eReceipt like so:
VideosiOS: NativeScreen.Recording.2024-01-13.at.03.39.14.movAndroid: NativeScreen.Recording.2024-01-13.at.02.56.48.movMacOS: Chrome / SafariScreen.Recording.2024-01-16.at.18.39.55.movMacOS: DesktopScreen.Recording.2024-01-16.at.18.46.12.mov |
With @fedirjh to review the proposal |
@kbecciv as you have this feature enabled for you, What will happen if you try to download the EReceipt on MacOS: Chrome / Safari ? |
@ikevin127 Thank you for the proposal. The root cause analysis seems correct. However, I am unsure if we have already implemented the download feature for |
@fedirjh Sure, no worries! For reference, this is what is happening on other platforms currently when the user tries to download an EReceipt.
VideosiOS: NativeScreen.Recording.2024-01-18.at.16.21.21.movMacOS: Chrome / SafariScreen.Recording.2024-01-18.at.16.14.30.movMacOS: DesktopScreen.Recording.2024-01-18.at.16.23.49.mov |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bumped @grgia for a response. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
cc @ikevin127 It seems that the download feature for |
@fedirjh For sure, I changed the alternative solution as requested. Updated proposal
|
Triggered auto assignment to @yuwenmemon, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thanks @fedirjh, I assigned @mkhutornyi. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-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 2024-02-20. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hey @fedirjh please complete the checklist above. Thanks! |
Payment summary: @fedirjh automatic offer (Reviewer) $500 |
The payments were processed in Upwork. Waiting for @fedirjh to complete the BZ list. |
BugZero Checklist:
Regression Test Proposal
|
Regression test: |
All set. |
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: v1.4.24-3
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
App does not crash.
Actual Result:
App crashes.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6338794_1704974766409.Screen_Recording_20240111_113849_One_UI_Home.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: