keen / keen-analysis.js

A light JavaScript client for Keen
https://keen.io/docs/compute/
MIT License
40 stars 15 forks source link

Multiqueries problem #64

Closed dariuszlacheta closed 4 years ago

dariuszlacheta commented 5 years ago

When multiqueries run with the same analysis_type for the same event_collection, both names are equal and this is causing problems with keen-dataviz.

adamkasprowicz commented 5 years ago

so in our case we'll check if: if (JSON.stringify of query params 1 !== JSON.stringify if query params 2) let's add a number at the end of the name of query

so in this example keen-analysis would return something like count pageviews 1 count pageviews 2

to be more precise can add a name describing the difference between them. For example if the only difference is the filter: for the first query: where user.id = 123 for the second query: where user.id = 555

the name for this query should be: count pageviews where user.id = 123 count pageviews where user.id = 555

maciejrybaniec commented 4 years ago

Duplicate of #61