You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/stats
hq1 0fa7f3c1e1
Make subsequent query boundaries idempotent (#3723)
* Make subsequent query boundaries idempotent

This should prevent time-sensitive race conditions
on subsequent `Plausible.Stats.*` calls for the same query.
Not sure if there are more places where now() is
dynamic relative to query life cycle, but it's a start.

* Format

* Update lib/plausible/stats/query.ex

Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>

* Match on `Query.now` in a test

---------

Co-authored-by: Wojtek Mach <wojtekmach@users.noreply.github.com>
3 years ago
..
aggregate.ex trace aggregate and timeseries queries too (#3712) 3 years ago
base.ex Make subsequent query boundaries idempotent (#3723) 3 years ago
breakdown.ex Remove ARRAY JOINs (#3708) 3 years ago
clickhouse.ex Make subsequent query boundaries idempotent (#3723) 3 years ago
compare.ex Small bugfix + refactor email reports (#3642) 3 years ago
comparisons.ex Support `with_imported=true` in Stats API aggregate (#2919) 4 years ago
current_visitors.ex Clean up after V2 migration (#2868) 4 years ago
custom_props.ex Limit Custom Properties access in Stats API (#3670) 3 years ago
email_report.ex Small bugfix + refactor email reports (#3642) 3 years ago
filter_parser.ex Harden API input validation (#2869) 4 years ago
filter_suggestions.ex Remove ARRAY JOINs (#3708) 3 years ago
filters.ex Update credo config + extras (#3547) 3 years ago
fragments.ex Remove ARRAY JOINs (#3708) 3 years ago
imported.ex Skip breakdown of imported pages with pageviews=0 (#3655) 3 years ago
interval.ex Disallow small intervals on large ranges (#3245) 3 years ago
props.ex Prop filter modal (#2841) 4 years ago
query.ex Make subsequent query boundaries idempotent (#3723) 3 years ago
timeseries.ex trace aggregate and timeseries queries too (#3712) 3 years ago
util.ex Small build updates (#3546) 3 years ago