-
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
[$500] [Workflows] Workspace - Unable to auto update currency to USD for the first time #39444
Comments
Triggered auto assignment to @sakluger ( |
@sakluger FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave-collect - Release 1 |
I agree this is a wave-collect bug. |
Job added to Upwork: https://www.upwork.com/jobs/~01ef1de5890d617574 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
The actual bug here is different, we allow the user to connect bank account even when the So i will write my proposal accordingly ProposalPlease re-state the problem that we are trying to solve in this issue.Add bank account is not disabled even when the What is the root cause of that problem?Whenever we create a policy, the policy is first in a Now when we immediately click When we click on update currency, we essential open the RHP App/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx Lines 411 to 413 in 3ba42e6
Initially when we create a workspace we still don't have the value of What changes do you think we should make in order to solve the problem?We should disable the option to disable the
So we need to update the disabled={isOffline || !isPolicyAdmin || (!!policy?.pendingAction)} What alternative solutions did you explore? (Optional)N/A |
I'm not able to reproduce |
@GandalfGwaihir
Why do you think that the workspace is still in draft in this case? Also even if the CreateWorkspace is not done yet the UpdateWorkspaceGeneralSettings and OpenReimbursementAccountPage requests won't be made until the workspace is created |
When we create a workspace we set it's data optimistically: App/src/libs/actions/Policy.ts Lines 1990 to 2012 in 14ff944
If you see the video below, the create workspace api has still not got an response from the simplescreenrecorder-2024-04-04_19.59.41.mp4It is after we get response for create workspace, that we call |
@nkdengineer Thanks for the proposal. Your RCA is not correct
Write requests are sequential and follow the FIFO principal. The second request will be sent only after the first one is completed. |
@GandalfGwaihir From your video I see that |
@s77rt Thanks for your feedback. |
@nkdengineer Thanks for the update. I still don't think the RCA is correct/complete
Even if the currency is overwritten back to EUR. The bank page shouldn't load (OpenReimbursementAccountPage should not be be executed) until the currency is updated correctly to USD (after UpdateWorkspaceGeneralSettings is completed) |
Still looking for proposals |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@GandalfGwaihir Thanks for the update. Your RCA is still not complete. Before we open the |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What alternative solutions did you explore? (Optional)
|
@nkdengineer Thanks for the update.
That logic is only executed when the client is not in sync (missing onyx updates). We have an early return that occur in the rest of the cases App/src/libs/Middleware/SaveResponseInOnyx.ts Lines 28 to 30 in 1e510b5
Were you able to reproduce the missing onyx updates case? |
Also, there are 2 things please help note:
|
@nkdengineer Thanks for checking that but the root cause is still unclear. Can you elaborate more? I see you got a not found view, perhaps its related. |
Could you identify any unclear sections in my RCA so that I can make updates accordingly? Thank you. |
@nkdengineer The chain effect makes sense but what trigged that chain is not clear i.e. why is the client out-of-sync? (specifically why this happens only in this scenario) |
Here is what I see when creating a new workspace and then toggle workflow feature:
|
@nkdengineer Why in your case you are making a call to Screen.Recording.2024-04-23.at.7.03.31.PM.movScreen.Recording.2024-04-23.at.7.04.04.PM.mov |
Do you always not encounter the call to |
@nkdengineer We need to identify what trigger that in the first place and preferably fix it there. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Looks like the solution is still being discussed. |
Not overdue. Still looking for clear RCA |
Issue not reproducible during KI retests. (First week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Sounds like it's not reproducible, let's close the issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.59.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4468674&group_by=cases:section_id&group_order=asc&group_id=283225
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
I should be able to do it for the first time
Actual Result:
Unable to auto update currency to USD for the first time. "Oops! It appears that your workspace currency is set to a different currency than USD. To proceed, please set it to USD and try again" message appears. I'm able to do it for the second time
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6435801_1712077002501.bandicam_2024-04-02_18-44-37-180.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: