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

fix(ecs): Disable artifact selection outside of pipelines #7170

Conversation

allisaurus
Copy link
Contributor

Disables artifact selection when creating an ECS server group outside of a pipeline (since pipeline "expected artifacts" are needed for them to work).

New UI msg

artifacts_disabled_msg

Copy link
Contributor

@anotherchrisberry anotherchrisberry left a comment

Choose a reason for hiding this comment

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

Both suggestions are super minor - LGTM otherwise!

id="taskDefinitionSourceArtifact"
/>
Artifact
</label>
</div>
</div>
<div ng-if="command.viewState.mode == 'create'" style="color:#666;">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div ng-if="command.viewState.mode == 'create'" style="color:#666;">
<div ng-if="command.viewState.mode === 'create'" class="color-text-caption">

The === is super minor; the color selection via CSS class is based off the style guide (accessible when running locally via http://localhost:9000/#/styleguide#psg-link-0).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes perfect sense! Will update.

@@ -24,12 +24,17 @@
type="radio"
ng-model="command.useTaskDefinitionArtifact"
ng-value="true"
ng-disabled="command.viewState.mode == 'create'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ng-disabled="command.viewState.mode == 'create'"
ng-disabled="command.viewState.mode === 'create'"

@anotherchrisberry anotherchrisberry merged commit ea730f4 into spinnaker:master Jul 2, 2019
christopherthielen added a commit to christopherthielen/deck that referenced this pull request Jul 3, 2019
ea730f4 fix(ecs): Disable artifact selection outside of pipelines (spinnaker#7170)
58b9867 fix(ecs): Set viewState.mode when creating server group for pipeline (spinnaker#7169)
5401a87 feat(esc): Add support for task definition artifacts (spinnaker#7162)
1532db4 fix(ecs): add missing context images when building new server group for pipeline (spinnaker#7123)
cdd6f23 chore(package): Just Update Prettier™
christopherthielen added a commit that referenced this pull request Jul 3, 2019
ea730f4 fix(ecs): Disable artifact selection outside of pipelines (#7170)
58b9867 fix(ecs): Set viewState.mode when creating server group for pipeline (#7169)
5401a87 feat(esc): Add support for task definition artifacts (#7162)
1532db4 fix(ecs): add missing context images when building new server group for pipeline (#7123)
cdd6f23 chore(package): Just Update Prettier™
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants