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

Add link to embeds to open query page in new window #983

Merged
merged 1 commit into from Apr 14, 2016

Conversation

tdawber
Copy link
Contributor

@tdawber tdawber commented Apr 12, 2016

At Atlassian most of our reports will be consumed through Embeds. This little tweak to add a pop-out link back to re:dash will help tie the embed with redash itself. I used a button that is used in a similar fashion on dashboards.

Also fixed a bug in embed.py that was pulling visualisation attributes into the visualisation.query object.

screen shot 2016-04-12 at 12 10 25 pm

@@ -38,7 +38,7 @@ def embed(query_id, visualization_id, org_slug=None):

qr = project(qr, ('data', 'id', 'retrieved_at'))
vis = project(vis, ('description', 'name', 'id', 'options', 'query', 'type', 'updated_at'))
vis['query'] = project(vis, ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))
vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮 oops.

@arikfr arikfr merged commit 748f6e4 into getredash:master Apr 14, 2016
@arikfr
Copy link
Member

arikfr commented Apr 14, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants