analytics/priv
Adrian Gruntkowski 9d97dc1912
Move limit enforcement to accepting site ownership transfer (#3612)
* Move limit enforcement to accepting site ownerhsip transfer

* enforce pageview limit on ownership transfer accept

* Refactor plan limit check logic

* Extract `ensure_can_take_ownership` to `Invitations` context and refactor

* Improve styling of exceeded limits notice in invitation dialog and disable button

* styling improvements to notice

* make transfer_ownership return transfer to self error

* do not allow transferring to user without active subscription WIP

* Add missing typespec and improve existing ones

* Fix formatting

* Explicitly label direct match on function argument for clarity

* Slightly refactor `CreateInvitation.bulk_transfer_ownership_direct`

* Exclude quota enforcement tests from small build test suite

* Remove unused return type from `invite_error()` union type

* Do not block plan upgrade when there's pending ownership transfer

* Don't block and only warn about missing features on transfer

* Remove `x-init` attribute used for debugging

* Add tests for `Quota.monthly_pageview_usage/2`

* Test and improve site admin ownership transfer actions

* Extend tests for `AcceptInvitation.transfer_ownership`

* Test transfer ownership controller level accept action error cases

* Test choosing plan by user without sites but with a pending ownership transfer

* Test invitation x-data in sites LV

* Remove sitelocker trigger in invitation acceptance code and simplify logic

* Add Quota test for `user.allow_next_upgrade_override` being set

* ignore pageview limit only when subscribing to plan

* Use sandbox Paddle instance for staging

* Use sandbox paddle key for staging and dev

---------

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
2023-12-20 14:56:49 +00:00
..
data_migrations Data Migration: rewrite funnels that contain duplicate goals (#3361) 2023-09-21 09:08:43 +02:00
ingest_repo Fixup 4cdf843ad: (#3434) 2023-10-17 16:07:06 +02:00
ref_inspector [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
repo Migrations for #3641 (#3644) 2023-12-20 15:40:39 +01:00
static Simplify asset building (#3459) 2023-11-01 16:27:29 +02:00
tracker/js Remove static tracker files (#2116) 2022-10-11 12:19:28 +02:00
ua_inspector Bump ua_inspector/matomo db (#3263) 2023-08-14 16:03:12 +02:00
legacy_plans.json Legacy plans (#3455) 2023-10-25 13:46:55 +03:00
paddle_sandbox.pem Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
paddle.pem Initial commit 2019-09-02 12:29:19 +01:00
placeholder_favicon.ico Add fallback for favicon (#2279) 2022-09-28 08:55:46 -03:00
plans_v1.json List plan benefits on the new upgrade page (#3444) 2023-10-23 19:42:00 +03:00
plans_v2.json List plan benefits on the new upgrade page (#3444) 2023-10-23 19:42:00 +03:00
plans_v3.json List plan benefits on the new upgrade page (#3444) 2023-10-23 19:42:00 +03:00
plans_v4.json Add data retention to the choose plan page (#3605) 2023-12-12 08:19:54 -03:00
referer_favicon_domains.json Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
sandbox_plans.json Add data retention to the choose plan page (#3605) 2023-12-12 08:19:54 -03:00