-
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
CHE-3883: fix creating a custom stack #4224
Conversation
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2044/ |
Build # 2058 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2058/ to view the results. |
@akurinnoy could you please prepare missing pieces to complete the review? |
- allow user to rename any machine - fix checking for machine name uniqueness Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
- add ability to delete the dev machine - add label to mark the dev machine - fix karma tests - add protractro tests Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
@slemeur done |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2068/ |
/** | ||
* This class is handling the controller for deleting machines dialog. | ||
* | ||
* @author Ann Shumilova |
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.
author :)
*/ | ||
private isProcessing: boolean = false; | ||
/** | ||
* Machine name which will be configured ad dev-machine |
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.
ad dev-machine - as dev-machine
|
||
/** | ||
* Default constructor that is using resource | ||
* @ngInject for Dependency injection | ||
*/ | ||
constructor($mdDialog) { | ||
constructor(private $mdDialog: ng.material.IDialogService) { |
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.
why private here is needed?
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.
it's a way to create and initialize a member in one place
see Parameter properties in Classes
let nameRE = new RegExp('^' + name + '$', 'i'); | ||
return this.machinesNames.some((_name: string) => { | ||
return nameRE.test(_name); | ||
}) === false; |
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 it done because we show names in upercase - we can use old one check and use convert the string to uppercase or lowercase letters in bought cases(when we use machineNames and when we check input name name). But use machineNamesUppercase and nameUppercase. As for me it would be more clear.
WDYT?
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.
I agree, will update the PR
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.
Copyright headers are missing on .js files
Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2075/ |
@bmicklea Should have this in release notes? Could be a big deal for some. I am just about to start on docs for it. |
yes, @JamesDrummond add release notes please |
All of these are bug fixes in the workspace's edition screen. Rule 1: It is not possible to remove workspace's machine when there is only one machine configured in the workspace. Rule 2: There must be only one of the workspace's machine with the "ws-agent" active. @JamesDrummond + @bmicklea : I'll handle the release note on that. |
* CHE-3883: fix creating a custom stack - allow user to rename any machine - fix checking for machine name uniqueness Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * remove obsolete protractor tests Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * add protractor tests for stacks Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * code clean-up Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * CHE-3883: add ability to delete the dev machine - add ability to delete the dev machine - add label to mark the dev machine - fix karma tests - add protractro tests Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * CHE-3819: decrease label container width Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * fixes Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * add missing copyright headers Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
* CHE-3883: fix creating a custom stack - allow user to rename any machine - fix checking for machine name uniqueness Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * remove obsolete protractor tests Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * add protractor tests for stacks Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * code clean-up Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * CHE-3883: add ability to delete the dev machine - add ability to delete the dev machine - add label to mark the dev machine - fix karma tests - add protractro tests Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * CHE-3819: decrease label container width Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * fixes Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com> * add missing copyright headers Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
What does this PR do?
This PR fixes some problems faced by user when they creating a custom stack.
Label for dev machine:

Popups on removal the dev machine:
Machine details without background and more compact

What issues does this PR fix or reference?
#3819
#3883
codenvy/codenvy#1578
Changelog
[UD] fixed bugs when modifying machine definitions for custom stacks.
[UD] machine details uses available space more efficiently
Release Notes
n/a
Docs PR