analytics/test/support
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
..
conn_case.ex Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
data_case.ex Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
exchange_rate_mock.ex Revenue tracking: Add currency field to goal creation (#2948) 2023-05-23 12:08:09 +02:00
factory.ex Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
google_api_mock.ex Referrer drilldown (#252) 2020-07-30 11:18:28 +03:00
html.ex Improve goal settings UX (#3293) 2023-09-04 13:44:22 +02:00
paddle_api_mock.ex do not show invoices for free subscription (#2249) 2022-09-22 17:25:24 -03:00
test_utils.ex Fix test flakiness due to shared state in asynchronous run (#3184) 2023-07-24 14:43:28 +02:00