plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
19.93k stars 1.06k forks source link

Prepare for graph v2 #4451

Closed RobertJoonas closed 1 month ago

RobertJoonas commented 1 month ago

Changes

Preparation for migrating the main_graph to API v2.

Tests

Changelog

Documentation

Dark mode

github-actions[bot] commented 1 month ago
|Preview environment👷🏼‍♀️🏗️ | |:-:| | [PR-4451](https://pr-4451.review.plausible.io)
macobo commented 1 month ago

In DMs I proposed a new DateTimeRange struct. I did some initial refactoring work for it here https://github.com/plausible/analytics/compare/prepare-for-graph-v2...prepare-for-graph-v2v2?expand=1, give it a look.

It isn't the full solution due to also needing some other flag on Query object to let code know that it should use relative time labels.