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

CODENVY-27; allow to open workspaces by using /ide/namespace/ws_name schema #1463

Merged
merged 15 commits into from
Jun 9, 2016

Conversation

mshaposhnik
Copy link
Contributor

No description provided.

package org.eclipse.che;


import javax.servlet.*;
Copy link
Member

Choose a reason for hiding this comment

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

We should not use * in imports

@@ -120,7 +121,7 @@ public void setUp() throws Exception {
EnvironmentContext.setCurrent(new EnvironmentContext() {
@Override
public Subject getSubject() {
return new SubjectImpl("Test User", USER_ID, "token", new ArrayList<>(), false);
return new SubjectImpl(NAMESPACE, USER_ID, "token", new ArrayList<>(), false);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need arraylist or an empty list ?

Copy link
Contributor Author

@mshaposhnik mshaposhnik Jun 8, 2016

Choose a reason for hiding this comment

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

Do you imply Collections.emptyList() here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can simply pass null and new emptySet ill be created

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok

@skabashnyuk
Copy link
Contributor

Other ok

@codenvy-ci
Copy link

@vparfonov
Copy link
Contributor

ok

@@ -247,7 +245,7 @@ public void delete(@ApiParam("The workspace id") @PathParam("id") String id) thr
ConflictException,
ForbiddenException {
if (!workspaceManager.getSnapshot(id).isEmpty()) {
machineManager.removeSnapshots(getCurrentUserId(), id);
machineManager.removeSnapshots(EnvironmentContext.getCurrent().getSubject().getUserId(), id);
Copy link
Member

Choose a reason for hiding this comment

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

@mshaposhnik mshaposhnik merged commit 1858af8 into master Jun 9, 2016
@mshaposhnik mshaposhnik deleted the CODENVY-27-5 branch June 9, 2016 09:31
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
…schema (#1463)

* CODENVY-27; use /namespace/ws_name URL schema for IDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants