apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.33k stars 13.69k forks source link

Some kind of bug with filters. #30547

Open FFPavlik opened 1 week ago

FFPavlik commented 1 week ago

Bug description

Hello! I caught some bug with the filters. Previously, everything worked well, but from a certain point the filters began to behave incorrectly when opening a report, and the entire report froze. The problem was solved by resetting the filters, but in order to reset them I had to spend a lot of time going into the filter settings and changing them before the report froze

Screenshots/recordings

h

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

dosubot[bot] commented 1 week ago

To address the issue with filters causing reports to freeze, consider the following steps:

  1. Check Recent Changes: Review any recent changes or updates in the Superset codebase that might affect filter functionality. There have been recent updates related to filters, such as cross filters and native filter configurations [1].

  2. State Management: Ensure that the filter state management is functioning correctly. Superset uses hooks like useFilters and useNativeFiltersDataMask to manage filter states. Verify that these are not causing conflicts or errors [2].

  3. Asynchronous Updates: Check how asynchronous updates to filters are handled. Ensure that the component is correctly managing loading states and handling data updates without causing freezes [3].

  4. Error Handling: Look into any error logs or console messages that might provide more insight into what is causing the freeze. This can help identify if there are specific errors related to filter rendering or data fetching.

  5. Resetting Filters: If resetting filters resolves the issue, consider implementing a more accessible way to reset filters without going into settings, possibly through a UI button or shortcut.

If these steps don't resolve the issue, further investigation into the specific configurations and interactions in your setup might be necessary.

To continue talking to Dosu, mention @dosu.

sfirke commented 1 week ago

Hi @FFPavlik - I appreciate the bug report but right now this does not provide enough information to be actionable. Could you at the very least retitle it to more specifically describe the problem? The ideal would be if you can provide steps to reproduce the problem, or at least a video showing what you are talking about.