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(triggers): do not allow manual definition of docker image in trigger #7561

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

maggieneterval
Copy link
Contributor

Closes spinnaker/spinnaker#4929

Disallows manual entry of a Docker image when configuring a trigger.

Copy link
Contributor

@louisjimenez louisjimenez left a comment

Choose a reason for hiding this comment

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

💯

@maggieneterval maggieneterval merged commit 17232e6 into spinnaker:master Oct 24, 2019
@maggieneterval maggieneterval deleted the docker-imageId-fix branch October 24, 2019 20:51
@@ -447,7 +450,7 @@ export class DockerImageAndTagSelector extends React.Component<
<span className="field">
<Select
value={defineManually}
disabled={imagesLoading}
disabled={imagesLoading || !allowManualDefinition}
Copy link
Member

Choose a reason for hiding this comment

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

thoughts on just removing this select field entirely when manual entry is disabled?

Copy link
Member

Choose a reason for hiding this comment

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

i guess we'd have to figure out what the visual treatment would look like since it lives in that grey header thing...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, removing the select field entirely was my initial thought as well, followed by the realization that it lives in that header thing and that we'd probably want to convert this entire component to use the formik form fields at some point anyway so might not be worth handling the visual treatment now? But if you think it looks really weird with the select field disabled let me know!

Copy link
Member

Choose a reason for hiding this comment

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

I think you did the right thing — we just didn't account for wanting to omit this selection entirely when it was originally designed. You took this journey of discovery a little before me but now we've all ended up at the same place 🤣

christopherthielen added a commit to christopherthielen/deck that referenced this pull request Oct 28, 2019
17232e6 fix(triggers): do not allow manual definition of docker image in trigger (spinnaker#7561)
christopherthielen added a commit that referenced this pull request Oct 28, 2019
17232e6 fix(triggers): do not allow manual definition of docker image in trigger (#7561)
Jammy-Louie pushed a commit to pivotal/deck that referenced this pull request Nov 8, 2019
17232e6 fix(triggers): do not allow manual definition of docker image in trigger (spinnaker#7561)
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
17232e6 fix(triggers): do not allow manual definition of docker image in trigger (spinnaker#7561)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants