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-2514 add import stack popup #3518

Merged
merged 2 commits into from
Jan 10, 2017
Merged

CHE-2514 add import stack popup #3518

merged 2 commits into from
Jan 10, 2017

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Dec 26, 2016

Signed-off-by: Oleksii Orel oorel@codenvy.com

What does this PR do?

Add import stack popup.

selection_009

#2514

}

/**
* Update imported stack if it valid.
Copy link
Contributor

Choose a reason for hiding this comment

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

Update imported stack if it is valid.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

* @param stack {che.IStack}
* @returns {IValidation}
*/
getStackValidation(stack: che.IStack | {}): IValidation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this method be in separate service? I think it could be used not only for stack import.

Copy link
Contributor Author

@olexii4 olexii4 Dec 27, 2016

Choose a reason for hiding this comment

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

done

* @param workspaceConfig {che.IWorkspaceConfig}
* @returns {IValidation}
*/
getWorkspaceConfigValidation(workspaceConfig: che.IWorkspaceConfig): IValidation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question for this method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

* @param environment {che.IWorkspaceEnvironment}
* @returns {IValidation}
*/
getEnvironmentValidation(environment: che.IWorkspaceEnvironment): IValidation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question for this method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

* @param machine {che.IMachine}
* @returns {IValidation}
*/
getMachineValidation(machine: che.IMachine): IValidation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question for this method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

* @param recipe {che.IRecipe}
* @returns {IValidation}
*/
getRecipeValidation(recipe: che.IRecipe): IValidation {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question for this method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codenvy-ci
Copy link

@TylerJewell
Copy link

Stevan: should Composefile be a single word to be consistent with Dockerfile?

@slemeur
Copy link
Contributor

slemeur commented Dec 26, 2016

Yes agree, you are right.

@OOleksii could you update please?

@slemeur
Copy link
Contributor

slemeur commented Dec 27, 2016

@olexii4 : Have you updated the label on the button?

<che-toggle ng-model="importStackController.recipeFormat" ng-change="importStackController.updateType()"
md-theme="default">
<che-toggle-button che-title="Dockerfile" che-value="{{importStackController.DOCKERFILE}}"></che-toggle-button>
<che-toggle-button che-title="Compose file"
Copy link
Contributor

Choose a reason for hiding this comment

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

Change button name, please.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

} else if (COMPOSE_FILE === recipe.type) {
if (!/^services:\n/m.test(recipe.content)) {
isValid = false;
errors.push('The compose file is invalid.');
Copy link
Contributor

Choose a reason for hiding this comment

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

then here too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@codenvy-ci
Copy link

@codenvy-ci
Copy link

@codenvy-ci
Copy link

Build # 1521 - FAILED

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

Oleksii Orel added 2 commits January 10, 2017 15:41
Signed-off-by: Oleksii Orel <oorel@codenvy.com>
Signed-off-by: Oleksii Orel <oorel@codenvy.com>
@codenvy-ci
Copy link

Build # 1559 - FAILED

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

@slemeur slemeur added kind/enhancement A feature request - must adhere to the feature request template. and removed status/pending-merge labels 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants