Closed nicolst closed 3 months ago
I prefer to keep the same structure to avoid migration of all charts.
I like this proposal. It's simple enough it adresses a valid usecase and the first option is retrocompatible
I like this proposal. It's simple enough it adresses a valid usecase and the first option is retrocompatible
Very nice, @garronej!
Any idea when we could get this in Onyxia? It's a bit of a blocker for us for our grand plan on going into production this summer. <3
Hey @trygu,
I'm shipping this today
Hey @trygu, I'm shipping this today
Did I mention that we love you? ❤️
Sorry I wasn't able to do it today but tomorrow for sure!
It's done. Allow me a couple of hours to test hedge cases and document the feature and I'll ship
@nicolst @trygu It's released! :)
https://docs.onyxia.sh/admin-doc/catalog-of-services#x-onyxia-overwritelistenumwith
i reopen it as onyxia-api does not handle the new field
Oh gosh I forgot that the values are not forwareded as it by the API. Good catch!
This is released
Background
Currently we have the option to override a field's default value using
.x-onyxia.overwriteDefaultWith
:As well as an option to specify which region's config to use for slider values. This is very useful, but in some cases a bit lacking.
Proposal
In some cases it could be useful to override/populate other properties of a field as well. For example, we would like to have a drop-down choice which is populated with a user's groups, which is included as a claim in their ID token:
In this case, we want to override both the default value (to say, the first group in the user's list of groups), and the
listEnum
property. Two examples of how this could look:Following the current naming scheme
More general and extendable structure?