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/site
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
..
cache Gatekeep ingestion pipeline (#2472) 4 years ago
memberships Fix and refactor invitation logic (#3376) 3 years ago
admin.ex Allow admins to initiate ownership transfer from the CRM (#3340) 3 years ago
cache.ex Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
custom_domain.ex Remove unused custom domain code 5 years ago
domain.ex Make ingest threshold configurable (#2845) 4 years ago
gate_keeper.ex Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
google_auth.ex Configure Google Search Console property 7 years ago
imported_data.ex CRM: Expose rate limiting fields per site (#2429) 4 years ago
membership.ex Fix and refactor invitation logic (#3376) 3 years ago
memberships.ex Fix and refactor invitation logic (#3376) 3 years ago
monthly_report.ex Fix unique constraint validation on weekly/monthly reports (#3200) 3 years ago
removal.ex Keep track of native stats start timestamp when retrieving data (#2715) 4 years ago
shared_link.ex OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago
spike_notification.ex Do not allow duplicate spike notification to be created 6 years ago
weekly_report.ex Fix unique constraint validation on weekly/monthly reports (#3200) 3 years ago