-
- Downloads
Bugfix 37914 wrong filters UI in embedding (#41342) (#41386)
* Keep Filter Values for enabled Parameters in Embedding
Fixes: #37914
Previously, we removed locked parameters entirely. This is to prevent leaking potentially sensitive values.
However, for the situation where the same field backs 1 locked or disabled paramter and 1 enabled parameter, we do
still want to send the paramater values, because the enabled parameter implies that the values are permissible to see
in the embed.
So, this change will still remove parameters based on their 'disabled/locked/enabled' status, but will NOT remove the
linked field ids if they're also being used by 'enabled' parameters.
This results in the backend correctly sending necessary parameter values to the embed, where the frontend can then
render the appropriate UI instead of falling back to just text filters.
* test the case where a locked and enabled param share same field
* Address feedback. Added comment to explain classify fn
Co-authored-by:
adam-james <21064735+adam-james-v@users.noreply.github.com>
Please register or sign in to comment