analytics/test/plausible_web/controllers/api
Vini Brasil c0fe2a3996
Implement Stats API feature gate (#3411)
* Include ApiKey functions in Auth context

* Make feature notice work without %Site{}

Previously the extra feature notice required a %Site{} in order to check
the owner plan. However, not every feature is scoped by site, for
example the Stats API. For features like this, a %User{} is required,
and not a %Site{}.

This commit replaces the `:site` param with `:billable_user`, which is
common to both site and user-scoped features.

* Add stats_api to the list of extra features

* Limit API Key creation based on user plan
2023-10-11 17:24:16 -03:00
..
external_stats_controller Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
internal_controller Fix test flakiness due to shared state in asynchronous run (#3184) 2023-07-24 14:43:28 +02:00
stats_controller Filter out empty entries when listing stats for UTM props (#3339) 2023-09-12 09:11:50 +02:00
external_controller_test.exs Implement better user password validation (#3344) 2023-09-25 10:27:29 +02:00
external_sites_controller_test.exs Refactor Plausible.Billing.Plans module (#3268) 2023-08-16 13:38:38 -03:00
internal_controller_test.exs Feature gates (#3401) 2023-10-11 09:40:01 -03:00
paddle_controller_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00