-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 enabled
for parent options
#11707
Conversation
a1bc90a
to
ee0d719
Compare
The |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
No docs to review
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.
Thanks!
@@ -183,7 +183,11 @@ def write_option(option, writer, indent='', start_list=False): | |||
multiple = option['multiple'] | |||
multiple_instances_defined = option.get('multiple_instances_defined') | |||
|
|||
writer.write(indent, option_name, ':', '\n') | |||
if not option_enabled(option): |
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.
shouldn't it be true
by default?
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.
It seems for the other non-nested options that if the option is not explicitly enabled
, it is commented out: options with a value
option and sections with an example
option
What does this PR do?
Fixes the
enabled
option for parent config options. Previously,enabled: false
was not getting taken into account.Motivation
Bug
Additional Notes
The
enabled
option value does not propagate to the nested options.enabled
would still need to be configured for the nested options, if applicable.Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached