analytics/test/plausible_web/controllers
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
..
api Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
auth_controller add LOG_FAILED_LOGIN_ATTEMPTS (#2936) 2023-05-25 10:37:10 +03:00
CSVs Filter out empty entries when listing stats for UTM props (#3339) 2023-09-12 09:11:50 +02:00
site Feature gates (#3401) 2023-10-11 09:40:01 -03:00
admin_auth_controller_test.exs improve first launch experience for self-hosters (#2357) 2022-11-10 12:42:22 +01:00
auth_controller_sync_test.exs Fix email update flow for selfhosted setup with verification disabled (#3408) 2023-10-11 15:12:57 +02:00
auth_controller_test.exs Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
billing_controller_test.exs Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
error_report_controller_test.exs Funnel site settings (#3039) 2023-06-22 09:00:07 +02:00
invitation_controller_test.exs Feature gates (#3401) 2023-10-11 09:40:01 -03:00
page_controller_test.exs add landing page (#2989) 2023-06-01 14:34:48 +03:00
site_controller_test.exs Feature gates (#3401) 2023-10-11 09:40:01 -03:00
stats_controller_test.exs Remove Props FF (#3242) 2023-08-31 11:14:54 -03:00
unsubscribe_controller_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00