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/lib
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
..
mix/tasks Support custom events and props in mix send_pageview (#2606) 4 years ago
plausible Reject unknown imported cities from queries (#2675) 4 years ago
plausible_web improve transfer ownership error message (#2651) 4 years ago
workers Save city name when importing from GA (#2608) 4 years ago
oban_error_reporter.ex Delete stats improvements (#2318) 4 years ago
plausible.ex Initial commit 7 years ago
plausible_release.ex improve first launch experience for self-hosters (#2357) 4 years ago
plausible_web.ex Fix dark mode for GA import 5 years ago
sentry_filter.ex Fingerprint DBConnection.ConnectionError in Sentry (#2597) 4 years ago