-
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
Workspace - Reimburse expenses- Rate equals 0 is displayed after offline changes on Reimbursement page #12012
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @cead22 ( |
Looks like we had a similar issue #10877 in the past |
Okay, it actually seems like the keys are intentional so that is fine, though I'm unsure why there is onyxRates and rates which have the same values. I'm a little confused on how it's being set to null though. This is the order of responses that happens when you go back online after editing the custom units offline. Reconnect app is where the customUnits is set to null But in the next two commands, is where we should have an updated custom unit. It seems like because it's slow to merge a collection METHOD_MERGE_COLLECTION like we do in ReconnectApp, it might be happening after the updates and merges. |
Out of the staging changes that could have impacted this, we might have uncovered some bugs due to the new onyx changes #11945 due to merge being faster, otherwise nothing else is sticking out. I was able to get this to work by removing this line Expensify/Web-Expensify@fc8ad87/lib/AppInit.php#L211-L212 so that the customRate is never set to null, but it's still flipping between values (Fetches the old value first, but then shows the new value after) I'm going to remove the deploy blocker since we this will have to update this with seperate changes, and the user can just see the updated rate by opening the screen again. To sum up the issue, currently, the ReconnectApp API call when you come back online is merging null into CustomUnit here. This leads to the custom unit showing as 0 because METHOD_MERGE_COLLECTION takes longer than merge / set so our UpdateWorkspaceCustomUnitRate API pusher changes happen first, and then get overwritten with null. If you remove the cc @amyevans / @jasperhuangg / @yuwenmemon |
I think your investigation makes sense @thienlnam!
is documented in https://github.com/Expensify/Expensify/issues/229696 so I think we should prioritize finding a fix for that, though it sounds like it's a tricky problem Curious if others agree though too! |
I created https://github.com/Expensify/Web-Expensify/pull/35251 to fix the customUnit: null issue, and it sounds like the flickering issue is addressed in https://github.com/Expensify/Expensify/issues/229696 |
@thienlnam Whoops! This issue is 2 days overdue. Let's get this updated quick! |
customUnit: null PR has been merged, closing this one out and https://github.com/Expensify/Expensify/issues/229696 will take care of the rest |
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:
Expected Result:
Rate and unit values should stay the same as were chosen offline
Actual Result:
Rate value changes to 0.
Platform:
Where is this issue occurring?
Version Number: 1.2.18.2
Reproducible in staging?: Yes
Reproducible in production?: No
Notes/Photos/Videos: Any additional supporting documentation
Bug5784086_video_2022-10-19_16-32-04-1.mp4
Issue reported by: Applause - Internal Team
The text was updated successfully, but these errors were encountered: