Bug description

The UI dialog for adding an annotation layer frequently is unresponsive in 4.0.0. By that, I mean that clicking on the Apply or OK buttons on this dialog does not work.

Screenshot 2024-04-14 at 8 44 28 AM

When trying to click Apply, the following error appears in the Javascript Console:

Screenshot 2024-04-14 at 8 48 00 AM

How to reproduce the bug

I experience this using the production version of the official Docker build of 4.0.0. apache/superset:4.0.0

I have run into this under different circumstances. It happens > 50% of the time but tends not to happen when creating new charts for the first time. So, try a variation of 1.:

  1. Go to the Charts list and click into an existing Line or Mixed chart.
  2. or, go to a Dashboard, click to edit a Line or Mixed chart on the dashboard
  3. Try to add an annotation layer from a Superset annotation
  4. Fill out the pop up box and try clicking Apply, or OK.

Screenshots/recordings

Please see the screenshots in the Bug description area above.

Superset version

4.0.0

Python version

3.10

Node version

16

Browser

Chrome

Additional context

This appears to be a React error.

These are the only feature flags I have manually set:

"TAGGING_SYSTEM": True,
"DASHBOARD_RBAC": True,

Checklist

  • [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Comment From: Neha-Siddesh

Hi @clayheaton, Is the above issue resolved for you. I am trying to create Horizontal annotaion. I can see it in legends, but is not displayed in chart. Please guide if you have any idea

Comment From: clayheaton

I still have a lot of trouble with the feature. It is very unreliable. Everything else seems to work just fine. On Aug 20, 2024, at 4:02 AM, Neha-Siddesh @.***> wrote: Hi @clayheaton, Is the above issue resolved for you. I am trying to create Horizontal annotaion. I can see it in legends, but is not displayed in chart. Please guide if you have any idea

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Comment From: rusackas

I still have a lot of trouble with the feature. It is very unreliable

Sigh... you're not alone. Annotation layers are due for a redesign/overhaul, but it's an intricate tool that's hard to design well. In essence, a lot of work for not a lot of users. It never seems to make it to the top of the priority pile. If anyone ever feels like contributing, we'd welcome it.

Comment From: DilongWu

Meet same issue. Is there any solution so far?

Comment From: rusackas

This seems to ahve gone silent for 5 months... I'm tempted to close it as inactive, but wondering if anyone can provide reliable reproduction steps, or if it's still even an issue in 4.1.2/5.0.0

Comment From: rusackas

Closing as inactive/not-planned. The whole Annotation Layer needs a revamp, in my humble opinion :P