-
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-01-09] [$500] IOU - Edited amount for a paid request does not revert to initial amount after closing error message #31622
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01674cdc2bbfceb3e4 |
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.The amount is not reverted when the update is failed. What is the root cause of that problem?When we update the amount and get an error, we expect it to revert immediately to the previous value, not actually after pressing the error close button. In the IOU edit code, we already have a Lines 1933 to 1947 in 0cca90a
However, I can see that we always get an error, that is, we can't use Onyx.set after Onyx.merge. This issue happens after #27609 where we change the (3) onyx method from Lines 1944 to 1957 in 0cca90a
The reason behind it is this. In short, when we update a transaction, either its amount, description, or other fields, we add a new field/property to the transaction object called What changes do you think we should make in order to solve the problem?There are 3 onyx keys that the method is changed to Then, we will handle the revert when fails correctly by merging the new property with null. Let's start with Those new properties are:
And in the failure data, we will do it like this:
Next, Lines 1789 to 1822 in 0cca90a
If you see the above code, you can notice that for
Both (taken from
The solution is pretty long, but I think it's what we should do earlier |
@slafortune, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@slafortune, @sobitneupane 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for the proposal @bernhardoj. Can you please help me understand later part of your proposal. After we revert |
Sure. Let's use an example. Let say we have this transaction object:
When we edit a transaction, there are a few new properties added to the transaction object,
and we optimistically merge this new transaction. If fails, we want to revert to the To solve this, we should clear the new properties by setting it as
|
@slafortune, @sobitneupane Huh... This is 4 days overdue. Who can take care of this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@slafortune @sobitneupane this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@slafortune, @sobitneupane 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@sobitneupane can you please update this? |
Will review the proposal by EOD. |
@slafortune, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Issue is ready for payment but no BZ is assigned. @greg-schroeder you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
Whoops! I got it Greg! |
@sobitneupane can you complete the checklist? |
Offer sent @sobitneupane can you please accept that as well as complete the above checklist? |
Shoot - sorry about that @sobitneupane I canceled the offer Once you've complete the checklist, I'll create the regression test if needed and we can close this as you'll be paid via NewDot. |
Sorry for the delay @slafortune. I am running quite busy. I will try to get to it before weekend. |
Thanks for the update @sobitneupane , I'll make sure to come back to this on Monday. |
coming back to this Monday. |
@sobitneupane will you be able to get this off your plate in the next day or two? |
@tylerkaraszewski, @slafortune, @sobitneupane, @bernhardoj 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tylerkaraszewski, @slafortune, @sobitneupane, @bernhardoj Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
I will complete the checklist by EOD. |
https://github.com/Expensify/App/pull/27609/files#r1475723305
Yes.
|
Regression Test Proposal
Do we agree 👍 or 👎 |
|
$500 approved for @sobitneupane based on summary above. |
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.1-7
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 amount in IOU details page should revert to the original amount after closing the error message.
Actual Result:
The amount in IOU details page does not revert to the original amount after closing the error message. It only reverts after refreshing the app.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6285393_1700568035744.20231121_133319.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: