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

   <!-- Greeting -->
   Hi @Vance-Chen! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   This is a known limitation in Superset: event annotation layers on line 
charts do not always update in sync with filter changes. The main chart 
updates, but the annotation lines can remain stale until you manually refresh 
the chart or dashboard. This behavior is confirmed by other users and tracked 
in issues like [#9842](https://github.com/apache/superset/issues/9842).
   
   Technically, annotation queries are supposed to re-run with the latest 
filters when a chart refreshes, but because annotation fetching and chart data 
fetching are handled as separate asynchronous requests, they can get out of 
sync—especially if there are delays or state desynchronization. Recent 
improvements (see [PR #34383](https://github.com/apache/superset/pull/34383) 
and [PR #34709](https://github.com/apache/superset/pull/34709)) have made 
annotation synchronization more robust, but there is still no built-in 
guarantee that annotations will always update perfectly with every filter 
change.
   
   Workarounds include: manually refreshing the chart, or (if possible) 
including the annotation logic in your main chart query so that everything 
updates together. Also, check your cache settings, as aggressive caching can 
sometimes cause stale annotation data to persist. For now, minimizing reliance 
on dynamic annotation tables for critical visual cues is recommended until 
further improvements land.
   
   You can follow ongoing improvements in the Superset changelog and GitHub for 
future updates to annotation synchronization.
   
   
   <!-- 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/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/aea29a83-09e7-44f3-b850-c1d07760ba9d?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%20in%20Superset%3A%20event%20annotation%20layers%20on%20line%20charts%20do%20not%20always%20update%20in%20sync%20with%20filter%20changes.%20The%20main%20chart%20updates%2C%20but%20the%20annotation%20lines%20can%20remain%20stale%20until%20you%20manually%20refresh%20the%20chart%20or%20dashboard.%20This%20behavior%20is%20confirmed%20by%20other%20users%20and%20tracked%20in%20issues%20like%20%5B%239842%5D%28https%3A//github.com/apache/superset/issues/9842%29.%0A%0ATechnically%2C%20annotation%20queries%20are%20supposed%20to%20re-run%20with%20the%20latest%20filters%20when%20a%20chart%20refreshes%2C%20but%20because%20annotation%20fetching%20and%20chart%20data%20fetching%20are%20handled%20as%20separate%20asynchronous%20req
 
uests%2C%20they%20can%20get%20out%20of%20sync%E2%80%94especially%20if%20there%20are%20delays%20or%20state%20desynchronization.%20Recent%20improvements%20%28see%20%5BPR%20%2334383%5D%28https%3A//github.com/apache/superset/pull/34383%29%20and%20%5BPR%20%2334709%5D%28https%3A//github.com/apache/superset/pull/34709%29%29%20have%20made%20annotation%20synchronization%20more%20robust%2C%20but%20there%20is%20still%20no%20built-in%20guarantee%20that%20annotations%20will%20always%20update%20perfectly%20with%20every%20filter%20change.%0A%0AWorkarounds%20include%3A%20manually%20refreshing%20the%20chart%2C%20or%20%28if%20possible%29%20including%20the%20annotation%20logic%20in%20your%20main%20chart%20query%20so%20that%20everything%20updates%20together.%20Also%2C%20check%20your%20cache%20settings%2C%20as%20aggressive%20caching%20can%20sometimes%20cause%20stale%20annotation%20data%20to%20persist.%20For%20now%2C%20minimizing%20reliance%20on%20dynamic%20annotation%20tables%20for%20critical%20visual%2
 
0cues%20is%20recommended%20until%20further%20improvements%20land.%0A%0AYou%20can%20follow%20ongoing%20improvements%20in%20the%20Superset%20changelog%20and%20GitHub%20for%20future%20updates%20to%20annotation%20synchronization.)&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/36830)


-- 
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