mirror of
https://github.com/plausible/analytics.git
synced 2024-11-25 15:34:22 +03:00
f04c47f881
* add realtime date_ranges into the private API schema This commit starts parsing date ranges into a new NaiveDateTimeRange struct, rather than a simple Date.Range. * transform realtime labels into negative integers + test * move schema type argument to last position in helper functions * allow passing a date param + tests * Update test/plausible/stats/query_parser_test.exs Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com> * Update test/plausible/stats/query_parser_test.exs Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com> * Update test/plausible/stats/query_parser_test.exs Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com> * Update test/plausible/stats/query_parser_test.exs Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com> * keep test file structure consistent * Turn NaiveDateTimeRange into DateTimeRange * change 'now' field from NaiveDateTime to DateTime in v2 query * fix minute interval labels + add missing tests * return query_result.date_range as iso8601 timestamps with timezone * allow timestamps with tz as date_range arguments in API v2 * delete Plausible.Timezones.to_utc_datetime * simplify returning comparison periods * add comment about realtime not supported in comparisons * pass only now instead of test_opts * drop redundant else branch * separate tests * stick to a single check_date_range function in tests * fix credo error --------- Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com> |
||
---|---|---|
.. | ||
query-api-schema.json |