datalad / datalad-gooey

A graphical user interface for DataLad (datalad.org)
https://docs.datalad.org/projects/gooey
Other
4 stars 6 forks source link

`AlternativeParamWidget` for parameters with `AltConstraints` #286

Closed mih closed 1 year ago

mih commented 1 year ago

Replaces https://github.com/datalad/datalad-gooey/pull/135

This became a monster PR, because of the dire situation the validator use was in before.

It is not perfect now, but better. See the commit messages for a winding storyline.

Closes datalad/datalad-gooey#61 Closes datalad/datalad-gooey#90

codecov-commenter commented 1 year ago

Codecov Report

Base: 66.02% // Head: 67.08% // Increases project coverage by +1.06% :tada:

Coverage data is based on head (aa910e3) compared to base (a812794). Patch coverage: 73.29% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #286 +/- ## ========================================== + Coverage 66.02% 67.08% +1.06% ========================================== Files 39 42 +3 Lines 2269 2446 +177 ========================================== + Hits 1498 1641 +143 - Misses 771 805 +34 ``` | [Impacted Files](https://codecov.io/gh/datalad/datalad-gooey/pull/286?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad) | Coverage Δ | | |---|---|---| | [datalad\_gooey/simplified\_api.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9zaW1wbGlmaWVkX2FwaS5weQ==) | `100.00% <ø> (ø)` | | | [datalad\_gooey/param\_form\_utils.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV9mb3JtX3V0aWxzLnB5) | `82.40% <54.54%> (-4.47%)` | :arrow_down: | | [datalad\_gooey/param\_path\_widget.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV9wYXRoX3dpZGdldC5weQ==) | `56.86% <56.86%> (ø)` | | | [datalad\_gooey/constraints.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9jb25zdHJhaW50cy5weQ==) | `62.68% <60.60%> (+2.68%)` | :arrow_up: | | [datalad\_gooey/param\_mixin.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV9taXhpbi5weQ==) | `76.81% <76.81%> (ø)` | | | [datalad\_gooey/param\_multival\_widget.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV9tdWx0aXZhbF93aWRnZXQucHk=) | `77.37% <84.61%> (+0.57%)` | :arrow_up: | | [datalad\_gooey/param\_alt\_widget.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV9hbHRfd2lkZ2V0LnB5) | `87.87% <87.87%> (ø)` | | | [datalad\_gooey/param\_widgets.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9wYXJhbV93aWRnZXRzLnB5) | `56.38% <88.23%> (-0.95%)` | :arrow_down: | | [datalad\_gooey/tests/test\_param\_widget.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS90ZXN0cy90ZXN0X3BhcmFtX3dpZGdldC5weQ==) | `100.00% <100.00%> (ø)` | | | [datalad\_gooey/dataladcmd\_exec.py](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9nb29leS9kYXRhbGFkY21kX2V4ZWMucHk=) | `83.01% <0.00%> (-2.84%)` | :arrow_down: | | ... and [3 more](https://codecov.io/gh/datalad/datalad-gooey/pull/286/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.