Open bmingles opened 3 weeks ago
In dh ui, we currently serialize Python dictionaries dropping None values https://github.com/deephaven/deephaven-plugins/blob/6977a33e61220edc3dbf4a47149b0ce9e96a3b29/plugins/ui/src/deephaven/ui/_internal/utils.py#L105
None
This is fine in many cases, but there are others where we need to differentiate null vs undefined values (e.g. selected_key in Picker and ComboBox components).
null
undefined
selected_key
A way we could address this:
UNDEFINED
selected_key=UNDEFINED
dict_to_camel_case
In dh ui, we currently serialize Python dictionaries dropping
None
values https://github.com/deephaven/deephaven-plugins/blob/6977a33e61220edc3dbf4a47149b0ce9e96a3b29/plugins/ui/src/deephaven/ui/_internal/utils.py#L105This is fine in many cases, but there are others where we need to differentiate
null
vsundefined
values (e.g.selected_key
in Picker and ComboBox components).A way we could address this:
UNDEFINED
selected_key=UNDEFINED
)dict_to_camel_case
dropUNDEFINED
values but keepNone
values asnull