-
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
Web - Expense - Fields are blank and header shows $0.00 request when changing date #33103
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @francoisl ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Fields are blank and when changing money request date What is the root cause of that problem?when chaning the money request date we set
What changes do you think we should make in order to solve the problem?we should set it to |
ProposalPlease re-state the problem that we are trying to solve in this issue.When updating Money Request date, the transaction goes blank. It's easily noted if we update the date offline. What is the root cause of that problem?We are building the Onyx data that contains only updated fields, and use SET operation that fully replaces the transaction: Lines 1016 to 1022 in 052c5cc
What changes do you think we should make in order to solve the problem?We should call What alternative solutions did you explore? (Optional)I see there is a bigger issue with the way we use the First, the Onyx SET operation: However, we only return the SET operation no matter what parameter was passed: Lines 929 to 939 in 052c5cc
This will result in fully replacing the transaction with only the updated fields when the I would say we need to use MERGE if only updated fields were requested: onyxMethod: onlyIncludeChangedFields ? Onyx.METHOD.MERGE : Onyx.METHOD.SET, Second, the way we build the Line 928 in 052c5cc
We plainly use the We pass the transaction changes as created: "original date",
modifiedCreated: "modified date" We never get the updated value here, because using pick will lead to always getting the original date, which is under So we should modify this approach as well, to match the way we build the Having fixed that, we should keep calling If we're OK with using SET operation and just limit the data we send to the BE, the only change we should make is remove this line, and use Line 928 in 052c5cc
|
So this is mostly a visual issue where the money request's fields temporarily show as blank, right? Going to remove the blocker label while we evaluate the proposals, it doesn't break updating the money request. |
@tgolen I think you might want to look at the alternative solution section of my proposal #33103 (comment), since it might become quite a bad bug in the future, and you are probably most in the context of those changes |
Yes overall, I don't know if using An alternative solution that works for me is to simply use the full transaction object in the optimistic data that we Line 934 in bd25112
Curious for Tim's thoughts as well since he indeed probably has the most context on this. |
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. |
Hi, the main proposal to change |
The |
took this to slack here to discuss https://expensify.slack.com/archives/C01GTK53T8Q/p1702656464396679 |
This shouldn't be reproducible anymore after the fix was deployed: #33174 |
This issue has not been updated in over 15 days. @francoisl, @twisterdotcom eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Confirmed this no longer happens, closing. |
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: 1.4.13.0
Reproducible in staging?: Y
Reproducible in production?: N
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:
Date is saved without having other areas of the app going blank
Actual Result:
When date is saved, the other fields go blank, the header turns $0.00 request and the date reverts to today's date briefly
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6313370_1702574868668.bandicam_2023-12-15_00-28-41-162.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: