Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after upgrade superset 2.0 cant render a chart with event annotation on dashboard #20845

Closed
oleg-savko opened this issue Jul 25, 2022 · 12 comments
Labels

Comments

@oleg-savko
Copy link

After upgrading superset to 2.0, it cant render a chart with Event Annotation on dashboard and return:

Unexpected error
An error occurred while rendering the visualization: TypeError: Cannot use 'in' operator to search for 'columns' in undefined

Screenshot 2022-07-25 at 13 37 28

Screenshot 2022-07-25 at 13 43 23

If remove annotation chart render properly.

Expected: chart with event annotation worked as before.

@oleg-savko oleg-savko added the #bug Bug report label Jul 25, 2022
@sowo
Copy link
Contributor

sowo commented Jul 26, 2022

I confirm this issue after upgrading from from 1.5.1 to 2.0, annotations cannot be rendered. In my case, I use an annotation layer which results in the same error as shown above.

when hiding the annotation, the charts render just fine.

@alexey-kasiyanik
Copy link

alexey-kasiyanik commented Jul 27, 2022

Yes, have faced this issue as well :( As for now we are not able to migrate to version 2.0 just because a lot of charts use annotations.

@xmnlab
Copy link

xmnlab commented Aug 11, 2022

hi everyone! just a friendly ping here to check if there is any update about this issue

@joaocmd93
Copy link

Hello, any updates on this issue?

@1-Tyler
Copy link

1-Tyler commented Sep 9, 2022

Workaround:
On the chart, if you remove the annotations and re-add them back, the error should go away and will load correctly.
Or you can click 'apply' and save the annotation and it will work.

The GET call to 'api/v1/chart/CHART_ID' is returning error 404.

@joaocmd93
Copy link

Workaround: On the chart, if you remove the annotations and re-add them back, the error should go away and will load correctly. Or you can click 'apply' and save the annotation and it will work.

The GET call to 'api/v1/chart/CHART_ID' is returning error 404.

For me this only works on the 1st load after reapplying the annotation.
If I save and try to load again the error continues.

@1-Tyler
Copy link

1-Tyler commented Sep 9, 2022

Ah you are right @joaocmd93 , I am seeing that behavior as well unfortunately.

@bonamim
Copy link

bonamim commented Sep 16, 2022

Facing the same error here 😭

@zhaorui2022
Copy link
Contributor

We also did an upgrade and users are facing this issue with some critical dashboards. Is there any solution to it yet? If no, we have to roll back to our previous version.

@zhaorui2022
Copy link
Contributor

This seems to be the fix #20651 We did a cherry pick and it fixes our dashboards.

@xmnlab
Copy link

xmnlab commented Sep 21, 2022

nice!

@rusackas
Copy link
Member

I believe this was fixed by #20651, but this issue/ticket was never actually closed. Holler if this is still an issue in 3.x, and we can discuss!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants