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.91k stars 1.06k forks source link

Reset grace period if usage drops within the last cycle #4212

Closed aerosol closed 3 months ago

aerosol commented 3 months ago

So that LockSites job unlocks the site, encountering no grace period and no upgrade needed.

A bigger refactoring is needed IMHO so that CheckUsage and LockSites aren't separate. There's implicit dependency between the two - one (re)sets the grace period, and the other (un)locks dashboards depending on grace period state. Thus, there is no trace of the reason for which a site is being unlocked.

Tests

Changelog

Documentation

Dark mode