Closed mih closed 1 year ago
Base: 65.90% // Head: 65.97% // Increases project coverage by +0.06%
:tada:
Coverage data is based on head (
d02536a
) compared to base (169f33c
). Patch coverage: 48.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This implements and demos an idea from https://github.com/datalad/datalad/issues/7054
With this change, a
Constraint
can implement afor_dataset()
method that return an instance of another constraint (same or different type), tailored for a particular dataset instance.This feature is demo'ed for
EnsureDatasetSiblingName
, which isEnsureStr
without a dataset context, but generated anEnsureChoice
with the names of the siblings of a particular dataset.EnsureDatasetSiblingName
is then used inSiblingChoiceParamWidget
, which enables to move and re-use the sibling discovery to/from the constraint, rather than making the Qt-specific code longer.