-
- Downloads
Field Filter Value Normalization in Embedding Endpoints (#45447)
* Field Filter Value Normalization in Embedding Endpoints Fixes 27643 Since we use query-params to pass paramter values, we have to normalize the parameter map values. This PR is a WIP, as I'm trying to find a way to do this hollistically/properly. First commit here is mostly as a marker for where to start working on this properly, as I think the json parsing won't catch all cases, nor should the normalization happen without some attempt to use a schema to properly validate, maybe even coerce things. * read strings if boolean or numbers, replace blank str with nil Also update the common dashboard param values fn to use embedding params from the URL blob if the app db doesn't have embedding params. This happens upon first preview where nothing will have been written to the Appdb yet. * Add query-param normalization test, add related embedding test * schema didn't work in this case after all. Worth a shot, but don't want this to block the PR, so reverting to the previous schema * Add comment pointing out the downsides/reasons for this solution It's nto a perfect solution, but it's probably the best we can get at the moment, without adding a new filter type (boolean) and/or improving the design of hte embedding endpoints and how filters/parameters work
Please register or sign in to comment