You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "martin-raymond (via GitHub)" <gi...@apache.org> on 2026/08/11 19:06:15 UTC

Re: [PR] fix(dashboard): Clear All filters now stages changes until Apply [superset]

martin-raymond commented on PR #39778:
URL: https://github.com/apache/superset/pull/39778#issuecomment-5257619066

   Hi! We hit the bug this PR fixes while testing an upgrade from Superset 5.0.0 to 6.1.0, and we'd like to request a backport to the `6.2` branch, which as of today does not include this change (the `dispatch(updateDataMask(...))` immediate-apply path is still present in `FilterBar/index.tsx` on that branch, and `clear-all-filters.spec.ts` is absent).
   
   Context from our testing (same dashboard and data on two side-by-side environments, 5.0.0 vs 6.1.0):
   
   - Our dashboard has a required time filter (`enableEmptyFilter: true`, default "Last month") driving 28 of 33 charts, on an Apache Pinot backend.
   - On **6.1.0**, clicking "Clear All" clears the required time filter to "No filter" **and applies it immediately** (the Apply button is already disabled after the click). Charts then re-query with no time bounds: two charts fail with HTTP 400 (`SQLParsingError: org.apache.pinot.sql.parsers.SqlCompilationException` — the "last day of period" expression can't be built without an upper bound), and a big-number KPI silently displays a wrong value (0.0%) with no error indicator.
   - On **5.0.0**, the same click only changes the filter label; nothing is applied, no errors.
   
   So on 6.1.x this is a one-click path for end users to get silently wrong numbers on dashboards with required time filters. #37681 (included in 6.1.0) does not cover this case — we reproduced on 6.1.0. Related history: #33361, #36876, #37069.
   
   The stage-until-Apply behavior plus the `validateStatus: 'error'` on required filters in this PR fixes exactly this. Any chance it could be labeled for 6.2 (and possibly a 6.1.x patch)? Happy to provide more repro details if useful.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org