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

Charts are not showing in explore mode until you refresh the page #296

Open
warenlg opened this issue Oct 16, 2019 · 5 comments
Open

Charts are not showing in explore mode until you refresh the page #296

warenlg opened this issue Oct 16, 2019 · 5 comments
Labels
blocked This is blocked for some reason bug Something isn't working can't reproduce This issue cannot be reproduced

Comments

@warenlg
Copy link

warenlg commented Oct 16, 2019

I had this issue when doing a demo on my local instance.
Let's say you are in SQL Lab, you're query is running fine and you have your output table. After clicking on Explore the default visualization type is a Table and you can see such a table on the right. Then, if I'm changing the visualization type to a bar or a pie chart for example, it shows me Control labeled "Metrics" cannot be empty. Ok fine let's set the proper metrics and series in case of a bar chart.
However, when your query configuration is fine and you click on RUN QUERY, no chart is showing, no message error, nothing. When I inspect this element of the page, the console shows me:

explore.4a1f0ba….entry.js:2 Item with key "SUPERSET_DEFAULT" already exists. You are assigning a new value.

:8088/superset/log/?…events&slice_id=0:1 Failed to load resource: the server responded with a status of 400 (BAD REQUEST)
explore.4a1f0ba….entry.js:2 

Uncaught TypeError: e.map is not a function
    at explore.4a1f0ba….entry.js:2
    at r.utils.state.<anonymous> (explore.4a1f0ba….entry.js:2)
    at r.utils.state.update (explore.4a1f0ba….entry.js:2)
    at SVGSVGElement.<anonymous> (explore.4a1f0ba….entry.js:2)
    at explore.4a1f0ba….entry.js:2
    at he (explore.4a1f0ba….entry.js:2)
    at Array.ws.each (explore.4a1f0ba….entry.js:2)
    at Array.I (explore.4a1f0ba….entry.js:2)
    at Array.J.call (explore.4a1f0ba….entry.js:2)
    at Object.generate (explore.4a1f0ba….entry.js:2)

:8088/superset/log/?…events&slice_id=0:1 Failed to load resource: the server responded with a status of 400 (BAD REQUEST)

After the demo, I figured out that I need to refresh the page for the chart to finally show. I don't remember this behavior before.

sourced version v0.17.0
srcd/sourced-ui:v0.7.0

@se7entyse7en
Copy link
Contributor

se7entyse7en commented Oct 17, 2019

@warenlg do you perhaps remember the version or when you last used the dashboard? I also don't remember this behavior of requiring to refresh the page at least during demos, do you @smacker ?
Most probably this has been introduced with v0.6.0 where we updated superset.

@se7entyse7en se7entyse7en added the bug Something isn't working label Oct 17, 2019
@smacker
Copy link
Contributor

smacker commented Oct 17, 2019

can't reproduce on dogfood instance (it runs v0.7.0 afaik)

@se7entyse7en
Copy link
Contributor

can't reproduce on dogfood instance (it runs v0.7.0 afaik)

\cc @alexpdp7

@alexpdp7
Copy link

Yes, it's running the srcd/sourced-ui:v0.7.0 image...

@smacker
Copy link
Contributor

smacker commented Oct 17, 2019

@warenlg do you mind to try on dogfood instance and log your steps if you are able to reproduce it? I followed your description and everything worked for me correctly.

@se7entyse7en se7entyse7en added blocked This is blocked for some reason can't reproduce This issue cannot be reproduced labels Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This is blocked for some reason bug Something isn't working can't reproduce This issue cannot be reproduced
Projects
None yet
Development

No branches or pull requests

4 participants