apache / superset

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

"Add annotation layer" dialog sometimes unresponsive #28027

Open clayheaton opened 7 months ago

clayheaton commented 7 months ago

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.
    • or, go to a Dashboard, click to edit a Line or Mixed chart on the dashboard
  2. Try to add an annotation layer from a Superset annotation
  3. 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

Neha-Siddesh commented 3 months ago

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

clayheaton commented 3 months ago

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: @.***>

rusackas commented 3 months ago

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.

DilongWu commented 2 weeks ago

Meet same issue. Is there any solution so far?