Cartodb: Weird behaviour of Category widget while searching

Created on 12 Jan 2017  路  7Comments  路  Source: CartoDB/cartodb

So I have this category widget

image

With this config
image

But when I perform a search...
image

And then, when I select the MOTORWAY and click on apply...
image

Is it displaying COUNT during the search instead of the defined aggregation?

.

Frontend bug

Most helpful comment

Acceptance: OK

screen shot 2017-07-10 at 15 55 55

Search:
screen shot 2017-07-10 at 15 56 53

All 7 comments

Related: S/B 11190615

We thought this 2.9M number was a COUNT:

screen_shot_2017-01-25_at_2 41 02_pm

Because widget is set up this way:

screen shot 2017-01-26 at 2 26 22 pm

But when user:

  • Sets up a COUNT Formula widget that can interact with Category widget

screen_shot_2017-01-25_at_3 07 54_pm

  • Selects 2005 in the Category widget
  • 2.9M is not the result:

    screen_shot_2017-01-25_at_2 31 10_pm_360

I could not replicate with small dataset鈥攊f we need to use this client data for testing I can report in private repo.

@CartoDB/support let client know when fixed please.

We are having a similar issue with the category widget. The strange behavior we have:
1) Category Widget does not show all of the categories - this would be okay if the search worked as expected.
2) On selecting a category from the list - the widget filters results to show only the selected category.
But on selecting a category from the returned search results, the widget filters to show all results EXCEPT the selected category.

This is actually visible in @AbelVM post above in addition to the numbers being incorrect.

Indeed the values for category widgets are different in search and filter mode, the urls are different, but I'm not sure if this _weird_ behaviour is intended, it returns the resulting number of occurrences when searching.

This is the search url (find attached)

http://matatageom.localhost.lan:8181/api/v1/map/ed3080892b7bc3214bc20fa7eb425bef:1499173664221/dataview/30f62ab4-21d2-4498-8fdc-9f9212fdbbcd/search?q=9&api_key=2ccd3fe047d99a8e8c97771aa396692c6510221f

screen shot 2017-07-04 at 15 08 20

This is the filter url (find attached)

http://matatageom.localhost.lan:8181/api/v1/map/c9cabc3215bdc6aadde2cd89c72dc351:1499173664221/dataview/30f62ab4-21d2-4498-8fdc-9f9212fdbbcd?bbox=-15.508092641830446,27.7838613115335,-15.505174398422243,27.787961749415377&own_filter=1&api_key=2ccd3fe047d99a8e8c97771aa396692c6510221f

screen shot 2017-07-04 at 15 13 11

actually when digging in the code I can see a getSearchCount method which makes me think this is the intended behavior

https://github.com/CartoDB/deep-insights.js/blob/master/src/widgets/category/stats/stats-view.js#L26-L33

please @kevin-reilly @noguerol can you shed light on this issue?

@matallo that's a bug. The values should be the same IMO

They do.

Acceptance: OK

screen shot 2017-07-10 at 15 55 55

Search:
screen shot 2017-07-10 at 15 56 53

:heart:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fernando-carto picture fernando-carto  路  5Comments

piensaenpixel picture piensaenpixel  路  4Comments

ivanmalagon picture ivanmalagon  路  3Comments

nygeog picture nygeog  路  5Comments

ramiroaznar picture ramiroaznar  路  4Comments