Task-util-config: it should be possible to set a default value for a parameter that depends on one or more parameters different from current value #62
Labels
enhancement
New feature or request
Problem
Currently the wizard doesn't allow the developer to specify the default value for a single item based on values of other parameters.
Example 1
The minimum amount of RAM to allocate depends on the chosen services.
Example 2
A string might need to be the concatenation of names previously input.
The implementation of this feature should affect all the types:
Impact
100% of users that will install the ops would find much easier to install Open Serverless.
Priority
low
Suggested solution for the example 1:
and somewhere else (I show some pseudocode, it might be Typescript):
If the function specified in "default-function" doesn't return a suitable value (e.g. NaN), a default value can be considered (see #61)
With
POSTGRESENABLED not enabled
and
MINIOENABLED not enabled the calcMinRam function wouldn't return a suitable value so the value 14 should be considered (see example below):
Alternative solution
The implementation of this feature request might be overly complex.
Alternative solution: an explanation in the label might be enough.
The text was updated successfully, but these errors were encountered: