-
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
Custom units are broken #10978
Comments
Triggered auto assignment to @mallenexpensify ( |
Current assignee @mallenexpensify is eligible for the AutoAssignerTriage assigner, not assigning anyone new. |
The biggest thing I'm noticing from #10873 is that we're not calling This is definitely what's causing the custom unit rate to be I'm not entirely sure what the decision behind getting rid of the call to |
@francoisl After reading the design doc it looks like not calling I say we revert #10873 for now to avoid blocking the deploy. |
For the refactor we moved syncing customUnits to the new OpenWorkspaceReimburseView command here. I'm curious how reverting that PR fixes this issue, because I've noticed that changing the custom unit was already very wonky the last time I tried it. |
@arosiclair The custom unit was fixed recently, but I just compared staging and prod and found it was broken. I also reverted the changes from your PR locally and it fixed the issue. |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Yeah from my tests, the root of the issue is that on this line, I'm still looking if there's an easy fix for a bit. |
#10873 was also the last place we called Let's revert the PR to unblock the deploy so that we can look into a proper long-term fix. |
@jasperhuangg , if you can confirm that this worked properly on production in the past, can you add details to the RCA sheet so we can track the regression? Thx |
So it looks like However this format is not what the page is expecting. The page is expecting the rates to be set under @jasperhuangg @yuwenmemon did the customUnits format change recently? And which way is the right way? Should the rates be set under |
Ah that was my doing, sorry if this wasn't made clear! We had to move the rates into Notice how in the screenshot This will actually be removed in #10974, so things should just work afterwards? |
Yeah that sounds about right. https://github.com/Expensify/Web-Expensify/pull/34862 should get the rates keyed by ID and then our form should be working correctly again. I'll re-test the withFullPolicy refactor after that stuff gets merged in |
@arosiclair Sounds like a plan, thanks for waiting on this! |
The fix was tested on staging #10974 (comment), closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Screen.Recording.2022-09-13.at.2.01.02.PM.mov
Expected Result:
Updates to the custom unit rate should be persisted.
Actual Result:
Updates to the custom unit rate aren't persisted. The policy.customUnits is
null
.Workaround:
Reverting changes from #10873 fixes things locally
Platform:
Where is this issue occurring?
Version Number: v1.2.0-0
Reproducible in staging?: yes
Reproducible in production?: no
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: