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

CHE-3994 fix create workspace with project bug #4004

Merged
merged 2 commits into from
Feb 2, 2017
Merged

CHE-3994 fix create workspace with project bug #4004

merged 2 commits into from
Feb 2, 2017

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Feb 2, 2017

Signed-off-by: Oleksii Orel [email protected]

What does this PR do?

Fix create workspace with project bug.

What issues does this PR fix or reference?

#3994
#3995
#3996

Changelog

  • Fixes workspace with project creation bug on user dashboard, ram indicator, stacks and samples relations.

@olexii4
Copy link
Contributor Author

olexii4 commented Feb 2, 2017

qa tests for dashboard have passed

@riuvshin
Copy link
Contributor

riuvshin commented Feb 2, 2017

@olexii4 @akurinnoy guys does this pr fixes also #3997 and #3995 ?

Signed-off-by: Oleksii Kurinnyi <[email protected]>
@akurinnoy
Copy link
Contributor

@riuvshin
I've added little fix for RAM indicator
and now it fixes #3997 and #3995

@akurinnoy
Copy link
Contributor

@ashumilova @benoitf please review

@riuvshin
Copy link
Contributor

riuvshin commented Feb 2, 2017

great, good job @akurinnoy!

createWorkspace(workspaceConfig: any, attributes?: any): void {
// TODO: no account in che ? it's null when testing on localhost
createWorkspace(workspaceConfig: che.IWorkspaceConfig, attributes?: any): void {
// tODO: no account in che ? it's null when testing on localhost
Copy link
Contributor

Choose a reason for hiding this comment

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

typo ?

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK, it's to avoid warning from tslint

"comment-format": [
      true,
      "check-space",
      "check-lowercase"
    ],

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant : you replaced TODO by tODO (first letter lowercase)

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@@ -1067,14 +973,14 @@ export class CreateProjectController {
// generate a name

// starts with project
var name = 'project';
let name = 'project';
Copy link
Contributor

Choose a reason for hiding this comment

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

let name : string

Copy link
Contributor

Choose a reason for hiding this comment

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

Here name is inferred to be string because of its value.
Type Inference

Should we specify the type of the variable in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, up to you. In that case it's obvious but sometimes we declare variable used later.

@ashumilova ashumilova added this to the 5.2.1 milestone Feb 2, 2017
@ashumilova ashumilova requested review from JamesDrummond and removed request for slemeur February 2, 2017 15:28
@akurinnoy akurinnoy merged commit 1eebae1 into master Feb 2, 2017
riuvshin pushed a commit that referenced this pull request Feb 2, 2017
* CHE-3994 fix create workspace with project bug

Signed-off-by: Oleksii Orel <[email protected]>

* fix RAM indicator

Signed-off-by: Oleksii Kurinnyi <[email protected]>
@codenvy-ci
Copy link

@olexii4 olexii4 deleted the CHE-3994 branch February 3, 2017 08:33
@JamesDrummond JamesDrummond mentioned this pull request Feb 6, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* CHE-3994 fix create workspace with project bug

Signed-off-by: Oleksii Orel <[email protected]>

* fix RAM indicator

Signed-off-by: Oleksii Kurinnyi <[email protected]>
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
* CHE-3994 fix create workspace with project bug

Signed-off-by: Oleksii Orel <[email protected]>

* fix RAM indicator

Signed-off-by: Oleksii Kurinnyi <[email protected]>
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.

7 participants