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(core): do not validate pipeline configs before initialization #7003

Merged
merged 2 commits into from
May 15, 2019
Merged

fix(core): do not validate pipeline configs before initialization #7003

merged 2 commits into from
May 15, 2019

Conversation

anotherchrisberry
Copy link
Contributor

The validate method gets called immediately, so all the pipeline configs on an existing project (when editing) appear with a red outline.

Minor refactor to prevent validation until the pipeline configs are all initialized.

I'm sure there's an RxJS way to do this, too.

Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

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

💯

@anotherchrisberry
Copy link
Contributor Author

@maggieneterval I ended up doing a little more refactoring - there was some dead code now that the initialization logic has been moved down to the Pipelines component.

@maggieneterval
Copy link
Contributor

@anotherchrisberry still 💯, thank you!

@anotherchrisberry anotherchrisberry merged commit cfb2a51 into spinnaker:master May 15, 2019
@anotherchrisberry anotherchrisberry deleted the pp-fix branch May 15, 2019 20:48
anotherchrisberry added a commit that referenced this pull request May 15, 2019
cfb2a51 fix(core): do not validate pipeline configs before initialization (#7003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants