analytics/test/plausible_web/controllers
Adrian Gruntkowski 74dcd3d29b
Switch listing team members view to read from Teams schemas (#4802)
* Modify test utils to use teams test factories

* Implement alternative routes for updating and removing membership

* Implement teams read adapter for listing site members and invitees

* Use new teams read adapter for Settings > People view

* Add `invitation_id` column to `guest_invitations` schema

* Add `invitation_id` to `GuestInvitation` schema and populate it

* Sync guest invitation's invitation ID instead of team invitation

* Expose guest invitation's invitation ID in sites list

* Sync guest invitation invitation ID instead of team invitation in backfill

* Update team consistency check to account for guest invitation IDs

* Remove workaround for no invitation ID on guest invitation in `list_people`

* Test listing pending invitations

* Test listing memberships

* Format

* Test membership changes via new routes

* Remove old membership altering routes

* Clean up

* Revert "Modify test utils to use teams test factories"

This reverts commit 5eb8754782.

* Ensure test setup provisions teams for people listing

* See if we can avoid exposing user id

* Revert "See if we can avoid exposing user id"

This reverts commit 672429b9d1.

* Fix faulty member label in people list

* Fix sites listing for a case of pending invite with existing pin

---------

Co-authored-by: hq1 <hq@mtod.org>
2024-11-13 12:32:57 +00:00
..
api Channels: Read from new column, don't write (#4800) 2024-11-12 12:30:11 +00:00
auth_controller Fix flaky auth rate limit tests and refactor auth rate limiting (#4401) 2024-08-09 14:58:34 +02:00
CSVs Channels: Read from new column, don't write (#4800) 2024-11-12 12:30:11 +00:00
site Switch listing team members view to read from Teams schemas (#4802) 2024-11-13 12:32:57 +00:00
admin_auth_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
admin_controller_test.exs Implement search in Details views (#4318) 2024-07-09 15:01:52 +03:00
auth_controller_test.exs Delete teams along with users on DELETE /me (#4734) 2024-10-24 10:24:12 +00:00
avatar_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
billing_controller_test.exs Account settings w sidebar (#4654) 2024-10-08 08:30:01 +00:00
error_report_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
google_analytics_controller_test.exs Use :domain uniformly for all routes instead of :website (#4598) 2024-09-26 08:20:35 +00:00
help_scout_controller_test.exs Implement user notes in CRM and HelpScout integration (#4611) 2024-09-25 14:56:33 +00:00
invitation_controller_test.exs Fix team sync on ownership transfer removal (#4813) 2024-11-12 15:08:42 +00:00
page_controller_test.exs Implement token-based sessions (#4463) 2024-09-03 11:34:37 +02:00
settings_controller_sync_test.exs Account settings w sidebar (#4654) 2024-10-08 08:30:01 +00:00
settings_controller_test.exs Account settings w sidebar (#4654) 2024-10-08 08:30:01 +00:00
site_controller_test.exs Switch listing team members view to read from Teams schemas (#4802) 2024-11-13 12:32:57 +00:00
stats_controller_test.exs Channels: Read from new column, don't write (#4800) 2024-11-12 12:30:11 +00:00
unsubscribe_controller_test.exs Use :domain uniformly for all routes instead of :website (#4598) 2024-09-26 08:20:35 +00:00