villebro opened a new pull request #16460: URL: https://github.com/apache/superset/pull/16460
### SUMMARY During migration of the Value filter to the new Select component, support for non-string based filter values (`number`, `boolean` and `null`) stopped working correctly. This fixes that Known limitations: Even with this fix `null` values won't be supported in single select mode. This is due to how the native filter framework interprets the special case of a filter value being unset when the value is `null` (in the "multiple select" mode the filter value is `[null]` which is interpreted as being set). We have a potential fix for this, but it will require a slightly bigger refactor to be fully supported. TODO: update type declarations on `superset-ui` to get rid of the `@ts-ignore`s. Dashboard with filters unset:  ### AFTER  The query is now correctly issuing an `IS NULL` where clause:  Now the values are also formatted correctly  ### BEFORE Notice how `null` is interpreted as `false`:  Same in the query:  ### TESTING INSTRUCTIONS <!--- Required! What steps can be taken to manually verify the changes? --> ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
