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/workers
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
..
check_usage.ex Usage & Limits section (#3291) 3 years ago
clean_email_verification_codes.ex Add :ok return to CleanEmailVerificationCodes (#1018) 6 years ago
clean_invitations.ex Invitations (#1122) 6 years ago
expire_domain_change_transitions.ex Allow domain change (#2803) 4 years ago
import_google_analytics.ex Save city name when importing from GA (#2608) 4 years ago
lock_sites.ex Fix and refactor invitation logic (#3376) 3 years ago
notify_annual_renewal.ex Refactor Plausible.Billing.Plans module (#3249) 3 years ago
rotate_salts.ex Upgrades Oban to v2.6.1 (#967) 6 years ago
schedule_email_reports.ex Do not send email reports for locked sites 5 years ago
send_check_stats_emails.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
send_email_report.ex Fix weekly/monthly report e-mails (MJML) (#3150) 3 years ago
send_site_setup_emails.ex [pg migration] Delete account with multiple subscriptions (#3220) 3 years ago
send_trial_notifications.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
spike_notifier.ex add a test and fix rendering the dashboard link 4 years ago