hansen-m
(Matt Hansen)
September 17, 2024, 12:58pm
1
Can auto_accounts and auto_queues support default values? This would set the initial selected default value if it is in the user’s list and if it does not then use the first available value.
e.g.
attributes:
auto_accounts: “open”
auto_queues: “open”
Hey, sorry for the delay. Yes it seems like they could/should. I’ve created this ticket upstream for the same:
opened 02:40PM - 18 Oct 24 UTC
component/batch_connect
From discourse: https://discourse.openondemand.org/t/default-values-with-auto-ac… counts-and-auto-queues/3743
Someone's asking if `auto_queues` and `auto_accounts` can respond to defaults. I'm thinking the could.
Circling back to this now, they already do apparently. I’m just creating tests for the issue I’ve linked above.
Though the testing format I used was this, I’ll look into the format you have above as well.
attributes:
auto_qos:
value: geophys
auto_accounts:
value: pzs1118
auto_queues:
value: quick
Yes this format is for fixed values - users won’t be presented with any option but the app will submit with that value always.
attributes:
auto_accounts: “open”
auto_queues: “open”
So you’d want to use this format to present the option to the user.
attributes:
auto_accounts:
value: open
auto_queues:
value: open