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 applyTo check for outputs in porter explain #1668

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

carolynvs
Copy link
Member

What does this change

I have consolidated the logic for checking if a scoped item: parameter, credential or output, should be included in the output of explain to avoid errors when duplicating the logic for each one.

There was also a copy/paste of the appliesTo logic for ParameterDefinition (our def of a parameter in the porter manifest) that
I updated to implement Scoped so that we can hopefully avoid more problems with this type of check.

What issue does it fix

Closes #1667

Notes for the reviewer

N/A

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

I have consolidated the logic for checking if a scoped item: parameter,
credential or output, should be included in the output of explain to
avoid errors when duplicating the logic for each one.

There was also a copy/paste of the appliesTo logic for
ParameterDefinition (our def of a parameter in the porter manifest) that
I updated to implement Scoped so that we can hopefully avoid more
problems with this type of check.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs force-pushed the fix-explain-outputs branch from c28213b to a2837ed Compare July 12, 2021 17:45
@carolynvs carolynvs marked this pull request as ready for review July 12, 2021 17:58
Copy link
Member

@vdice vdice left a comment

Choose a reason for hiding this comment

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

LGTM

@carolynvs carolynvs merged commit 3d6d0f7 into getporter:main Jul 12, 2021
@carolynvs carolynvs deleted the fix-explain-outputs branch July 12, 2021 19:55
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.

porter explain not showing bundle outputs with applyTo array
2 participants