Skip to content

Commit

Permalink
Merge pull request #74 from lyft/remove_bypass
Browse files Browse the repository at this point in the history
Revert "Allow bypassing DISPLAY_MAX_ROW"
  • Loading branch information
Beto Dealmeida authored Oct 28, 2019
2 parents e557c68 + 378ad44 commit afba485
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2504,11 +2504,12 @@ def results_call(self, key):
payload = utils.zlib_decompress(blob, decode=not results_backend_use_msgpack)
obj = _deserialize_results_payload(payload, query, results_backend_use_msgpack)

if not request.args.get("bypass_display_limit"):
obj = apply_display_max_row_limit(obj)

return json_success(
json.dumps(obj, default=utils.json_iso_dttm_ser, ignore_nan=True)
json.dumps(
apply_display_max_row_limit(obj),
default=utils.json_iso_dttm_ser,
ignore_nan=True,
)
)

@has_access_api
Expand Down

0 comments on commit afba485

Please sign in to comment.