Skip to content

Enable customization of Constraint descriptions, standardize access #294

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

Merged
merged 2 commits into from
Mar 7, 2023

Conversation

mih
Copy link
Member

@mih mih commented Mar 7, 2023

See the individual commit descriptions for details

Closes #267
Closes #286

mih added 2 commits March 7, 2023 07:21
These replace `short_description()` and `long_description()`.

IMHO properties are a better fit for the task. The prefix `input_`
communicates better *what* is being described.

For now the default implementation merely calls
`short/long_description()`.

Closes datalad#286
This is the main approach to tailor to self-description of a constraint
to a non-standard, unforseen, or simply unsupported use case.

It wraps any other constraint and provides the documentation it has been
parameterized with, instead of the original ones. A full replacement.

For tailoring wrapped constraints to a dataset-scope, a dedicated set
of documentation overrides with the tailored constraint can be given
in addition.

Closes datalad#267
@mih mih merged commit eee9c7a into datalad:main Mar 7, 2023
@mih mih deleted the bf-286 branch March 7, 2023 10:46
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.

Rename Constraint doc accessors Allow for Constraint documentation override
1 participant