-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Do not fetch runtimes when getting list of all workspaces #3557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returned workspaces must still contain correct status
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1478/ |
d465700
to
517bc12
Compare
* ID of requested workspace | ||
* @return workspace status | ||
*/ | ||
public WorkspaceStatus getStatus(String workspaceId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1488/ |
Build # 1507 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1507/ to view the results. |
Build # 1524 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1524/ to view the results. |
Now returns workspace status |
@@ -1046,7 +1046,7 @@ export class CreateProjectController { | |||
* @param workspace existing workspace | |||
*/ | |||
checkExistingWorkspaceState(workspace: any): void { | |||
if (workspace.runtime) { | |||
if (workspace.status === 'RUNNING') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (workspace.status === 'RUNNING')
is not the same to
if (workspace.runtime)
it looks like
if (workspace.status !== 'STOPPED')
is the correct option here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'RUNNING' is fine here, cause wait for this status to start importing projects
@ashumilova please review client-side changes |
Build # 1535 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1535/ to view the results. |
Build # 1540 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1540/ to view the results. |
same logic done for WorkspaceService#getByNamespace() |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1564/ |
…e#3557) * Do not fetch runtimes when getting list of all workspaces
* Do not fetch runtimes when getting list of all workspaces
What does this PR do?
Removes getting workspace runtimes info on 'get all workspaces' service
What issues does this PR fix or reference?
#3082