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

   <!-- Greeting -->
   Hi @TopherLX! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   The "Override time range", "Override time grain", "Time Shift", and "Title 
Column" options in Time Series Annotations are not functional in Superset 
6.0.0. These options are present in the UI but are not wired to the backend or 
frontend logic, so they have no effect on annotation behavior. This is 
confirmed by the codebase, which only supports basic annotation metadata 
(timestamps, description, JSON metadata) and does not implement these override 
features or the Title Column selection logic. Recent frontend updates improved 
the annotation editor UI but did not address these options’ functionality.
   
   If you need dynamic or filtered annotation behavior, a common workaround is 
to calculate the desired metric (like an average or reference line) in your SQL 
query or dataset and add it as a separate metric or series in your chart. This 
approach ensures the reference updates automatically with your data. There is 
currently no built-in way to link annotation layers to dynamic aggregates or to 
have annotation layers automatically update with dashboard filters or time 
shifts ([source](https://github.com/apache/superset/issues/35856), 
[source](https://github.com/apache/superset/issues/9842)).
   
   
   <!-- 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/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/bfc9388b-6341-47b5-869c-54041dd302ae?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=The%20%22Override%20time%20range%22%2C%20%22Override%20time%20grain%22%2C%20%22Time%20Shift%22%2C%20and%20%22Title%20Column%22%20options%20in%20Time%20Series%20Annotations%20are%20not%20functional%20in%20Superset%206.0.0.%20These%20options%20are%20present%20in%20the%20UI%20but%20are%20not%20wired%20to%20the%20backend%20or%20frontend%20logic%2C%20so%20they%20have%20no%20effect%20on%20annotation%20behavior.%20This%20is%20confirmed%20by%20the%20codebase%2C%20which%20only%20supports%20basic%20annotation%20metadata%20%28timestamps%2C%20description%2C%20JSON%20metadata%29%20and%20does%20not%20implement%20these%20override%20features%20or%20the%20Title%20Column%20selection%20logic.%20Recent%20frontend%20updates%20improved%20the%20annotation%20editor%20UI%2
 
0but%20did%20not%20address%20these%20options%E2%80%99%20functionality.%0A%0AIf%20you%20need%20dynamic%20or%20filtered%20annotation%20behavior%2C%20a%20common%20workaround%20is%20to%20calculate%20the%20desired%20metric%20%28like%20an%20average%20or%20reference%20line%29%20in%20your%20SQL%20query%20or%20dataset%20and%20add%20it%20as%20a%20separate%20metric%20or%20series%20in%20your%20chart.%20This%20approach%20ensures%20the%20reference%20updates%20automatically%20with%20your%20data.%20There%20is%20currently%20no%20built-in%20way%20to%20link%20annotation%20layers%20to%20dynamic%20aggregates%20or%20to%20have%20annotation%20layers%20automatically%20update%20with%20dashboard%20filters%20or%20time%20shifts%C2%A0%28%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35856%29%2C%C2%A0%5Bsource%5D%28https%3A//github.com/apache/superset/issues/9842%29%29.)&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/36966)


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