Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ckanext/in_app_reporting/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def create_chart(id, resource_id):
if table_id:
model_id = utils.get_metabase_model_id(table_id)
if model_id:
return tk.redirect_to('/insights?return_to=/model/{0}'.format(model_id))
return tk.redirect_to('/insights?return_to=/model/{0}#content'.format(model_id))

# If no model exists, create a new one
resource_name = resource.get('name') or resource.get('id')
Expand All @@ -141,7 +141,7 @@ def create_chart(id, resource_id):
model_response = tk.get_action('metabase_model_create')({'ignore_auth': True}, model_dict)
model_id = model_response.get('id')
if model_id:
return tk.redirect_to('/insights?return_to=/model/{0}'.format(model_id))
return tk.redirect_to('/insights?return_to=/model/{0}#content'.format(model_id))

# If all else fails, redirect to the default collection
log.error('Failed to find or create model for resource %s: %s', resource_id, model_response)
Expand Down
2 changes: 1 addition & 1 deletion ckanext/in_app_reporting/templates/metabase/card_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
src="{{iframeUrl}}"
frameborder="0"
width="100%"
height="650px"
height="600px"
allowtransparency
></iframe>
{% endif %}
2 changes: 1 addition & 1 deletion ckanext/in_app_reporting/templates/metabase/metabase.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
src={{ sso_url }}
frameborder="0"
width="100%"
height="920px"
height="800px"
allowtransparency
></iframe>
{% endblock %}
Expand Down