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
[$250] Invoice - Category field does not show up on confirmation page after relogin #47922
Go to FAB > Send invoice > Proceed to confirmation page
Click Show more
Note that Category field is present
Click Send from and select the second workspace
Click Show more and note that Category field is absent
Go to workspace settings of the second workspace in Step 8 > Categories
Repeat Step 4 to 5 with the second workspace in Step 8
Note that Category field is present after visiting Categories settings page
Expected Result:
In Step 8, after relogin, the Category field should be present on the confirmation page when the sender is the second workspace
Actual Result:
In Step 8, after relogin, the Category field is absent on the confirmation page when the sender is the second workspace.
In Step 11, the Category field only reappears after Categories settings page is visited
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@JmillsExpensify 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
Edited by proposal-police: This proposal was edited at 2024-08-23 15:37:45 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Category field does not show up on confirmation page after relogin
What is the root cause of that problem?
When we log in using the openApp API call, we only receive the categories, tags, and other details for the first policy. As a result, if we select any other policy, the data is not present in Onyx, which causes the category field to be missing. However, when submitting an expense within a policy, we call openDraftWorkspaceRequest, which retrieves all data related to that policy. This behavior does not apply when sending invoices. This condition is not true for invoice types policyExpenseChat?.policyID
The production deploy automation failed: This should be on [HOLD for Payment 2024-10-07] according to #49855 production deploy checklist, confirmed in #49142 (comment)
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: N/A
Determine if we should create a regression test for this bug. Yes
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.
Regression Test Proposal
Create two new workspaces.
Log out and then log back in.
Ensure you are online.
Click on the FAB, select "Send Invoice," and proceed to the confirmation page.
Click on "Send from" and select an other workspace.
Activity
melvin-bot commentedon Aug 23, 2024
Triggered auto assignment to @JmillsExpensify (
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.lanitochka17 commentedon Aug 23, 2024
@JmillsExpensify 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
Nodebrute commentedon Aug 23, 2024
Edited by proposal-police: This proposal was edited at 2024-08-23 15:37:45 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Category field does not show up on confirmation page after relogin
What is the root cause of that problem?
When we log in using the openApp API call, we only receive the categories, tags, and other details for the first policy. As a result, if we select any other policy, the data is not present in Onyx, which causes the category field to be missing. However, when submitting an expense within a policy, we call
openDraftWorkspaceRequest, which retrieves all data related to that policy. This behavior does not apply when sending invoices. This condition is not true for invoice typespolicyExpenseChat?.policyIDApp/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Lines 162 to 166 in eb5f55b
What changes do you think we should make in order to solve the problem?
For invoice-type transactions, we should also call this API to retrieve the necessary data. We can obtain the policy ID using various methods.
In case of invoices we can use the check
isSenderand get the policyID from that participant and then we can callopenDraftWorkspaceRequest.What alternative solutions did you explore? (Optional)
policyIDfrom policy?.idor
melvin-bot commentedon Aug 26, 2024
@JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
JmillsExpensify commentedon Aug 28, 2024
I'll open it up to proposals and I've filled this bug in the invoicing initiative. cc @davidcardoza
Nodebrute commentedon Aug 28, 2024
@JmillsExpensify No C+ is assigned. Can you add the labels again?
35 remaining items
rayane-d commentedon Oct 2, 2024
PR on production
rayane-d commentedon Oct 2, 2024
Note
The production deploy automation failed: This should be on [HOLD for Payment 2024-10-07] according to #49855 production deploy checklist, confirmed in #49142 (comment)
cc @JmillsExpensify
melvin-bot commentedon Oct 4, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
rayane-d commentedon Oct 4, 2024
^ False positive. #50246 (comment)
rayane-d commentedon Oct 6, 2024
BugZero Checklist
Regression Test Proposal
Do we agree 👍 or 👎
cc @JmillsExpensify
JmillsExpensify commentedon Oct 7, 2024
Payment summary:
JmillsExpensify commentedon Oct 7, 2024
All Contributors paid via Upwork.
rayane-d commentedon Oct 15, 2024
@JmillsExpensify Can we close this issue?
rayane-d commentedon Oct 18, 2024
@stitesExpensify @JmillsExpensify I think we can close this issue
JmillsExpensify commentedon Oct 21, 2024
Not yet, let me add the regression test request first and then I can close.
JmillsExpensify commentedon Oct 21, 2024
All done.