Open izarutskaya opened 1 week ago
Triggered auto assignment to @amyevans (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:
Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.
Triggered auto assignment to @puneetlath (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.
:wave: 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:
@puneetlath 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 this issue might be related to the #collect project.
This is an unintended side effect of the changes in https://github.com/Expensify/App/pull/41593 - @francoisl @DylanDylann @ishpaul777 shall we revert or are one of you available to get a fix PR together soon?
Agree that this is sideeffect but this was this expected behviour in the issue
i can't think of any other solution than delaying a workspace creation until the flow is completed, mean we only call createWorkspace
at the end of flow.
cc @trjExpensify
@mountiny @rezkiy37 might have some ideas as well. I think it's a bit of an edge case to confirm the business name and then go back and change it, so I'm not sure I'd call it a deploy blocker per se, but we should see what we can do about it.
Discussed with Tom and I think this does not have to be a deploy blocker as its a rare flow. The UX is not great, but not a blocker.
If we want to keep this behaviour of creating a workspace before the flow is completed (that is to be able to create correct guide calendar link in the message), we should probably consider adding some flag to the optimistic policy data so that when user goes back in the flow, we would not call CreateWorkspace
but API to update the existing workspace name instead
Sounds good, I'll demote it. I agree the approach would be to call UpdateWorkspaceGeneralSettings
with the new name if the user navigated back and then forward again, but I haven't looked at the code to see how achievable that is. @francoisl mind if I reassign you as CME since you've got more context?
Multiple instances of the workspace are being created
We consistently generate a fresh workspace upon finishing the business name page during the onboarding process
As @amyevans's suggestion, I propose adding a new field to ONYX called "onboardingPolicyID"
And we'll configure the onboardingPolicyID accordingly.
if (!onboardingPolicyID) { // Get from ONYX
const {adminsChatReportID, policyID} = Policy.createWorkspace(undefined, true, work);
Welcome.setOnboardingAdminsChatReportID(adminsChatReportID);
Welcome.setOnboardingPolicyID(policyID);
}
Policy.updateGeneralSettings(onboardingPolicyID, work, onboardingPolicy.outputCurrency || CONST.CURRENCY.USD)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Yes that works for me. As Vit said, we need to keep the CreateWorkspace
API call where it is now rather than at the end of the flow, so that we can have the user's assigned guide's calendar link for the "Meet your setup specialist" task.
@cretadn22 I believe you're missing the name
parameter when you're calling updateGeneralSettings
in your proposal.
@ishpaul777 I'm going to assign you as C+ if that's ok, since you already have context on the issue.
@francoisl My mistake. I've made the update.
Proposal from @cretadn22 LGTM!
🎀 👀 🎀 C+ reviewed
Current assignees @puneetlath and @francoisl are eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
@francoisl I'll let you take CME on this one.
PR merged today!
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: v1.4.71-0 Reproducible in staging?: Y Reproducible in production?: N Found when validating PR : https://github.com/Expensify/App/pull/41593 Email or phone of affected tester (no customers): shussain+acjhn1@applausemail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Changing the business name after navigating back should not create multiple workspaces; it should only update the existing workspace with the new name
Actual Result:
Multiple workspaces are created when navigating back and changing the business name
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/Expensify/App/assets/115492554/76a878c0-0ca6-40b6-90a6-1c413e59571f
View all open jobs on GitHub