Skip to content

Commit

Permalink
Sets use_slice_data equals true
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Feb 8, 2022
1 parent 8824b9b commit 5cc859b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,15 @@ def explore(
if not initial_form_data:
slice_id = request.args.get("slice_id")
if slice_id:
initial_form_data['slice_id'] = slice_id
initial_form_data["slice_id"] = slice_id

dataset_id = request.args.get("dataset_id")
if dataset_id:
initial_form_data['datasource'] = f"{dataset_id}__table"
initial_form_data["datasource"] = f"{dataset_id}__table"

form_data, slc = get_form_data(initial_form_data=initial_form_data)
form_data, slc = get_form_data(
use_slice_data=True, initial_form_data=initial_form_data
)

query_context = request.form.get("query_context")
# Flash the SIP-15 message if the slice is owned by the current user and has not
Expand Down

0 comments on commit 5cc859b

Please sign in to comment.