0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/ee
Michael Matloka eb6db7c075
Project-based permissioning members addition + removal (#6028)
* Refactor `AvailableFeature` from strings to an enum everywhere

* Fix circular dependency and type

* Add "Per-project access" feature flag, premium feature, and organization switch

* Rename `OrganizationMembershipLevel` to `OrganizationAccessLevel`

* Create `ExplicitTeamMembership` model

* Show whether projects are restricted in the project switcher

* Update organizations API code

* Fix migrations

* Move organization tests that require EE to `ee`

* Revert `OrganizationMembershipLevel` rename

* Fix organization tests

* Update migration

* Fix schema and add Members to Project Settings

* Build out test memberships API with security tests

* Update `TeamMembers` and `teamMembersLogic`

* Move "Per-project access" description to tooltip

* Add moar tests

* Fix Project Members list logic

* Add additional membership checks

* Update migrations

* Fix typing

* Adjust explicit team memberships API similarly

* Fix typo

* Unify `ExplicitTeamMemberSerializer`

* Remove old changes to `membersLogic` usage

* Use `effective_membership_level` on `TeamBasicSerializer`

* Clean up organization update tests

* Explicitly disallow enabling per-project access for free

* Fix circular import

* Remove `id` from `UserSerializer`

* Fix typing

* Try to fix import

* Fix fatal typing

* Add more tests

* Update permissioning.ts

* Add clarifying comment to migration

* Fix import

* Revert `TopNavigation` changes

* Add project member addition button+modal

* minor clarifications

* Revert `TopNavigation` changes

* Make new access control entirely project-based

* Update migrations

* Add `project_based_permissioning` to `TeamBasicSerializer`

* Update test_team.py

* Fix Access Control restriction tooltip

* minor improvements

* fix frontend typing

* Fix frontend typing a bit more

* adjust copy & UI a bit

* Address feedback on field comment

* "Privacy settings" to "Access Control"

* Make `FusedTeamMemberType` comment clearer

* Remove useless `export`

* Delete 0169_project_based_permissioning.py

* Clean some code up a bit

* Project-based permissioning member removal (#6067)

* Fix  `teamMembersLogic` loaders

* Allow explicit project members to leave

* Add member removal/leaving button to Members with Project Access

* Restore error message

* Fix error message

* Correct things

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-22 17:32:35 +00:00
..
api Project-based permissioning members addition + removal (#6028) 2021-09-22 17:32:35 +00:00
bin Revert "Fix CH no data blocker (#5238)" (#5239) 2021-07-21 06:38:08 +00:00
certs
clickhouse fix(breakdown): resolve week rounding interval over shoot for trends (#6053) 2021-09-22 18:28:25 +01:00
idl
kafka_client
management/commands Move is_clickhouse_enabled from posthog.ee to posthog.utils (#5902) 2021-09-11 01:43:24 +02:00
migrations Project-based permissioning framework (#5976) 2021-09-22 18:29:59 +02:00
models Project-based permissioning framework (#5976) 2021-09-22 18:29:59 +02:00
tasks Send license usage (#6060) 2021-09-22 14:17:38 +02:00
__init__.py
apps.py
conftest.py dev(clickhouse): raise clickhouse setup errors quickly (#6069) 2021-09-22 10:22:52 +00:00
docker-compose.ch.arm64.yml ClickHouse M1 Docker (#5215) 2021-09-13 13:01:24 +02:00
docker-compose.ch.test.yml SAML deps build (#5932) 2021-09-14 11:43:26 +02:00
docker-compose.ch.yml Include users.xml config for dev/test clickhouse instance (#5732) 2021-08-25 01:47:15 +00:00
LICENSE
settings.py SAML deps build (#5932) 2021-09-14 11:43:26 +02:00
urls.py Project-based permissioning framework (#5976) 2021-09-22 18:29:59 +02:00