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

How should we integrate superset with django CMS #7

Closed
heaven00 opened this issue Jan 17, 2018 · 8 comments
Closed

How should we integrate superset with django CMS #7

heaven00 opened this issue Jan 17, 2018 · 8 comments
Assignees

Comments

@heaven00
Copy link
Member

No description provided.

@heaven00
Copy link
Member Author

@gggodhwani

@heaven00
Copy link
Member Author

@akshay2905 okay so I have cms running on my system, do we have superset samples or something based on the way you are already using ?

@imakshayverma
Copy link
Member

The superset samples can be taken from the instance we have and embed them as an iframe in the cms. That embedded iframe code would be part of the content on the cms.

@heaven00
Copy link
Member Author

heaven00 commented Jan 19, 2018

I was able to embed the complete dashboard using the following code

<iframe
  width="1600"
  height="1600"
  seamless
  frameBorder="0"
  scrolling="yes"
  src="http://52.214.125.248:8088/superset/dashboard/8/?preselect_filters=%7B%2252%22%3A%7B%22source%22%3A%5B%22Police.csv%22%5D%2C%22particulars_1%22%3A%5B%22Establishment%20Expenditure%20of%20the%20Centre%22%5D%2C%22particulars_2%22%3A%5B%22Central%20Armed%20Police%20Forces%22%5D%7D%7D&standalone=true&height=1600"
>
</iframe>

firefox_screenshot_2018-01-19t12-00-42 854z

Tip from here apache/superset#1170

@heaven00
Copy link
Member Author

the speed would be a concern though, we will have to optimize on our views, but @akshay2905 your thoughts ?

@gggodhwani
Copy link
Member

I guess setting up Redis as cache may optimize speed a lot plus configuring Gunicorn server is something we need to explore.

@heaven00
Copy link
Member Author

It loaded pretty fast after caching. Also we can design our views/dashboard in a manner that it doesn't have that much data transfer.

The question is of design simplification required for our user Base and making it usable

@imakshayverma
Copy link
Member

imakshayverma commented Jan 19, 2018

The performance issue, I believe can be solved by Gaurav's proposal, also as he had mentioned, it is running on a development server.

Would do a check of how data can be managed at front-end, to make sure we minimise queries. Also, a single page won't have many visualizations, we might need to test the turn-around time while we are surfing multiple pages.

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

No branches or pull requests

3 participants