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

Do not fetch runtimes when getting list of all workspaces #3557

Merged
merged 13 commits into from
Jan 10, 2017
Merged

Conversation

mkuznyetsov
Copy link
Contributor

What does this PR do?

Removes getting workspace runtimes info on 'get all workspaces' service

What issues does this PR fix or reference?

#3082

Copy link
Contributor

@voievodin voievodin left a 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

@codenvy-ci
Copy link

* ID of requested workspace
* @return workspace status
*/
public WorkspaceStatus getStatus(String workspaceId) {

Choose a reason for hiding this comment

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

Please add tests

@codenvy-ci
Copy link

@codenvy-ci
Copy link

Build # 1507 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1507/ to view the results.

@codenvy-ci
Copy link

Build # 1524 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1524/ to view the results.

@mkuznyetsov
Copy link
Contributor Author

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') {
Copy link
Contributor

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

Copy link
Contributor

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

@voievodin
Copy link
Contributor

@ashumilova please review client-side changes

@codenvy-ci
Copy link

Build # 1535 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1535/ to view the results.

@codenvy-ci
Copy link

Build # 1540 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1540/ to view the results.

@mkuznyetsov
Copy link
Contributor Author

same logic done for WorkspaceService#getByNamespace()

@skabashnyuk skabashnyuk modified the milestones: 5.0.2, 5.1.0 Jan 10, 2017
@mkuznyetsov mkuznyetsov merged commit d394e33 into master Jan 10, 2017
@mkuznyetsov mkuznyetsov deleted the che-3082 branch January 10, 2017 15:34
@codenvy-ci
Copy link

@slemeur slemeur added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 18, 2017
@JamesDrummond JamesDrummond mentioned this pull request Jan 31, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…e#3557)

* Do not fetch runtimes when getting list of all workspaces
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
* Do not fetch runtimes when getting list of all workspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants