analytics/lib
Karl-Aksel Puulmann 0114689779
fix(TimeSeries): Work around weird time zones (#4337)
* Refactor Expression.dimension to accept q

* Handle quarter- and half-hour timezones

Previously APIv2 output didn't start at a full hour for these time zones
and main graph was blank

The core reasoning is that ClickHouse `timeSlots` is not time-zone
aware and works off of unix epoch - meaning that in time zones which
have an offset of 5:45 the "hours" reported would start at minute :45.

The fix is kind of silly - we now divide each hour into 4 and handle
things that way.

Related basecamp issue: https://3.basecamp.com/5308029/buckets/36789884/card_tables/cards/7590936581

* Fix test typo
2024-07-11 11:48:16 +03:00
..
mix/tasks Always recommend a suitable plan on the choose-plan page (#4222) 2024-06-17 09:25:46 +03:00
plausible fix(TimeSeries): Work around weird time zones (#4337) 2024-07-11 11:48:16 +03:00
plausible_web fix(main-graph): fix 12mo and other comparisons with blanks (#4333) 2024-07-10 15:46:31 +03:00
workers Always recommend a suitable plan on the choose-plan page (#4222) 2024-06-17 09:25:46 +03:00
oban_error_reporter.ex Implement resumable GA4 imports to work around rate limiting (#4049) 2024-04-30 18:06:18 +02:00
plausible_release.ex Unify default pricing currency selection (#4221) 2024-06-14 14:49:22 +02:00
plausible_web.ex Merge Plugins.API.Router into main one (#3767) 2024-02-12 10:44:32 +01:00
plausible.ex Make Plausible.ce? and Plausible.ee? into functions (#4158) 2024-05-29 14:55:25 +02:00
sentry_filter.ex Update Sentry (#3843) 2024-03-18 10:10:20 +01:00