-
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
Track expense with custom distance rate #47864
Conversation
The backend fix is on staging so you can test now, but we still need to hold to merge until it's on production |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-08-26_09.51.15.mp4Android: mWeb Chromeandroid-chrome-2024-08-26_10.02.52.mp4iOS: Nativeios-app-2024-08-26_10.51.33.mp4iOS: mWeb Safariios-safari-2024-08-26_10.58.20.mp4MacOS: Chrome / Safaridesktop-chrome-2024-08-26_09.40.17.mp4MacOS: Desktopdesktop-app-2024-08-26_09.45.13.mp4 |
@neil-marcellini Tests well, except that weirdly only on Android native I'm getting the error: Request logs[hmmm] [Network] API request error: Connection interruption likely - {"message":"Network request failed","request":{"command":"TrackExpense","data":{"amount":4667,"currency":"USD","comment":"","created":"2024-08-26","merchant":"46.67 miles @ $1 / mile","iouReportID":"2206440119288172","chatReportID":"8453830520816782","transactionID":"701438414021283425","reportActionID":"5500740757517283508","createdChatReportActionID":"-1","createdIOUReportActionID":"-1","reportPreviewReportActionID":"6553915437872518885","receipt":{"source":249,"state":"OPEN"},"receiptState":"OPEN","category":"","tag":"Test","taxCode":"","taxAmount":0,"billable":false,"transactionThreadReportID":"6785219536653772","createdReportActionIDForThread":"3139612341763897727","waypoints":"{"waypoint0":{"keyForList":"111 Prairie Ridge Ct_1724658687274","lat":36.75784549999999,"lng":-95.9080789,"address":"111 Prairie Ridge Ct, Bartlesville, OK, USA","name":"111 Prairie Ridge Ct"},"waypoint1":{"keyForList":"1120 S Utica Ave_1724658691588","lat":36.1470944,"lng":-95.967617,"address":"1120 South Utica Avenue, Tulsa, OK, USA","name":"1120 S Utica Ave"}}","customUnitRateID":"FA34EB87885B8","apiRequestType":"write","pusherSocketID":"766764.4703658","shouldRetry":true,"canCancel":true},"successData":[{"onyxMethod":"merge","key":"report_2206440119288172","value":{"pendingFields":null,"errorFields":null}},{"onyxMethod":"merge","key":"reportActions_2206440119288172","value":{"5500740757517283508":{"pendingAction":null,"errors":null}}},{"onyxMethod":"merge","key":"reportActions_8453830520816782","value":{"6553915437872518885":{"pendingAction":null}}},{"onyxMethod":"merge","key":"report_6785219536653772","value":{"pendingFields":null,"errorFields":null}},{"onyxMethod":"merge","key":"transactions_701438414021283425","value":{"pendingAction":null,"pendingFields":{"waypoints":null},"routes":null}},{"onyxMethod":"merge","key":"reportActions_6785219536653772","value":{"3139612341763897727":{"pendingAction":null,"errors":null}}}],"failureData":[{"onyxMethod":"set","key":"nvp_quickActionGlobalCreate","value":{"action":"trackDistance","chatReportID":"8453830520816782","isFirstQuickAction":false}},{"onyxMethod":"merge","key":"report_2206440119288172","value":{"pendingFields":null,"errorFields":{}}},{"onyxMethod":"merge","key":"reportActions_2206440119288172","value":{"5500740757517283508":{"errors":{"1724658702546000":"Unexpected error submitting this expense. Please try again later."}}}},{"onyxMethod":"merge","key":"report_8453830520816782","value":{"lastReadTime":"2024-08-08 14:14:35.192","lastMessageText":"","lastMessageHtml":""}},{"onyxMethod":"merge","key":"report_6785219536653772","value":{"pendingFields":null,"errorFields":{"createChat":{"1724658702546000":"Unexpected error creating this chat. Please try again later."}}}},{"onyxMethod":"merge","key":"transactions_701438414021283425","value":{"errors":{"1724658702546000":"Unexpected error submitting this expense. Please try again later."},"pendingFields":{"waypoints":null}}},{"onyxMethod":"merge","key":"reportActions_6785219536653772","value":{"3139612341763897727":{"errors":{"1724658702546000":"Unexpected error submitting this expense. Please try again later."}}}},{"onyxMethod":"set","key":"transactionViolations_701438414021283425","value":[]},{"onyxMethod":"set","key":"reportViolations_2206440119288172","value":null}]}} |
That's odd. Would you please try again now that it's on prod? If there's a problem again please send my the test email you're using, or even better the requestID of the failed request. |
@neil-marcellini Still happening, unfortunately! Request ID I think is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue on Android is also happening on main, so I think we're good to merge these changes.
@neil-marcellini Perhaps the fix from here can be re-applied to track expense?
@arosiclair Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Not sure what the deal is with the Cloudflare Pages failure. I think it's probably unrelated so feel free to merge if it looks fine to you @neil-marcellini. |
Ah yeah very interesting. We made a backend fix so that float distances like |
I found these logs which show that the error is coming from a unique constraints violation on the reportActionID. Since you said the problem also occurs on main I agree we can go ahead. Would you please report the issue in Slack @jjcoffee?
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.0.30-0 🚀
|
@neil-marcellini Sure, reported here. |
Details
Fixed Issues
$ #47153
PROPOSAL: N/A
Tests
Precondition:
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
I only tested web since the changes should be platform independent, and C+/QA will test all platforms.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
trackCustom1080.mov
MacOS: Desktop