analytics/test/plausible_web/controllers
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
..
api fix(TimeSeries): Work around weird time zones (#4337) 2024-07-11 11:48:16 +03:00
auth_controller Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
CSVs APIv2: TimeSeries using QueryBuilder, release experimental_session_count (#4305) 2024-07-09 14:25:02 +03:00
site remove Plausible Analytics metions from CE (#4121) 2024-05-23 09:43:01 +02:00
admin_auth_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
admin_controller_test.exs Implement search in Details views (#4318) 2024-07-09 15:01:52 +03:00
auth_controller_sync_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
auth_controller_test.exs Make billing cycles less confusing (#4233) 2024-06-17 13:51:30 +02:00
avatar_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
billing_controller_test.exs Make hello@plausible.io clickable (#3746) 2024-02-01 09:43:21 +01:00
error_report_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
google_analytics_controller_test.exs Remove Universal Analytics import logic (#4312) 2024-07-05 13:58:42 +02:00
invitation_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
page_controller_test.exs remove Plausible Analytics metions from CE (#4121) 2024-05-23 09:43:01 +02:00
site_controller_test.exs Add backlinks between CRM, dashboard and site members (#4252) 2024-06-20 14:03:58 +02:00
stats_controller_test.exs APIv2: TimeSeries using QueryBuilder, release experimental_session_count (#4305) 2024-07-09 14:25:02 +03:00
unsubscribe_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00