Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task-util-config: it should be possible to set a default value for a parameter that depends only on the current parameter #61

Closed
dcremonini opened this issue Sep 21, 2024 · 0 comments · Fixed by apache/openserverless-task#46
Assignees
Labels
enhancement New feature or request

Comments

@dcremonini
Copy link
Contributor

  • Kind of request: feature request

Problem

Currently the wizard doesn't allow the developer to specify the default value for a single item.
The implementation of this feature should affect all the types:

  • string
  • int
  • float
  • bool

Impact

100% of users that will install the ops

Priority

high

Suggested solution:

"OPERATOR_COMPONENT_REDIS": {
  "type": "bool",
  "default": "true"
},
"RAMGB": {
  "type": "int",
  "default": "24"
},
"SERVICENAME": {
  "type": "string",
  "default": "monitoring"
},
"GRAVITYACCELERATION": {
  "type": "float",
  "default": "9.81"
}

to show on the screen

shows on the screen something like:

OPERATOR_COMPONENT_REDIS
True (*)
False

RAMGB
24 (the value should be editable)

SERVICENAME
monitoring (the value should be editable)

GRAVITYACCELERATION
9.81  (the value should be editable)

Please note that this feature request doesn't suggest if/how specify a format for data entry of float number (for example #.## for a float having two decimals).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants