-
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
[On Hold App #38864] [$500] Distance - Distance is saved when editor is dismissed without saving the changes #35173
Comments
Triggered auto assignment to @alexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~016908a5fd4c8a84aa |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
We think that this bug might be related to #wave6-collect-submitters |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance is saved when editor is dismissed without saving the changes What is the root cause of that problem?Currently we save the waypoint to draft transaction on waypoint change so whether or not user clicks save it will update the changes App/src/pages/iou/request/step/IOURequestStepWaypoint.js Lines 138 to 139 in 83a7535
What changes do you think we should make in order to solve the problem?In App/src/components/DistanceRequest/index.js Lines 292 to 293 in 83a7535
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Distance is saved when editor is dismissed without saving the changes What is the root cause of that problem?We call
What changes do you think we should make in order to solve the problem?Call We also need to create a util for setting transaction back to initial value inside We can get the Demo function: function setTransactionToInitial(transactionID: string, transaction: Transaction, isDraft: boolean) {
Onyx.merge(`${isDraft ? ONYXKEYS.COLLECTION.TRANSACTION_DRAFT : ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, {
...transaction,
});
} Steps
Result |
Proposal UpdatedCall |
Proposal UpdatedAdded more details about implementation. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The edited distance is saved when the editor is dismissed without hitting the save button. What is the root cause of that problem?When we change the waypoint, it's saved into What changes do you think we should make in order to solve the problem?We should do the same way as we do when we edit distance of exist transaction by creating a backup transaction and then revert it when the
What alternative solutions did you explore? (Optional)We can reuse And in |
Proposal UpdatedFixed typos |
Hi, @alexpensify, could you please reassign a c+? I need to complete another challenging PR first. ❤️ |
I'm happy to take this as C+ |
Proposal Updated |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thank you @ntdiary for this update! @DylanDylann you have been assigned, and please keep us posted on the best proposal here. |
Ok, looks like the automation got it wrong here. Flagging that @DylanDylann will be acting as the C+ here. |
I think @DylanDylann hasn't applied for C+ yet. |
@DylanDylann is a C+! 🎉 |
I think this is more Wave 5, no @dylanexpensify? considering it's distance requests |
Thanks @dukenv0307 for the update! @DylanDylann can you please review the recent proposal and identify if it will fix this issue? Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Moving this one back to Daily to carry on here. |
This comment was marked as outdated.
This comment was marked as outdated.
@alexpensify Although #34610 is done, it caused a regression. After checking I see that we need to resolve this regression first, then we can process with this one |
Got it, thanks for flagging it. I missed the regression notice. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Weekly Update: On hold for #38864 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Weekly Update: Still on hold for #38864 |
#39144 is merged. This issue is fixed |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks. Based on this feedback, we will close this one. |
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. |
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. |
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.32-2
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:
The edited distance will not be saved since the editor is dismissed without hitting the save button.
Actual Result:
The edited distance is saved when the editor is dismissed without hitting the save button.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6354926_1706202929434.20240125_094207.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: