cubes icon indicating copy to clipboard operation
cubes copied to clipboard

Question: Aggregates with many cuts and huge urls (POST method)

Open pablolmedorado opened this issue 9 years ago • 1 comments

Hello everyone;

I'm working with thousands of records and sometimes, when I try to use many filters (cuts), the resulting url is huge (> 2000 characters).

In these cases the GET method does not work and if I try to make the request with POST, I get an error 405 (Method Not Allowed).

Is possible to enable the POST method?

Thanks in advance.

PS: I'm using v1.1alpha

pablolmedorado avatar Sep 13 '16 08:09 pablolmedorado

Finally I upgraded to the final version 1.1. and modified a couple lines of code.

I write them here in case someone needs it:

cubes/server/blueprint.py (aggregate function)

  • line 310: @slicer.route("/cube/<cube_name>/aggregate", methods=["GET", "POST"]) https://github.com/DataBrewery/cubes/blob/v1.1/cubes/server/blueprint.py#L310
  • line 339: ddlist = request.values.getlist("drilldown") https://github.com/DataBrewery/cubes/blob/v1.1/cubes/server/blueprint.py#L339

regards

pablolmedorado avatar Sep 15 '16 07:09 pablolmedorado