-
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-2514 add import stack popup #3518
Conversation
} | ||
|
||
/** | ||
* Update imported stack if it valid. |
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.
Update imported stack if it is valid.
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.
done
* @param stack {che.IStack} | ||
* @returns {IValidation} | ||
*/ | ||
getStackValidation(stack: che.IStack | {}): IValidation { |
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.
Should this method be in separate service? I think it could be used not only for stack import.
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.
done
* @param workspaceConfig {che.IWorkspaceConfig} | ||
* @returns {IValidation} | ||
*/ | ||
getWorkspaceConfigValidation(workspaceConfig: che.IWorkspaceConfig): IValidation { |
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.
Same question for this method
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.
done
* @param environment {che.IWorkspaceEnvironment} | ||
* @returns {IValidation} | ||
*/ | ||
getEnvironmentValidation(environment: che.IWorkspaceEnvironment): IValidation { |
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.
Same question for this method
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.
done
* @param machine {che.IMachine} | ||
* @returns {IValidation} | ||
*/ | ||
getMachineValidation(machine: che.IMachine): IValidation { |
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.
Same question for this method
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.
done
* @param recipe {che.IRecipe} | ||
* @returns {IValidation} | ||
*/ | ||
getRecipeValidation(recipe: che.IRecipe): IValidation { |
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.
Same question for this method
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.
done
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1457/ |
Stevan: should Composefile be a single word to be consistent with Dockerfile? |
Yes agree, you are right. @OOleksii could you update please? |
@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" |
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.
Change button name, please.
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.
done
} else if (COMPOSE_FILE === recipe.type) { | ||
if (!/^services:\n/m.test(recipe.content)) { | ||
isValid = false; | ||
errors.push('The compose file is invalid.'); |
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.
then here too
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.
done
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1467/ |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1514/ |
Build # 1521 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1521/ to view the results. |
Signed-off-by: Oleksii Orel <oorel@codenvy.com>
Signed-off-by: Oleksii Orel <oorel@codenvy.com>
Build # 1559 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1559/ to view the results. |
CHE-2514 add import stack popup
Signed-off-by: Oleksii Orel oorel@codenvy.com
What does this PR do?
Add import stack popup.
#2514