dosubot[bot] commented on issue #35583:
URL: https://github.com/apache/superset/issues/35583#issuecomment-3386303613

   <!-- Greeting -->
   Hi @ralessandro-mox! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the superset team.
   
   <!-- Answer -->
   This error is likely caused by a recent frontend change where the JavaScript 
Set.prototype.difference method is used on data that is sometimes still an 
Array, not a Set. This can happen after upgrading from 4.0.0 to 5.0.0 if 
dashboard filter state or similar objects were serialized as Arrays in v4.x and 
are now expected to be Sets in v5.x. The main place this occurs is in the 
dashboard/util/getActiveFilters.ts file, and it can break dashboard rendering 
or cause UI loops if the data structure is not as expected.
   
   There are no official upgrade or migration notes documenting this specific 
issue, and no direct bug reports or discussions about it. However, the 
changelog does mention a change in how "difference" is used in legacy charts, 
which aligns with this error pattern 
[cite](https://github.com/apache/superset/blob/master/superset-frontend/CHANGELOG.md).
   
   To work around this, you can try clearing or recreating affected dashboards, 
or manually ensuring that any persisted dashboard/filter state in your metadata 
database is migrated to use Sets (or objects compatible with 
Set.prototype.difference). If you are able to patch the frontend code, you 
could add a check to convert arrays to sets before calling .difference. If the 
issue persists, consider testing with a newer Superset version, as related bugs 
have been fixed in later releases.
   
   Let me know if you need more detailed steps for a workaround or patch.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/5114df6e-47fd-4cad-9c38-56ac46b3be6f?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35583)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to