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

Improve the schema command #546

Merged
merged 3 commits into from
Aug 22, 2019
Merged

Conversation

carolynvs
Copy link
Member

  • Add troubleshooting hook to porter schema

    When porter.json is present in PORTER_HOME, the porter schema command will return it, instead of generating a schema. This is intended to assist with troubleshooting VS Code. It will allow someone to tweak the schema without modifying porter or the mixins and quickly iterate inside of VS Code, and then we can update the Go code to match the desired schema later.

  • Make porter schema more robust

    • When an error occurs generating a schema, return the template so that we at least have the basic schema available at all times.
    • When an error occurs injecting a mixin, always skip and continue to the next, never error out so that an out of date mixin doesn't cause the entire command to fail.

Make it easier to install just the porter binaries or just the mixins.
This is useful when you are iterating on VS Code work and need to just
drop in the porter binaries without messing up which mixins are
installed.
When porter.json is present in PORTER_HOME, the porter schema command
will return it, instead of generating a schema. This is intended to
assist with troubleshooting VS Code. It will allow someone to tweak the
schema without modifying porter or the mixins and quickly iterate inside
of VS Code, and then we can update the Go code to match the desired
schema later.
* When an error occurs generating a schema, return the template so that
we at least have the basic schema available at all times.
* When an error occurs injecting a mixin, always skip and continue to
the next, never error out so that an out of date mixin doesn't cause the
entire command to fail.
@carolynvs carolynvs marked this pull request as ready for review August 22, 2019 20:03
@carolynvs carolynvs merged commit 2750112 into getporter:master Aug 22, 2019
@carolynvs carolynvs deleted the schema-robusto branch August 22, 2019 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants