cccs-jc opened a new issue #13551: URL: https://github.com/apache/superset/issues/13551
We use Superset in the context of Security information and event management (SIEM). Our data often include IP values which users want to filter by adhoc IP ranges (using CIDR notation). For example when the user inputs a filter value of `192.168.0.0/24` this filter is converted into a range query on the server side. We leverage superset's SQL_QUERY_MUTATOR to convert the IP range filter from an SQL statement like `WHERE IP IN '192.168.0.0/24'` to ((IP >= 3232235520) AND (IP<= 3232235775)) The IP column is number for performance reasons. This works quite well however there is no validation of the text provided by the user. Ideally we would like to validate the input in the client a bit like is done in the explorer UI. It's possible to validate inputs in the chart explore UI since the viz populates the control panel and is free to customize the input control. However there is no way to specify a validator in the dashboard native filter. There could be a registry of validator functions that the dashboard native filter would allow you to choose from when creating native filters. Is this a feature being developed? Are there alternatives? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
