mnakao
(Masahiro Nakao)
July 18, 2022, 2:38pm
1
Hello all,
I use Dynamic Form Widgets function in ondemand-2.0.27 as following,
attributes:
node_type:
widget: select
options:
- [ ‘queue1’, ‘queue1’, data-max-bc-num-hours: 3, data-max-num-cores: 3 ]
- [ ‘queue2’, ‘queue2’, data-max-bc-num-hours: 1, data-max-num-cores: 1 ]
bc_num_hours:
widget: “number_field”
value: 1
min: 1
max: 3
num_cores:
widget: “number_field”
value: 1
min: 1
max: 3
form:
node_type
bc_num_hours
num_cores
Even though the maximum bc-num-hours in queue2 is set to 1, I can select up to 3 in the form. There is no problem with num-cores.
Also, when I deleted one of the two data-max-XXX in the node_type options, it worked as expected.
Maybe I can’t set two data-max-XXX in the node_type options ?
Apologies, I think you’re hitting this bug where mins and maxes only work for 1 thing.
opened 01:28PM - 05 Jul 22 UTC
bug
for review
If I had something like this, where I wanted to toggle the max `memory` and `nod… es` (to other fields from this one), it doesn't currently work, only changing `memory`. Which is to say, we can't change 2 things at once, at least for the min & max handlers.
```
options:
- [
"Compute", "compute"
]
- [
"Debug", "debug",
data-max-memory: 200,
data-max-nodes: 3,
]
```
┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1201735133575781/1202553806524164) by [Unito](https://www.unito.io)
1 Like
system
(system)
Closed
January 15, 2023, 4:41pm
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.