Skip to content
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

procedures: starting a new workspace #2227

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0d381e3
draft
max-cx Jan 19, 2022
518ab3e
draft
max-cx Jan 19, 2022
f28fa50
draft
max-cx Jan 20, 2022
4162599
docs: outline of User Onboarding in User Guide
max-cx Jan 20, 2022
df2a2c5
Merge remote-tracking branch 'upstream/main' into 3505
max-cx Jan 20, 2022
0b76018
Merge branch 'ug-uo-outline' into 3505
max-cx Jan 20, 2022
e249432
draft
max-cx Jan 20, 2022
83d5b79
draft
max-cx Jan 21, 2022
e51b476
draft
max-cx Jan 25, 2022
22b6e51
draft
max-cx Jan 27, 2022
92e1cfe
Merge remote-tracking branch 'upstream/main' into 3505
max-cx Jan 28, 2022
6ce4c05
draft
max-cx Jan 28, 2022
8141dfe
draft
max-cx Jan 31, 2022
ab49e74
draft
max-cx Jan 31, 2022
ddd7c92
draft
max-cx Jan 31, 2022
e725af0
draft
max-cx Feb 1, 2022
2fc1a5d
draft
max-cx Feb 1, 2022
e97c2b7
draft
max-cx Feb 3, 2022
1bdf263
draft
max-cx Feb 4, 2022
2847558
draft
max-cx Feb 7, 2022
5d1e40a
draft
max-cx Feb 7, 2022
d098c01
draft
max-cx Feb 7, 2022
c31da38
draft
max-cx Feb 7, 2022
0b34188
Delete proc_adding-prod-url-to-git-repository-readme.adoc
max-cx Feb 7, 2022
5f418a9
Delete proc_OLD-using-a-badge-to-link-to-workspaces.adoc
max-cx Feb 7, 2022
98e46b6
Delete con_distributing-prod-url-to-users.adoc
max-cx Feb 7, 2022
15d8602
Delete proc_NEW-uo-TEMP-HEADING-STANDALONE-OR-PART-OF-SOME-PROC-addin…
max-cx Feb 7, 2022
694afe7
draft
max-cx Feb 7, 2022
195c9db
draft
max-cx Feb 7, 2022
1d42dd5
modified: url-parameter-for-workspace-ide.adoc
max-cx Feb 8, 2022
1f0551e
draft
max-cx Feb 14, 2022
d611a3e
draft
max-cx Feb 16, 2022
081d0ca
draft
max-cx Feb 16, 2022
128ebac
draft
max-cx Feb 16, 2022
a2d6617
draft
max-cx Feb 16, 2022
6f48b16
Merge remote-tracking branch 'upstream/main' into 3505PR
max-cx Feb 28, 2022
8886eb5
draft
max-cx Mar 10, 2022
0d30421
draft
max-cx Mar 10, 2022
fb4c97c
draft
max-cx Mar 10, 2022
289de40
draft
max-cx Mar 10, 2022
13ef64d
draft
max-cx Mar 14, 2022
6bec566
draft
max-cx Mar 21, 2022
d1a10fa
Apply suggestions from code review
themr0c Mar 23, 2022
efbbef7
draft
max-cx Mar 23, 2022
797b470
draft
max-cx Mar 24, 2022
8cb2feb
Merge branch 'main' into 3505PR
themr0c Mar 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion antora-playbook-for-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ site:
title: Eclipse Che Documentation
# Disabling url on purpose to avoid htmltest crawling the live website.
# url: https://www.eclipse.org/che/docs
start_page: docs:user-guide:starting-a-workspace-using-the-dashboard.adoc
start_page: docs:user-guide:user-onboarding.adoc
robots: allow
content:
sources:
Expand Down
4 changes: 2 additions & 2 deletions antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title: Documentation
prerelease: true
version: main
display_version: main
start_page: user-guide:starting-a-workspace-using-the-dashboard.adoc
start_page: user-guide:user-onboarding.adoc
nav:
- modules/overview/nav.adoc
- modules/hosted-che/nav.adoc
Expand Down Expand Up @@ -90,7 +90,7 @@ asciidoc:
prod-operator: che-operator
prod-short: Che
prod-upstream: Eclipse{nbsp}Che
prod-url: https://che-host:che-port
prod-url: https://<i><</i><i>che_fqdn</i><i>></i>
prod-workspace: che-ws
prod: Eclipse&#160;Che
prod2: Eclipse&#160;Che
Expand Down
62 changes: 32 additions & 30 deletions modules/installation-guide/examples/checluster-properties.adoc

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion modules/installation-guide/examples/system-variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ pass:[<!-- vale off -->]
`+CHE_INFRA_KUBERNETES_ASYNC_STORAGE_SHUTDOWN__CHECK__PERIOD__MIN+`,"`+30+`","Defines the period with which the Asynchronous Storage Pod stopping ability will be performed (once in 30 minutes by default)"
`+CHE_INTEGRATION_BITBUCKET_SERVER__ENDPOINTS+`,"`+NULL+`","Bitbucket endpoints used for factory integrations. Comma separated list of Bitbucket server URLs or NULL if no integration expected."
`+CHE_INTEGRATION_GITLAB_SERVER__ENDPOINTS+`,"`+NULL+`","GitLab endpoints used for factory integrations. Comma separated list of GitLab server URLs or NULL if no integration expected."
`+CHE_INTEGRATION_GITLAB_OAUTH__ENDPOINT+`,"`+NULL#+`","Address of the GitLab server with configured OAuth 2 integration"
`+CHE_INTEGRATION_GITLAB_OAUTH__ENDPOINT+`,"`+NULL+`","Address of the GitLab server with configured OAuth 2 integration"
`+CHE_OAUTH2_GITLAB_CLIENTID__FILEPATH+`,"`+NULL+`","Configuration of GitLab OAuth2 client. Used to obtain Personal access tokens. Location of the file with GitLab client id."
`+CHE_OAUTH2_GITLAB_CLIENTSECRET__FILEPATH+`,"`+NULL#+`","Location of the file with GitLab client secret."
,===

[id="che-system"]
Expand Down
25 changes: 14 additions & 11 deletions modules/user-guide/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ pass:[<!-- vale off -->]

.User Guide

//Part I for UX-optimized flows
* xref:user-onboarding.adoc[]
** projects-with-git.adoc
** projects-without-git.adoc
*** xref:starting-a-workspace.adoc[]
**** xref:starting-a-workspace-using-the-dashboard.adoc[]
**** xref:starting-a-workspace-using-an-url.adoc[]
*** xref:defining-a-workspaces.adoc[]
** xref:che-urls.adoc[]
*** xref:url-of-your-organizations-che-instance.adoc[]
*** xref:url-of-your-che-dashboard.adoc[]
*** xref:urls-for-starting-a-new-workspace.adoc[]
*** xref:urls-of-your-workspaces.adoc[]
** xref:starting-a-new-workspace-with-a-clone-of-a-git-repository.adoc[]
** xref:starting-a-stopped-workspace.adoc[]

//Part II for advanced features and alternative settings not documented in Part I
* xref:advanced-use.adoc
//** xref:etc.adoc[]
//** xref:etc.adoc[]
* xref:advanced-use.adoc[]
** xref:parameters-for-the-urls-for-starting-a-new-workspace.adoc[]
*** xref:url-parameter-concatenation.adoc[]
*** xref:url-parameter-for-the-workspace-ide.adoc[]
*** xref:url-parameter-for-starting-duplicate-workspaces.adoc[]
*** xref:url-parameter-for-the-devfile-file-name.adoc[]
*** xref:url-parameter-for-the-devfile-file-path.adoc[]
8 changes: 4 additions & 4 deletions modules/user-guide/pages/advanced-use.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:_content-type: assembly
:description: Advanced Use
:_content-type: CONCEPT
:description: Advanced use
:keywords: advanced-use, advanced-user, advanced-users, user-guide
:navtitle: Advanced Use
:navtitle: Advanced use
// :page-aliases:

[id="advanced-use_{context}"]
= Advanced Use
= Advanced use
15 changes: 15 additions & 0 deletions modules/user-guide/pages/che-urls.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:_content-type: CONCEPT
:description: {prod-short} URLs
:keywords: url, dashboard, {prod-short}, workspace, workspaces, new-workspace, your-workspace
:navtitle: {prod-short} URLs
// :page-aliases:

[id="{prod-id-short}-urls_{context}"]
= {prod-short} URLs

Working with {prod-short} involves regular use of the following URLs:

* xref:url-of-your-organizations-che-instance.adoc[]
* xref:url-of-your-che-dashboard.adoc[]
* xref:urls-for-starting-a-new-workspace.adoc[]
* xref:urls-of-your-workspaces.adoc[]
20 changes: 0 additions & 20 deletions modules/user-guide/pages/defining-a-workspaces.adoc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:_content-type: CONCEPT
:description: Parameters for the URLs for starting a new workspace
:keywords: url, urls, parameter, parameters, starting, start, workspace, workspaces
:navtitle: Parameters for the URLs for starting a new workspace
// :page-aliases:

[id="parameters-for-the-urls-for-starting-a-new-workspace_{context}"]
= Parameters for the URLs for starting a new workspace

* xref:url-parameter-for-the-workspace-ide.adoc[]
* xref:url-parameter-for-starting-duplicate-workspaces.adoc[]
* xref:url-parameter-for-the-devfile-file-name.adoc[]
* xref:url-parameter-for-the-devfile-file-path.adoc[]
* xref:url-parameter-concatenation.adoc[]
8 changes: 0 additions & 8 deletions modules/user-guide/pages/projects-with-git.adoc

This file was deleted.

8 changes: 0 additions & 8 deletions modules/user-guide/pages/projects-without-git.adoc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:_content-type: PROCEDURE
:description: Starting a new workspace with a clone of a Git repository
:keywords: start-new-workspace, start-a-new-workspace, how-to-start-new-workspace, how-to-start-a-new-workspace, starting-a-new-workspace, clone-git-repository, clone-a-git-repository, how-to-start-workspace, how-to-start-a-workspace
:navtitle: Starting a new workspace with a clone of a Git repository
// :page-aliases:

[id="starting-a-new-workspace-with-a-clone-of-a-git-repository_{context}"]
= Starting a new workspace with a clone of a Git repository

With {prod-short}, you can start a new workspace that contains a clone of a Git repository. So you can have your remote origin or fork cloned into a new starting workspace. Or you can have a common repository of a project cloned into a new starting workspace. With such Git providers as GitHub and GitLab, you can also specify the branch for the new starting workspace to checkout.
max-cx marked this conversation as resolved.
Show resolved Hide resolved
max-cx marked this conversation as resolved.
Show resolved Hide resolved

TIP: Advanced users can compose and use their own devfiles, as well as use a local devfile.
//provide links on "compose", "devfiles", and "local devfile" to the corresponding sections in Advanced Use (User Guide). max-cx

IMPORTANT: Although the devfile enables full functionality of a workspace, you can also start a new workspace by supplying the URL of a Git repository without a devfile. This results in a new workspace with a clone of the Git repository and with the defaults such as the Che-Theia IDE and the Universal Developer Image.
//provide xrefs to a concept module about the Universal Developer Image and, if applicable, devfile-less defaults for new workspaces. max-cx

NOTE: The *Create Workspace* page of your {prod-short} xref:url-of-your-che-dashboard.adoc[dashboard] has the *Git Repo URL ** field as the GUI alternative for entering the URL of a Git repository to start a new workspace.
max-cx marked this conversation as resolved.
Show resolved Hide resolved

.Prerequisites

* Your organization has a running instance of {prod-short}.
* You have been given the xref:url-of-your-organizations-che-instance.adoc[].
max-cx marked this conversation as resolved.
Show resolved Hide resolved
* Your Git repository maintainer keeps the `devfile.yaml` or `.devfile.yaml` file in the root directory of the Git repository.
* Optional: Private repositories that are hosted on GitHub, GitLab, or Bitbucket require (1) an authorized application link to be created on the repository-hosting website by the repository maintainer (which is you for your fork) and (2) a {platforms-name} secret to be applied by the administrator of the {prod-short} instance that belongs to your organization.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Optional: Private repositories that are hosted on GitHub, GitLab, or Bitbucket require (1) an authorized application link to be created on the repository-hosting website by the repository maintainer (which is you for your fork) and (2) a {platforms-name} secret to be applied by the administrator of the {prod-short} instance that belongs to your organization.
* Optional: Private repositories that are hosted on GitHub, GitLab, or Bitbucket require:
- An authorized application link to be created on the repository-hosting website by the repository maintainer (which is you for your fork) and
- A {platforms-name} secret to be applied by the administrator of the {prod-short} instance that belongs to your organization.

//two inline links to be added into this par in the next, separate PR. max-cx

.Procedure

. Optional: visit the xref:url-of-your-che-dashboard.adoc[] to log in as a {prod-short} user to your organization's instance of {prod-short}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
. Optional: visit the xref:url-of-your-che-dashboard.adoc[] to log in as a {prod-short} user to your organization's instance of {prod-short}.
. Optional: Visit the xref:url-of-your-che-dashboard.adoc[] to log in as a {prod-short} user to your organization's instance of {prod-short}.


. Visit the xref:urls-for-starting-a-new-workspace.adoc[URL to start a new workspace].
+
A new tab opens with the workspace-starting page in *Progress*.
+
When the new workspace is ready, the workspace user interface loads in the browser tab.
+
A clone of the Git repository is present in the filesystem of the new workspace.

.Additional resources

* xref:parameters-for-the-urls-for-starting-a-new-workspace.adoc[]
38 changes: 38 additions & 0 deletions modules/user-guide/pages/starting-a-stopped-workspace.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
:_content-type: PROCEDURE
:description: Starting a stopped workspace
:keywords: start-stopped-workspace, start-a-stopped-workspace, starting-a-stopped-workspace, starting-stopped-workspace, stopped-workspace, how-to-start-workspace, how-to-start-a-workspace
:navtitle: Starting a stopped workspace
// :page-aliases:

[id="starting-a-stopped-workspace_{context}"]
= Starting a stopped workspace

You can start a stopped workspace by using the {prod-short} dashboard.
//todo: link `stopped` to my draft of stopping-a-running-workspace.adoc. max-cx

.Procedure

To start and open a stopped workspace in a new tab:

. Go to the xref:url-of-your-che-dashboard.adoc[*Workspaces*] page of your {prod-short} dashboard.

. Locate the workspace in the list.

. Click *Open*.
+
A new tab opens with the workspace-starting page in *Progress*.
+
When the new workspace is ready, the workspace user interface loads in the browser tab.

[TIP]
====
Starting a stopped workspace when you still have the browser tab for it in your browser:

. In another tab in the browser, go to the xref:url-of-your-che-dashboard.adoc[*Workspaces*] page of your {prod-short} dashboard.

. Locate the workspace in the list.

. Go to *⋮* *>* *Start in Background*.

. Reload or refresh the browser tab of the workspace: kbd:[Ctrl+R] in Mozilla Firefox or Google Chrome.
====
20 changes: 0 additions & 20 deletions modules/user-guide/pages/starting-a-workspace-using-an-url.adoc

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions modules/user-guide/pages/starting-a-workspace.adoc

This file was deleted.

21 changes: 21 additions & 0 deletions modules/user-guide/pages/url-of-your-che-dashboard.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:_content-type: CONCEPT
:description: URL of your {prod-short} dashboard
:keywords: dashboard, manage-workspaces, verify, workspace-status, workspace-state
:navtitle: URL of your {prod-short} dashboard
// :page-aliases:

[id="url-of-your-{prod-id-short}-dashboard_{context}"]
= URL of your {prod-short} dashboard

The *Workspaces* page of your {prod-short} dashboard is where you manage your workspaces and verify their current states. The URL syntax for this page is like so:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The *Workspaces* page of your {prod-short} dashboard is where you manage your workspaces and verify their current states. The URL syntax for this page is like so:
The *Workspaces* page of your {prod-short} dashboard is where you manage your workspaces and verify their current states. The URL syntax for this page is as follows:


[source,subs="+quotes,+attributes"]
----
{prod-url}/dashboard/#/workspaces
----

include::partial$snip_bookmark-this-url-in-your-browser-for-convenience.adoc[]

.Additional resources

* xref:url-of-your-organizations-che-instance.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:_content-type: CONCEPT
:description: URL of your organization's {prod-short} instance
:keywords: team, organization, organization-url, url-organization, fqdn, fully-qualified-domain-name
:navtitle: URL of your organization's {prod-short} instance
// :page-aliases:

[id="url-of-your-organizations-{prod-id-short}-instance_{context}"]
= URL of your organization's {prod-short} instance

Your {prod-short} administrator must provide you with the URL of your organization's {prod-short} instance that you need as a user to access your {prod-short} dashboard and start and manage your workspaces. This URL is a fully qualified domain name (FQDN):

[source,subs="+quotes,+attributes"]
----
{prod-url}
----
20 changes: 20 additions & 0 deletions modules/user-guide/pages/url-parameter-concatenation.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:_content-type: CONCEPT
:description: URL parameter concatenation
:keywords: url-parameters, multiple-url-parameters, combine-url-parameters, several-url-parameters, add-url-parameters, concatenate, concatenate-multiple-URL-parameters, concatenate-URL-parameters, concatenating, concatenating-multiple-URL-parameters, concatenating-URL-parameters, concatenation
:navtitle: URL parameter concatenation
// :page-aliases:

[id="url-parameter-concatenation_{context}"]
= URL parameter concatenation

The xref:urls-for-starting-a-new-workspace.adoc[URL for starting a new workspace] supports concatenation of multiple URL parameters by using `&` with the following URL syntax:

[source,subs="+quotes,+attributes"]
----
{prod-url}#__<git_repository_url>__?__<url_parameter_1>__&__<url_parameter_2>__&__<url_parameter_3>__
----

TIP: Remember to add `?` as a prefix to the first URL parameter after the URL of the linked Git repository.

.Additional resources
* xref:starting-a-new-workspace-with-a-clone-of-a-git-repository.adoc[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
:_content-type: CONCEPT
:description: URL parameter for starting duplicate workspaces
:keywords: start-duplicate-workspaces, start-duplicated-workspaces, duplicate-workspace, duplicate-workspaces, duplicated-workspace, duplicated-workspaces, how-to-start-a-duplicate, how-to-start-duplicate
:navtitle: URL parameter for starting duplicate workspaces
// :page-aliases:

[id="url-parameter-for-starting-duplicate-workspaces_{context}"]
= URL parameter for starting duplicate workspaces

Visiting a URL for starting a new workspace results in a workspace that is based on a combination of a devfile and a linked Git repository.

In some situations, you may need to start one or more workspaces from the same URL for starting a new workspace, resulting in workspaces that are duplicates in terms of the same devfile and the same linked Git repository. The URL parameter for starting a duplicate workspace is `new`. The URL for starting a new workspace has the following syntax with the `new` parameter:

[source,subs="+quotes,+attributes"]
----
{prod-url}#__<git_repository_url>__?new
----

NOTE: Attempting to reuse the devfile and linked Git repository without the `new` URL parameter to start a new workspace in addition to a workspace that already exists results in an error message.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NOTE: Attempting to reuse the devfile and linked Git repository without the `new` URL parameter to start a new workspace in addition to a workspace that already exists results in an error message.
NOTE: Attempting to reuse the devfile and linked Git repository without the `new` URL parameter to start a new workspace in addition to a workspace that already exists will provide an error message.


.Additional resources
* xref:urls-for-starting-a-new-workspace.adoc[]
* xref:starting-a-new-workspace-with-a-clone-of-a-git-repository.adoc[]