* Get #team_effective_membership_level under test
* Extract method into class
* Refactor team_effective_membership_level to require less lookups
* Test and scaffolding for dashboard methods
* Move dashboard methods to user_permissions
* Optimize dashboard methods
* Insights priviledge logic to user_permissions
* Make insight priviledge code efficient
* Fix bug to improve efficiency
* Refactor efficiency tests
* Use UserPermissions in some dashboard-related views
* Use UserPermissions in some insight-related views
* Fix a typo
* Remove insight, dashboard model methods
* Experiment: make shared dashboards not have effective_priviledge_levels/effective_restriction_level
* Remove team#get_effective_membership_level
* Simplify TeamBaseSerializer
* Update organization API
* Update UserViewSet
* update team view
* Reduce some lookups
* Make UserPermissions not dependant on organization being passed
* cast-to-user
* Test listing with basic as FE calls it
* Update dashboard views
* JOIN organizations table, dont rely on request.user.organization
* Update snapshots
* Handle shared dashboards slightly better
* Simplify team API
* Fix test_team.py
* Update middleware tests
* Update ee team tests
* Fully refactor a problematic call pattern
* Solve ee API errors
* Solve lint fails
* Reset in insights as well
* Cast
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Remove merge conflict
* Update snapshots
* Remove items
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>