-
Notifications
You must be signed in to change notification settings - Fork 59
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: Provide templated fields to cmdline only when requirements are met #629
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #629 +/- ##
==========================================
+ Coverage 76.58% 81.70% +5.12%
==========================================
Files 20 20
Lines 4390 4390
Branches 1263 0 -1263
==========================================
+ Hits 3362 3587 +225
+ Misses 830 803 -27
+ Partials 198 0 -198
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 13 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me. We should get a different failure if requires
are missing and the field is mandatory.
Is there any chance of documenting this? It would be nice to have a cookbook of specs showing how to achieve goals like conditional command line templates.
I think there is a wider discussion to be had on I have a feeling a more general form of
where the current form
I agree that a cookbook of specs would be welcome. We have a few ones in the test suite but they are pretty abstract. I think once the model for |
Types of changes
Summary
Issue #619 showed an example where a templated field can be provided in the generated command-line string,
despite being guarded by another boolean option via
requires
. This PR ensures that the helper function responsible for computing interpolated fields only consider templated fields for which all their required fields are set.Checklist
Closes #619