🔢 UI param: preserve array selection order #46475
Unanswered
maxcorbeau
asked this question in
Ideas
Replies: 2 comments 1 reply
-
UI for airflow 3 is being completely rewritten. I suggest you check how it works there (you can follow contributing guidelines and check out main version) - and if you want to contribute there - feel free. But the old UI in Airflow 2 is not likely to get any fixes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @potiuk for the quick reply: understood & makes sense. Where is "there" in "if you want to contribute there" ? My understanding is that it will still be on https://github.com/apache/airflow but under v3 branches correct? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🔢 UI param: preserve array selection order
array
type which provides a combobox on the UIarray
param so selection order is preservedarray
param can be used to define orders of priorities/preferences in data pipelines (ex: pick this data/model if available, else this one, else ...)🧪 Contribution
Happy to submit PR, I first want to assess if there is interest from community to see this through
🔎 Current behaviour
examples
list, thus making it impossible to use thearray
param to define priorities/preferences📜 Steps to reproduce
With select2
California
=> placed 1st, because only selected optionAlaska
=> placed 1st replacing California, because Alaska is defined before California in optionsHawai
=> placed 2nd replacing California, because Hawai defined before California in optionsAlaska, Hawai, California
as per options and notCalifornia, Alaska, Hawai
as per selectionWith Airflow
You can play around with the below dag's config UI, if you select multiple options, no matter in which order, they will always be reordered to match order of
COMBOBOX_FIELDS
Beta Was this translation helpful? Give feedback.
All reactions