analytics/test/plausible_web/controllers/api
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
..
external_stats_controller fix(TimeSeries): Work around weird time zones (#4337) 2024-07-11 11:48:16 +03:00
internal_controller Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
stats_controller fix(main-graph): fix 12mo and other comparisons with blanks (#4333) 2024-07-10 15:46:31 +03:00
external_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
external_sites_controller_test.exs Refactor Sites and Stats API authorization logic (#4297) 2024-07-02 15:09:23 +02:00
internal_controller_test.exs Implement pinned sites (#3469) 2023-11-13 09:08:26 +01:00
paddle_controller_test.exs Unify default pricing currency selection (#4221) 2024-06-14 14:49:22 +02:00