datalad / datalad-gooey

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

EnsureMappings (plural) #311

Open mih opened 1 year ago

mih commented 1 year ago

Right now, each parameter has a constraint and validation etc requires countless loops over parameters to implement. Ultimately, however, all command parameters together can be viewed as a set of parameter names that map to their individual constraints. Such an EnsureMapping could provide a constraint for an entire command. Importantly, at this level a constraint could also implement rules for inter-parameter relationships (e.g. #289)

adswa commented 1 year ago

The respective TODO item in the linked datalad-next issue is ticked off since December 13th, implemented in https://github.com/mih/datalad-next/commit/f61f8c948390b7289b94f1549749a95cbac54aa5. However, I don't think it has been used in here or in #401