cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

Create new Boutiques support module BoutiquesInputValueFixer

Open prioux opened this issue 3 years ago • 3 comments

Using the new support for modules in the new Boutiques integrator (#1181), I'd like a new module that fixes an input to a particular value.

The input would no longer be shown to the user in the form.

In the descriptor, the spec would look like:

"custom": {
  "cbrain:integrator_modules": {
    "BoutiquesInputValueFixer": {
      "inputid1": "somevalue",
      "inputid2": 2345
    }
  }
}

prioux avatar Dec 09 '21 18:12 prioux

The PR that will implement this will have only 2 new files (one of them a symlink) and should consist in about 20 lines of code, total (rough estimate).

See #1181 for examples.

prioux avatar Dec 09 '21 18:12 prioux

@prioux what about the input-value dependency (disables and requires and such), group validation , should those be adjusted (might need more than 20 lines of code) or dropped?

MontrealSergiy avatar Jun 10 '22 17:06 MontrealSergiy

No, don't make any adjustments. We only want to bare functionality I describe here.

We expect a programmer who use the module will do it responsibly and not choose an input that has other interfering rules applied to it.

prioux avatar Jun 10 '22 17:06 prioux