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/lib/plausible_web
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
..
components Adding a note about WordPress plugin (#3358) 3 years ago
controllers Fix and refactor invitation logic (#3376) 3 years ago
live Improve forms (#3380) 3 years ago
mjml Update weekly_report.mjml.eex (#3313) 3 years ago
plugins OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago
plugs Implement Plugins API authorization (#3373) 3 years ago
templates Fix and refactor invitation logic (#3376) 3 years ago
views OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 4 years ago
email.ex Apply unified capitalization to buttons and titles (#3321) 3 years ago
endpoint.ex Revert "Revert "Reconfigure session cookie (#3274)" (#3284)" (#3285) 3 years ago
live_socket.ex Revert "Revert "Reconfigure session cookie (#3274)" (#3284)" (#3285) 3 years ago
refinspector.ex [Continued] Google Analytics import (#1753) 5 years ago
remote_ip.ex Parse bunny header 5 years ago
router.ex OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago