You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/04/16 15:30:44 UTC

[GitHub] [incubator-superset] ramdesh edited a comment on issue #9557: FilterBox is not working as expected

ramdesh edited a comment on issue #9557: FilterBox is not working as expected
URL: https://github.com/apache/incubator-superset/issues/9557#issuecomment-614724849
 
 
   Just to add some context to this, in the above filter, the first run sends out the correct filters, but on clicking 'clear' and choosing another filter, it seems to send the old filters to the backend as well. Here is the `form_data` that is sent to the backend:
   
   ```
   {
      "datasource":"446__table",
      "viz_type":"dist_bar",
      "slice_id":435,
      "granularity_sqla":"year",
      "time_grain_sqla":"P1D",
      "time_range":"100 years ago : ",
      "metrics":[
         {
            "aggregate":"COUNT",
            "column":{
               "column_name":"centerID",
               "description":null,
               "expression":null,
               "filterable":true,
               "groupby":true,
               "id":5699,
               "is_dttm":false,
               "optionName":"_col_centerID",
               "python_date_format":null,
               "type":"INT",
               "verbose_name":null
            },
            "expressionType":"SIMPLE",
            "fromFormData":true,
            "hasCustomLabel":true,
            "label":"Total Pharmacies",
            "optionName":"metric_1aiyetjyng4_9dblxojmirk",
            "sqlExpression":null
         }
      ],
      "adhoc_filters":[
         {
            "clause":"WHERE",
            "comparator":[
               "WALGREENS DRUG STORE               ",
               "ACME PHARMACY                      "
            ],
            "expressionType":"SIMPLE",
            "filterOptionName":"aa4d0ae1-36b0-4483-812d-4e12d71ebe42",
            "operator":"in",
            "subject":"chainNM"
         }
      ],
      "groupby":[
         "year",
         "quarter"
      ],
      "columns":[
   
      ],
      "row_limit":1000,
      "contribution":false,
      "color_scheme":"bnbColors",
      "label_colors":{
         "Total Pharmacies":"#ff5a5f"
      },
      "show_legend":true,
      "show_bar_value":false,
      "bar_stacked":false,
      "order_bars":true,
      "y_axis_format":"SMART_NUMBER",
      "y_axis_label":"total pharmacies",
      "show_controls":false,
      "x_axis_label":"time",
      "bottom_margin":"auto",
      "x_ticks_layout":"auto",
      "reduce_x_ticks":true,
      "extra_filters":[
         {
            "col":"chainNM",
            "op":"in",
            "val":[
               "CVS PHARMACY INC                   "
            ]
         }
      ]
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org