analytics/lib
Vini Brasil d22c011aa3
Implement limits for team members (#3305)
* Refactor MembershipController.invite_member/2

This commit refactors the controller action used for creating new
invitations. It moves the code to Plausible.Sites.invite/4 and replaces
`ifs` and `cases` with `with`.

* Add team_member_limit to plan definition

* Create usage and limits functions for team members

* Apply team member limit when inviting new users

* Add team members to Usage & Limits section

* Change invite function to receive email address instead of %User{}

* Wrap invite function in a DB transaction

* Remove unnecessary joins from team member usage query

* Replace UNION ALL with UNION to remove duplicates
2023-09-04 09:55:07 -03:00
..
mix/tasks Refactor Plausible.Billing.Plans module (#3268) 2023-08-16 13:38:38 -03:00
plausible Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
plausible_web Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
workers Usage & Limits section (#3291) 2023-08-24 14:22:49 -03:00
oban_error_reporter.ex Delete stats improvements (#2318) 2022-10-10 08:55:58 -03:00
plausible_release.ex Start :ssl for migrations (#2818) 2023-04-04 10:47:31 +02:00
plausible_web.ex Prepare base for the funnel PRs merge (#2993) 2023-06-01 15:26:23 +02:00
plausible.ex Clean up after V2 migration (#2868) 2023-04-24 12:17:57 +02:00
sentry_filter.ex derive jason encoder for request (#3182) 2023-07-24 14:46:57 +02:00