Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-9498

[RN] Better handling of the workspaces link, when using the link multiple times

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      = Improved handling of duplicate workspaces from factory URLs

      This release introduces smarter handling of factory URLs to prevent the accidental creation of duplicate workspaces.

      When you create a workspace by using a factory URL from a Git repository:

      * If a single workspace from that repository already exists, it opens automatically.

      * If multiple workspaces from that repository exist, you are prompted to open an existing one or create a new one.

      You can also use URL parameters for more direct control:

      * To force the creation of a new workspace, append `?new` to the factory URL.

      * To open a specific workspace directly, append `?existing=<workspace-name>` to the factory URL.

      Additionally, for sample projects on the *Create Workspace* page, you can now use the *Create New* switch to control this behavior. When the switch is enabled, a new workspace is always created. When disabled, an existing workspace from that sample is reused if it exists.

      For more information about the existing URL parameter, see link:https://example.com[URL parameter for the existing workspace name]
      Show
      = Improved handling of duplicate workspaces from factory URLs This release introduces smarter handling of factory URLs to prevent the accidental creation of duplicate workspaces. When you create a workspace by using a factory URL from a Git repository: * If a single workspace from that repository already exists, it opens automatically. * If multiple workspaces from that repository exist, you are prompted to open an existing one or create a new one. You can also use URL parameters for more direct control: * To force the creation of a new workspace, append `?new` to the factory URL. * To open a specific workspace directly, append `?existing=<workspace-name>` to the factory URL. Additionally, for sample projects on the *Create Workspace* page, you can now use the *Create New* switch to control this behavior. When the switch is enabled, a new workspace is always created. When disabled, an existing workspace from that sample is reused if it exists. For more information about the existing URL parameter, see link: https://example.com [URL parameter for the existing workspace name]
    • Enhancement
    • Done

      This release gives you greater control when creating a new workspace using URL. Clicking a factory URL detects existing workspaces from the same Git repository, guiding you to an existing one or giving you the option to create a new workspace intentionally.

      Key Updates

      • Smart URL Handling: When you use a factory URL, Che checks for existing workspaces from that Git repository.
        • If a single workspace exists, it opens automatically, preventing an accidental duplicate.
        • If no workspace exists, a new one is created.
      • Multi-Workspace Prompts: If a factory URL matches multiple existing workspaces, a warning message appears, prompting you to choose the specific one you want to open or to create a new workspace:

      • Direct Workspace Targeting: You can bypass the multi-workspace prompt and open a specific instance directly by appending ?existing=<workspace-name> to the Git repository URL.
      • Explicit Workspace Creation: You can force the creation of a new workspace by adding ?new parameter to a factory URL. This always creates a new workspace.
      • Create New switch: On the Create Workspace page, the Create New switch gives you more control when using sample projects.
        • With the switch enabled (the default state), selecting a sample always creates a new workspace.
        • If you disable the switch, selecting a sample opens an existing workspace if one was previously created from that sample.

      Learn more about the existing URL parameter in the official documentation.

              gtrivedi@redhat.com Gaurav Trivedi
              gtrivedi@redhat.com Gaurav Trivedi
              Rohan Kumar Rohan Kumar
              Gaurav Trivedi Gaurav Trivedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: