* CHE-4061 Rework workspace key to new format where namespace can contain `/` symbols
Impemented new format workspace key:
1. {workspaceId}
2. {namespace}/{workspaceName}
Note that namespace can contains '/' symbol so workspace key can looks like {namespace_part1}/{namespace_part2}/.../{namespace_partN}/{workspaceName}.
* CHE-4061 Adapt IDE to work with workspace key in new format
According to new workspace key format changes URL
to IDE looks like {HOST}/namespace/namespace_part_2/workspaceName
* CHE-4061 Adapt dashboard to work with workspace key in new format
According to new workspace key format changes URL to
dashboard workspace details team looks like
{HOST}/dashboard/#/workspace/namespace/namespace_part_2/workspaceName
When adding a new git remote with URL that starts with spaces it will be wrongly displayed in the remotes list. Adding trim() to remote URL resolves this problem.
The goal of this refactoring is to set correct type of HTTP methods in GitService. Now almost all HTTP methods in this service are POST methods, but there are methods that are used to get some content, so they should be marked as GET method. Also I had to change such methods to receive query parameters instead of body.
Implemented parameter objects to use them instead of using DTO as parameter in GitConnection methods.
Fix disabled state of the compare button when we open Git compare window and it contains some changed files to compare. Delete unused code.
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
When user opens git compare window on modified or new file and makes
some changes in this window, the changes will not be updated in opened
file editor.
Update even solves this problem.
JGit does not support HTTP 301 redirects yet, it throws exception when
performing commands with remote using http url instead https.
Native git can do it.
remove workspace id from services that deployed on wsagent
remove workspace Id usage in wsagent services in dashboard
Add init params for websocket endpoint and eventbus end point It allow has different format of URL on wsmaster with ws-id like path param and on wsagent without it
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
Add path to wsagent into wsagent server url to avoid doing that on client-side
Add class DevMachine on client-side what contain all needed information for communicate with wsagent and terminal
Remove @Named(cheExtensionPath)
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>