You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-14] [HOLD for payment 2024-08-13] [$250] Workspace - Default currency set in workspace is not displayed in BNP while submit expense in WS chat #46727
👋 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:
Identify the pull request that introduced this issue and revert it.
and it's a known issue if the onyx depends on another onyx as I explained in my proposal on this old issue. In our case, the report is initially undefined for the policy onyx key function.
Weirdly, this only started to happen after #45762, specifically the PopoverMenu file changes. Before the PR, the report is still undefined for the policykey function, but the component isn't rendered until the policy is available.
What changes do you think we should make in order to solve the problem?
Even though it started to happen after #45762, the root cause is in the withOnyx. Because withOnyx is deprecated, we can just migrate IOURequestStartPage to using useOnyx which won't have the withOnyx bug.
changed the title [-][HOLD for payment 2024-08-13] [$250] Workspace - Default currency set in workspace is not displayed in BNP while submit expense in WS chat[/-][+][HOLD for payment 2024-08-14] [HOLD for payment 2024-08-13] [$250] Workspace - Default currency set in workspace is not displayed in BNP while submit expense in WS chat[/+]on Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
I couldn't find the offending PR.
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
The regression step should be good.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Prerequisite:
Go to Workspace settings and set the workspace currency to something different than your local currency
Navigate to the workspace chat
Tap on the + icon in the composer
Select Submit expense
Verify the currency shown is the workspace currency
Activity
melvin-bot commentedon Aug 2, 2024
Triggered auto assignment to @carlosmiceli (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 2, 2024
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Aug 2, 2024
👋 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:
izarutskaya commentedon Aug 2, 2024
We think this issue might be related to the #collect project.
izarutskaya commentedon Aug 2, 2024
Production
Recording.2693.mp4
bernhardoj commentedon Aug 2, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Default workspace currency isn't used when opening submit expense.
What is the root cause of that problem?
When we start a money request, we will initialize the data here, including the currency from the
policy.App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 95 to 100 in fefda46
However,
policyis initially undefined and we only re-init when the reportID is different or when changing the tab.App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 110 to 118 in fefda46
This is because the
policydepends on thereportonyx,App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 184 to 190 in fefda46
and it's a known issue if the onyx depends on another onyx as I explained in my proposal on this old issue. In our case, the
reportis initially undefined for thepolicyonyxkeyfunction.Weirdly, this only started to happen after #45762, specifically the PopoverMenu file changes. Before the PR, the
reportis still undefined for thepolicykeyfunction, but the component isn't rendered until thepolicyis available.What changes do you think we should make in order to solve the problem?
Even though it started to happen after #45762, the root cause is in the
withOnyx. BecausewithOnyxis deprecated, we can just migrate IOURequestStartPage to usinguseOnyxwhich won't have thewithOnyxbug.30 remaining items
[-][HOLD for payment 2024-08-13] [$250] Workspace - Default currency set in workspace is not displayed in BNP while submit expense in WS chat[/-][+][HOLD for payment 2024-08-14] [HOLD for payment 2024-08-13] [$250] Workspace - Default currency set in workspace is not displayed in BNP while submit expense in WS chat[/+]melvin-bot commentedon Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 7, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
bfitzexpensify commentedon Aug 13, 2024
Payment summary:
@mollfpr to be paid $250 for C+ work via manual request
@bernhardoj to be paid $250 for contributor work via manual request
bernhardoj commentedon Aug 13, 2024
Requested in ND.
melvin-bot commentedon Aug 14, 2024
Payment Summary
Upwork Job
BugZero Checklist (@bfitzexpensify)
JmillsExpensify commentedon Aug 14, 2024
$250 approved for @bernhardoj
mollfpr commentedon Aug 14, 2024
I couldn't find the offending PR.
The regression step should be good.
Prerequisite:
Go to Workspace settings and set the workspace currency to something different than your local currency
bfitzexpensify commentedon Aug 15, 2024
Works for me! Proposed in https://github.com/Expensify/Expensify/issues/420653. Closing this out
JmillsExpensify commentedon Aug 20, 2024
$250 approved for @mollfpr