Apache Superset: how to customize native filters in an URL?

Viewed 16

I wish to create customized URL opening a superset dashboard with filters customized for different users. Typically, I have a column 'city' and I want to have several URLs: 1 for user interested by the city of Austin, other for user interested by New York, etc... I've created a Native Filter in the dashboard. But I fail to create the specific URL.

I tried to apply the answers provided here (URL filter parameters in Apache Superset dashboards and https://www.blef.fr/superset-filters-in-url/ ) but everytime I tried the URl, it opens the native one without changing the filters.

Superset version: 2.0.0

Examples: The URL of my dashboard is localhost:8088/superset/dashboard/55/?native_filters_key=QhV7Icb0SBVQJGUqMqA78qk3R76TQd76-Bxv3x_4KxNVIF0Y6IXTlnqIrXxHtpRu

Applying https://www.blef.fr/superset-filters-in-url/, I enter in my browser this new URL: localhost:8088/superset/dashboard/55/?native_filters=(NATIVE_FILTER-PQwd_qYqN-:(__cache:(label:'Austin',validateStatus:!f,validateMessage:!f,value:!('Austin')), extraFormData:(filters:!((col:'city',op:IN,val:!('Austin')))), filterState:(label:'Austin',validateStatus:!f,validateMessage:!f,value:!('Austin')),id:NATIVE_FILTER-PQwd_qYqN-,ownState:()))

But it opens only localhost:8088/superset/dashboard/55/?native_filters_key=QhV7Icb0SBVQJGUqMqA78qk3R76TQd76-Bxv3x_4KxNVIF0Y6IXTlnqIrXxHtpRu

I checked the syntax but I didn't find my mistake... Any Idea?

0 Answers
Related