-
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
[$250] Expense report -"Required" Error Not Triggered for Auto-Filled Report Field on Second Expense Submission #47251
Comments
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to @VictoriaExpensify ( |
👋 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:
|
We think that this bug might be related to #vip-vsb |
Agree this is an issue and we should fix it. |
Job added to Upwork: https://www.upwork.com/jobs/~0185bccf1e3226865f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
Report Fields are part of Wave_Control, so I'm adding this issue to that project |
Report Fields are behind a beta, so i'm demoting this one |
Edited by proposal-police: This proposal was edited at 2024-08-13 08:42:12 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The "Required" error message does not trigger for the Report Field on the second submitted expense when auto-filled. What is the root cause of that problem?When we create an expense report, the Line 4285 in 420c2a1
Then because the field has default value is empty, a report violation is added here. Lines 480 to 486 in 420c2a1
After BE returns the data, this field is auto-filled but the report violation isn't cleared then the error still appears What changes do you think we should make in order to solve the problem?When we create an expense report here, we should auto-fill the report field from the last paid expense report of this policy expense chat (we can confirm the logic from BE).
Line 4285 in 420c2a1
Then the violation will not appear here since the value already exists Lines 480 to 486 in 420c2a1
What alternative solutions did you explore? (Optional)If the violation is Line 7471 in 420c2a1
and should not display a red dot here
|
@nkdengineer Your solution makes sense to me. Can you pls share the detail implementation? Thanks |
Ahh ok, sorry I didn't correctly understand. Would it be possible to create them optimistically if we have the data, but don't create them optimistically if we don't? Otherwise, what you suggest makes sense to me. |
Not overdue |
@puneetlath We discussed this above, and then we go with the final solution. |
Ok got it! Sounds good to me. |
To sum it up, we won't create optimistic data for violation when creating the new expense report We can go with @nkdengineer's proposal 🎀👀🎀 C+ reviewed |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @dukenv0307 🎉 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 |
Catching up in this thread, but it looks like we just decided to remove optimistic report field violations. When report fields get updated, there should be a onyx update sent out to update the field list. So the field list should be up to date if you're online. So why can't we just not show the violation when the field is auto-filled? |
From what I understood, if you sign out and sign in, we have no way to know if the field should be auto-filled or what it should be auto-filled with. Instead of adding more data (in this case, it might be quite complex) to the OpenApp response, we thought it would be cleaner to just not show this optimistically if we cannot guarantee we know the outcome always and wait for the server response. Please let us know if there is something we missed, but I think that on fresh sign in, we cannot know what field to autofill or what to autofill it with |
On a fresh sign in, the policies should be fetched right? And the fieldList is part of the policy onyx key so it should also be loaded unless it gets loaded with like a condensed amount of data |
But also, that edge case feels like like it is not as problematic as not showing report violations at all optimistically, do you agree with that? |
When we load all the policies, they are formed here and there is no I am not sure, I think we are comparing a false positive error rarely and then no feedback rarely. That is once we load the policy and report with the reportFields we are good. I prefer the no feedback rather than false positive error |
In that case, we can just return the fieldList there as well. That field isn't as large as tags or categories which is why we merged it as part of the policy key, and that should resolve this problem - does that sound good? |
We can try it, I did not want to add more load on the OpenApp call, but we can evaluate later |
This issue has not been updated in over 15 days. @puneetlath, @mountiny, @VictoriaExpensify, @dukenv0307, @nkdengineer 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! |
@mountiny Is it ready for payment? |
I would still first try to handle the backend change, I will try to look into it this week |
@mountiny friendly bump |
Still on my list |
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: v9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The "Required" error message should not appear if the Report Field in the second expense is auto-filled with information from the first expense.
Actual Result:
The "Required" error message does not trigger for the Report Field on the second submitted expense when auto-filled.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6570023_1723474162914.Screen_Recording_2024-08-12_at_7.20.21_AM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dukenv0307The text was updated successfully, but these errors were encountered: