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 2021-12-06] [Pay on 23rd Nov] User is able to create a second workspace while the first one is being created #5573
After investigating for a while, This issue happens because the policy creation request wasn't done yet.
Whether the internet is slow or the client is offline.
To solve this issue we have to disable the button once its clicked.
constructor(props){this.state={newWorkSpaceButtonClicked:false// NEW};}// rest of code<PopoverMenu// rest of code...(Permissions.canUseFreePlan(this.props.betas)&&!isAdminOfFreePolicy(this.props.allPolicies)&&!this.state.newWorkSpaceButtonClicked? [// NEW{icon: NewWorkspace,iconWidth: 46,iconHeight: 40,text: this.props.translate('workspace.new.newWorkspace'),description: this.props.translate('workspace.new.getTheExpensifyCardAndMore'),onSelected: ()=>{this.setState({newWorkSpaceButtonClicked:true});// NEWreturncreate();},},] : []),]}/>
Ideally, the state should be controlled by an Onyx key, rather than state that is tied to the lifecycle of this component. Something like this. Notice that we are setting the state of the button via an Onyx key.
changed the title [-]User is able to create a second workspace while the first one is being created [/-][+][Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/+]on Nov 16, 2021
Paid @Santhosh-Sellavel in Upwork, $500 for job and $250 bonus for Company Offsite hold
Awaiting acceptance of offer from @Hanaffi to pay for reporting the issue
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.16-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-][Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/-][+][HOLD for payment 2021-12-06] [Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/+]on Nov 29, 2021
Activity
MelvinBot commentedon Sep 28, 2021
Triggered auto assignment to @Julesssss (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.Hanaffi commentedon Sep 28, 2021
Proposal
After investigating for a while, This issue happens because the policy creation request wasn't done yet.
Whether the internet is slow or the client is offline.
To solve this issue we have to disable the button once its clicked.
Julesssss commentedon Sep 29, 2021
Hi @Hanaffi, thanks for the proposal.
Ideally, the state should be controlled by an Onyx key, rather than state that is tied to the lifecycle of this component. Something like this. Notice that we are setting the state of the button via an Onyx key.
MelvinBot commentedon Oct 4, 2021
Triggered auto assignment to @adelekennedy (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.MelvinBot commentedon Oct 4, 2021
@Julesssss, @adelekennedy Huh... This is 4 days overdue. Who can take care of this?
Julesssss commentedon Oct 5, 2021
Awaiting proposals (probably after the N6 hold is released)
46 remaining items
mallenexpensify commentedon Nov 9, 2021
Thanks @Santhosh-Sellavel , hired
[-]User is able to create a second workspace while the first one is being created [/-][+][Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/+]Julesssss commentedon Nov 16, 2021
Merged, awaiting payment.
mallenexpensify commentedon Nov 23, 2021
Paid @Santhosh-Sellavel in Upwork, $500 for job and $250 bonus for
Company OffsiteholdAwaiting acceptance of offer from @Hanaffi to pay for reporting the issue
mallenexpensify commentedon Nov 23, 2021
@Hanaffi has been paid $250 for reporting, closing.
Santhosh-Sellavel commentedon Nov 25, 2021
PR is not yet deployed to production yet, why this one was paid early! @mallenexpensify
Julesssss commentedon Nov 28, 2021
Ah, I added the comment when the PR was merged, when I should have awaited the 'deployed to prod' event.
botify commentedon Nov 29, 2021
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.16-10 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 2021-12-06. 🎊
[-][Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/-][+][HOLD for payment 2021-12-06] [Pay on 23rd Nov] User is able to create a second workspace while the first one is being created [/+]Santhosh-Sellavel commentedon Nov 30, 2021
Note to all, Paid already!