seo01 opened a new issue, #20441: URL: https://github.com/apache/superset/issues/20441
When adding Event or Interval annotations creates a chart that intermittently fails to render for many chart types. #### How to reproduce the bug Chart types I've confirmed this does happen with: Time-series Line Chart, Time-series Area Chart, Time-series Bar Chart v2, Mixed Time Series Chart types I've confirmed this does not happen with: Line Chart, Bar Chart Annotations types I've confirmed this does happen with: Event (with Superset Annotation Source), Interval (with Superset Annotation Source) Annotations types I've confirmed this does not happen with: Formula 1. Go to 'Create New Chart' 2. Click on 'Time-series Line Chart' 3. Choose a dataset 4. Drag in a metric (e.g. the default count) 5. Click Annotations and Layers 6. Click Add annotation Layer 7. Select 'Interval' for the annotation type 8. Type anything for the name, e.g. "foobar" 9. Select 'superset annotation' from the annotation source 10. Select an annotation layer 11. Click 'OK' 12. Click 'Create Chart' <-- Sometimes this will trigger the issue 13. Type a name for the chart in the top left box (e.g. "foo bar") 14. Click "Save" and confirm the Save <-- This generally triggers the issue ### Expected results I expect a chart to be displayed with areas blocked out. ### Actual results An "Unexpected error" box is displayed. <img width="1073" alt="image" src="https://user-images.githubusercontent.com/736239/174659699-104e0a5b-d576-42ee-beaf-05d91d639d3d.png"> Looking at the console it appears the data to load the graph is not fully loaded into the front end. <img width="786" alt="image" src="https://user-images.githubusercontent.com/736239/174660053-f73bc267-bbd3-41fb-8416-0e2f40cb2db2.png"> The bug is intermittent occurring ~90% of the time. ### Environment (please complete the following information): - browser type and version: Chrome 102.0.5005.115 - superset version: 0.0.0dev (helm default) - python version: 3.8.12 - node.js version: Node not installed - any feature flags active: DASHBOARD_RBAC ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [X] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [X] I have reproduced the issue with at least the latest released version of superset. - [X] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- 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]
