-
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
[HOLD for payment 2024-06-06] [$250] Send invoice - Workspace switcher is reset to "Expensify" when sending invoice to the same WS #41575
Comments
Triggered auto assignment to @laurenreidexpensify ( |
@laurenreidexpensify 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher is switched to Expensify when creating a new send invoice. What is the root cause of that problem?When we complete the send invoice, it will call Line 3379 in da2cd90
In Line 1048 in da2cd90
However, when we complete the send invoice, we are creating a new report and the report data is not available yet (not merged to the onyx yet). So, What changes do you think we should make in order to solve the problem?Replace Line 3379 in da2cd90
Then, we pass the invoice room report instead of the ID. We need to return the report object from if it's happening on other places too, then we can apply the same fix |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher is reset to "Expensify" when sending invoice to the same WS What is the root cause of that problem?The Lines 3410 to 3412 in 2e39501
Within App/src/libs/Navigation/dismissModalWithReport.ts Lines 53 to 57 in 2e39501
The issue here is that
What changes do you think we should make in order to solve the problem?We need to fix Lines 1065 to 1070 in 2e39501
We can add another check, if if (policyID && report?.policyID !== CONST.POLICY.ID_FAKE) {
return true;
}
return (
isConciergeChatReport(report) ||
(report?.policyID === CONST.POLICY.ID_FAKE || !report?.policyID ? hasParticipantInArray(report, policyMemberAccountIDs) : report?.policyID === policyID)
); if as per the comment on the function Line 1062 in 2e39501
This is created to check if it's not a DM. My suggestion tested without regression POC: 20240506_231821.mp4 |
@laurenreidexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01038e8ff26d237540 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
@allroundexperts, @laurenreidexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@allroundexperts bump for review pls |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Checking today |
Thanks for the proposals everyone. I don't see any issue with @bernhardoj's proposal. @dragnoir's proposal seems a little risky to me. Since @bernhardoj proposed first, let's go with them. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allroundexperts I tested the selected @bernhardoj can you pls share a test branch? I may tested with some wrong details! |
@dragnoir Did you do the following?
|
Yes, I did, does it work for you? |
@allroundexperts the updates from @bernhardoj works well. |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @allroundexperts |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06-06. 🎊 For reference, here are some details about the assignees on 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:
|
Payment Summary
|
@allroundexperts pls complete checklist thanks |
Payment Summary c+ $250 - @allroundexperts requires payment through NewDot Manual Requests |
Checklist
Regression test
Verify that the workspace switcher still has the same workspace selected. Do we 👍 or 👎 ? |
$250 approved for @allroundexperts |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.70-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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Workspace switcher should remain unchanged when sending the invoice to the same workspace
Actual Result:
Workspace switcher is reset to "Expensify" when sending the invoice to the same workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6469997_1714739554185.20240503_202652.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensifyThe text was updated successfully, but these errors were encountered: