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/test/plausible_web/controllers
Adrian Gruntkowski e67850c11d
Fix and refactor invitation logic (#3376)
* Make membership creation and role updates more explicit in terms of changesets

* Extract invitation accept flow logic and refactor it slightly

* Improve acceptation logic

* Update moduledoc

* Improve SiteLocker API and add typespecs

* Stop naming function not returning a boolean like a predicate

* Refactor rest of invitation actions and safeguard against rogue requests

* Update code docs slightly

* Extend `Billing.check_needs_update/1` tests

* Parametrize selfhost flag and toggle SiteLocker logic on it

* Add tests for newly extracted services

* Add test case and a fix for locking site on grace period ended

* Make invitation controller tests async as there's no more env patching

* Add test cases for self-invites and fix one bug

* Add and refactor tests for rejecting and removing invitations

* Prevent issuing ownership transfer to existing owner

* Improve name of the test

* Improve `Billing.check_needs_to_upgrade/1` return value

* Improve `Billing.SiteLocker.update_sites_for/1` and its tests

* Fix typos

Co-authored-by: hq1 <hq@mtod.org>

* Make invitation removal and rejection resilient to races

---------

Co-authored-by: hq1 <hq@mtod.org>
3 years ago
..
CSVs Filter out empty entries when listing stats for UTM props (#3339) 3 years ago
api Fix and refactor invitation logic (#3376) 3 years ago
auth_controller add LOG_FAILED_LOGIN_ATTEMPTS (#2936) 4 years ago
site Implement limits for team members (#3305) 3 years ago
admin_auth_controller_test.exs improve first launch experience for self-hosters (#2357) 4 years ago
auth_controller_test.exs Improve forms (#3380) 3 years ago
billing_controller_test.exs Run tests in async mode where applicable (#2542) 4 years ago
error_report_controller_test.exs Funnel site settings (#3039) 3 years ago
invitation_controller_test.exs Fix and refactor invitation logic (#3376) 3 years ago
page_controller_test.exs add landing page (#2989) 4 years ago
site_controller_test.exs Apply unified capitalization to buttons and titles (#3321) 3 years ago
stats_controller_test.exs Remove Props FF (#3242) 3 years ago
unsubscribe_controller_test.exs Run tests in async mode where applicable (#2542) 4 years ago