You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/test
Vini Brasil 535874be6f
Reject unknown imported cities from queries (#2675)
* Reject unknown imported cities from queries

This commit fixes a bug where the city report returned `N/A` entries.
The functions that build imported data queries were using SQL
`COALESCE`, assuming city data is `NULL` when unknown, when actually its
unknown value is `0`.

This commit addresses the problem using SQL `NULLIF` combined with the
previous `COALESCE` call. With this change both `0` and `NULL` are
treated as unknown.

Since 1cb07efe6d cities can be `NULL`, but
previously we saved `0` as unknown.

Closes #1960

* Add entry to CHANGELOG

* Ignore cyclomatic complexity Credo check
4 years ago
..
e2e Make checkly alert after 5 minutes of downtime (#2599) 4 years ago
load Fix script path for k6 load test (#2068) 4 years ago
plausible Save city name when importing from GA (#2608) 4 years ago
plausible_web Reject unknown imported cities from queries (#2675) 4 years ago
priv Replace Geolix with Locus (#2362) 4 years ago
support Split Clickhouse pools into Read-Only and Read/Write (dedicated to writes) (#2661) 4 years ago
workers add a test and fix rendering the dashboard link 4 years ago
test_helper.exs Run tests in async mode where applicable (#2542) 4 years ago