-
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
[C+ Checklist Needs Completion] [$500] Money Request - Deleted IOU in offline mode appears when User switch to online #26511
Comments
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
This comment was marked as outdated.
This comment was marked as outdated.
ProposalIssue 1:Please re-state the problem that we are trying to solve in this issue.Problem: When Offline, deleting the last Money Request (without any comments) in IOU Report removes Report Preview from parent Chat Report Actual Result: When offline, Report Preview is removed from parent Chat Report
Issue-1 Video1-mr-offline-removed.mp4What is the root cause of that problem?Deletion of the money request happens in What changes do you think we should make in order to solve the problem?The following changes can be done to solve this problem.
What alternative solutions did you explore? (Optional)Issue 2:Please re-state the problem that we are trying to solve in this issue.Problem: When Offline, Report Preview shows TBD on deletion of last Money Request in IOU Report with comments Issue-2 Video2-mr-tbd-with-msg.mp4What is the root cause of that problem?TBD is shown because What changes do you think we should make in order to solve the problem?To solve the problem, we need to additionally handle the case when there are no transactions in the IOU Report. We can check for the size of the transactions’ list and return false if it is empty. If not empty, we go ahead and iterate through each to find out if it is a distance request. Solution 1:
Solution 2:
What alternative solutions did you explore? (Optional)Issue 3:Please re-state the problem that we are trying to solve in this issue.Problem : When Offline, Report Preview does not update amount when a new Money Request is added Issue-3 Video3-amount-not-updated.mp4What is the root cause of that problem?Here, we update the total amount for Report Preview of IOU Report and Expense Report. While the Expense Report total is updated properly, the IOU Report total is updated using What changes do you think we should make in order to solve the problem?To solve the problem, we need to allow updation of total even when the all the money requests are deleted.
What alternative solutions did you explore? (Optional)Alternatively, we can also remove the following condition and resolve the problem.
Issue 4:Please re-state the problem that we are trying to solve in this issue.Problem : When Offline, IOU Report page shows blank on navigating back from parent Chat Report via click on Reply link Issue-4 Video4-blank-iou-report-1.mp4What is the root cause of that problem?When we click on Now, when we click on What changes do you think we should make in order to solve the problem?When we optimistically create the Report Preview action, we should also set
In addition, we can leverage the existing
What alternative solutions did you explore? (Optional)Alternatively, we can also pass the |
Reviewing |
Job added to Upwork: https://www.upwork.com/jobs/~01bb43036fdffd3721 |
Triggered auto assignment to @sonialiap ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
@rojiphil Can you elaborate more on the root cause? |
@greg-schroeder, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@greg-schroeder, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@rojiphil Could you provide more details about problem 1? How does problem 1 relate to the current bug? Can you show me how we hide the action preview offline when it's deleted?
Can you please explain this further? We have an open PR in Onyx that targets that bug Expensify/react-native-onyx#333 |
@greg-schroeder This issue seems to be a dupe of I think we should hold/close until Onyx PR is merged : |
I noticed you posted the same proposal in the other issue. Anyway, let's reassess this after the Onyx PR is merged.
Please make sure to include the code for the root cause as well. Thank you |
a)
Yes, I posted in the other issue as well as both these issues were related although they do not have the same Root Cause. May be, that adds to the confusion too. b)
Regarding this, I think, the proposal here covers the code aspect as well. Or am I missing something there? Or may be, I should have additionally mentioned that Offline support is currently not there for Report Preview in Chat Report. That is what we are resolving here. c) Here is an attached video of solution in offline mode. When offline, we still need to show the Report Preview Action until it becomes online. This is what I understood by Problem 1. Are we on the same page on this? fixoffline.mp4 |
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. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.24-3 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-01-18. 🎊 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:
|
@greg-schroeder @blimpich @fedirjh Since it’s payment time here, I think this may be the right time to bring up again the above discussion on compensation. Here we have fixed 5 issues in total (4 issues in PR here and 1 issue in follow-up PR here) What are your thoughts on this? |
Hmm. Tricky, because this PR was linked to a deploy blocker, no? So if we did increase the bounty, it would be halved as a result. |
The regression issue is not fixed so yet payment time. |
Seems like they're going to get reward for fixing #34263 as separate issue. |
That issue was considered a separate issue. Also, we have not discussed any reward there yet. Regarding the issue itself, I am not sure if we can consider it as a regression because offline support for money requests was introduced only here. It is sort of a new feature. |
Okay. I mean what is the proposed bounty increase in the first place? Someone suggested we raise it at some point in the past but I don't think we ever got to a number. Can anyone articulate the amount of work that went into this compared to a "typical" issue? |
Lets do $1000 for the whole thing, including #34263, and not apply any penalty to this issue. @rojiphil I really appreciate the attention to detail and professionalism, and I agree this deserves more of a reward than a normal issue 🙂. And in the future we can make sure we increase the bounty before you put up your PR, so that you can know what you're going to get paid before working on an issue. |
Sounds good to me, I'll adjust the offers. |
Paid $1k to both C and C+ |
@fedirjh just need to complete the checklist above and we're good to go! |
Bump @fedirjh :) |
BugZero Checklist:
|
Thanks! Added regression test and closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The request should be deleted and the message should be still grayed out in offline mode.
When user switch to online mode the request should remain deleted
Actual Result:
When user delete the request in offline mode the request should be grayed out, in this case the request disappear
Deleted IOU in offline mode appears when User switch to online
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.61-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Notes/Photos/Videos: Any additional supporting documentation
Bug6185284_Recording__837.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: