-
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-05-02] [$250] Track expense - Track expense shortcut doesn't update to the correct one in offline mode #40097
Comments
Triggered auto assignment to @sonialiap ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Shortcut doesn't update to the recent track action if user is offline What is the root cause of that problem?In Line 808 in 91a01a7
What changes do you think we should make in order to solve the problem?In
Line 808 in 91a01a7
Actually when we click on QAB of track expense, nothing happens because we don't have any case for track expense. It's a known issue and we're handling it in another issue.
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Shortcut for track expense doesn't update when we track any expense in offline mode What is the root cause of that problem?We do not set Line 808 in 91a01a7
What changes do you think we should make in order to solve the problem?We need to define let newQuickAction: ValueOf<typeof CONST.QUICK_ACTIONS> = isScanRequest ? CONST.QUICK_ACTIONS.TRACK_SCAN : CONST.QUICK_ACTIONS.TRACK_MANUAL;
if (TransactionUtils.isDistanceRequest(transaction)) {
newQuickAction = CONST.QUICK_ACTIONS.TRACK_DISTANCE;
}
optimisticData.push({
onyxMethod: Onyx.METHOD.SET,
key: ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE,
value: {
action: newQuickAction,
chatReportID: chatReport?.reportID,
isFirstQuickAction: isEmptyObject(quickAction),
},
});
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~01a0bd1968ee14fdd2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
@ikevin127 what do you think of the proposals? |
I'm reviewing the proposals, will get back with a response soon (today)! |
@nkdengineer's proposal LGTM. It was the first proposal to point out the correct RCA and solution. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
opps, I guess my GitHub didn't update at the time of posting my proposal, I saw that no proposal was above me at that time 😆 sorry for the extra work @ikevin127 |
@GandalfGwaihir Your RCA and solution are correct, but the selected proposal was the first to point them out. Additionally, your proposed solution does not bring a significant change compared to the selected proposal as it's simply a slightly different way of writing the code which in essence is doing the same thing.
No worries! 😁 |
Thanks for the review @ikevin127, assigning @nkdengineer 🚀 |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-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-05-02. 🎊 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:
|
No need to start a discussion on this since we already have a checkbox within the PR review checklist related to testing while
Regression Test Proposal
Do we agree 👍 or 👎 |
@ikevin127 $250 paid ✔️ |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.62-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The shortcut should update to track expense (previously was "track distance").
Actual Result:
Shortcut doesn't update to the recent track action if user is offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6445682_1712828866766.bandicam_2024-04-11_12-41-14-620.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: