[Feature] Preserve order of selected options for mutli select variables
See original GitHub issueIs your feature request related to a problem? Please describe. When using a multi select the order the options are selected are not reflected when outputting the variable. E.g. you use a multi select variable in the request body, the first selected option will be the first value in the request body and the second selected option will be the second value.
Describe the solution you’d like What I want: When I select the second option first and then the first option, then the second value should be first and the first value should be second.
Solutions: Either add an option to the variable settings to preserve the order when outputting or just change the default behaviour. The order the options are selected should be reflected in the output.
Describe alternatives you’ve considered I haven’t found any.
Additional context
I am using HTTP-Shortcuts to remote control a vacuum cleaner using Valetudo. There is a REST endpoint to clean multiple rooms/segments. The request body looks like this: {"action":"start_segment_action","segment_ids":[{roomIDs}],"iterations":1,"customOrder":true}
When I select room/segment “A” first, I would like it be cleaned first. Etc.
Would that be possible to implement?
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Closing this now as 2.23.0 has been released.
No, creating a new release or beta version is a separately kicked-off process. I create new versions whenever there’s a sufficiently large and/or stable set of changes.