SFDO-Tooling / Metecho

Web-based tool for collaborating on Salesforce projects
BSD 3-Clause "New" or "Revised" License
44 stars 34 forks source link

Section to create a new "My Project Scratch Org" does not allow Scratch Org creation in some circumstances #1087

Closed coriobriensfdo closed 3 years ago

coriobriensfdo commented 3 years ago

Issue:

When on the main Metecho page for a project, attempting to create a new scratch org within the "My Project Scratch Org" section is not initially possible if someone else is already creating a scratch org using that option. Button is removed and replaced with the "Creating Org..." notification.

Screen Shot 2021-07-15 at 9 40 56 AM

Steps to repro:

  1. Log into Metecho ensuring you have write access to at least one project, and navigate to that project page. For example https://metecho.herokuapp.com/projects/summit-events-app.

  2. Ask another use to also log in and navigate to that same project page.

  3. Ask the other person to click the Create Scratch Org button within the My Project Scratch Org section to kick off creating a scratch org for the project. Screen Shot 2021-07-15 at 10 38 49 AM

  4. Note that on your screen the creation option is replaced with a message that the scratch org is being created, preventing you from creating your own scratch org. Screen Shot 2021-07-15 at 9 40 56 AM

  5. Refresh your browser, and you should see the create button again. This will remain on your screen for a short time before being replaced with the creation message again (even if you don't click the button to create a new scratch org).

Workaround:

Refresh your browser, then quickly click the Create Scratch Org button.

jgerigmeyer commented 3 years ago

Project scratch org creation is prevented if another user is creating one.