GitHub user durlabhjain added a comment to the discussion: ID / Name label 
option for Native Filters

I've been able to get my local instance on 6.1.0 to have this option. 
https://github.com/Coolr-Group-Inc/superset-plugin-filter-value-label

After creating this plugin - based on the native SelectFilter, we had to make a 
few changes:

1. useFilterOperations.ts - add filter_value_label in ALLOW_DEPENDENCIES
2. 
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/getControlItemsMap.tsx
 - Add code to allow custom filters 
(https://github.com/Coolr-Group-Inc/superset-plugin-filter-value-label/blob/master/superset-isColumnSelect.patch)

Then we just registered the plugin and it works well. I'm not sure if 
development team will consider making filter plugins extensible by adding:

- Ability to register additional filters to ALLOW_DEPENDENCIES when a filter 
plugin is added
- Ability to have custom form items similar to the one we added in the plugin

Any feedback is welcome. I hope it helps others as well.

GitHub link: 
https://github.com/apache/superset/discussions/26084#discussioncomment-17226794

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to