analytics/test
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
..
e2e Add webhook alert from Checkly -> Instatus (#2840) 2023-07-12 14:04:56 +02:00
load Fix script path for k6 load test (#2068) 2022-07-29 09:00:50 -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
priv Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00
support Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
workers Avoid suggesting plan for trials switching to enterprise plans (#3282) 2023-08-21 09:01:50 -03:00
test_helper.exs Remove Props FF (#3242) 2023-08-31 11:14:54 -03:00