-
Notifications
You must be signed in to change notification settings - Fork 111
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
Decomplexify/document result-rendering switches #6174
Conversation
The full story is in datalad#6038 Concretely, this: - documents the 'disabled' renderer mode - strip supported for the undocumented datalad.api.result-renderer config setting - homogeneous documentation for `--output-format` and `result_renderer` - rename `default[_result_renderer]` to `generic[_result_renderer` to resolve the multi-level ambiguity of "default" for a renderer that, ironically, is not the default. Shims for legacy code are in place, and will likely never be removed - replace internal usage of `output_format` with a consistent `result_renderer` for homogeneity. Command line API is kept unchanged though -- might be worth a follow-up discussion in a separate issue/PR Fixes datalad#6038
Which exploited a side-effect of the specific implementation. The intended, and now documented usage is result_renderer=`disabled`.
Codecov Report
@@ Coverage Diff @@
## master #6174 +/- ##
===========================================
- Coverage 89.70% 42.52% -47.18%
===========================================
Files 318 317 -1
Lines 41896 41617 -279
===========================================
- Hits 37584 17699 -19885
- Misses 4312 23918 +19606
Continue to review full report at Codecov.
|
This is ready. Will merge EOB today, unless objections are expressed. |
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 objections. :)
The full story is in #6038
Concretely, this:
config setting
--output-format
andresult_renderer
default[_result_renderer]
togeneric[_result_renderer
toresolve the multi-level ambiguity of "default" for a renderer that,
ironically, is not the default. Shims for legacy code are in place,
and will likely never be removed
output_format
with a consistentresult_renderer
for homogeneity. Command line API is kept unchangedthough -- might be worth a follow-up discussion in a separate issue/PR
result_renderer=None
and replacesit with
result_renderer='disabled'
Fixes #6038