0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/cypress/fixtures/api
Michael Matloka 3c0737f0fd
Plugins access control (#3486)
* Add Organization.PluginsAccess

* Rename PluginsAccess to PluginsAccessLevel

* Use Organization.plugins_access_level in can_…_plugins_via_api

* Add migration for Organization.plugins_access_level

* Remove unused PLUGINS_CLOUD_WHITELISTED_ORG_IDS

* Update access.py

* Add OrganizationPluginsAccessLevel TS enum

* Fix merge

* Disable LocalPlugin UI on Cloud

* Move away from PluginAccess interface

* Extend PluginsAccessLevel range

* Refactor PluginsAccessLevel for brevity

* Remove PluginAccess interface completely

* Add plugins managed globally

* Update migration

* Show managing org name in "Managed" plugin tag

* Smoothen some rough edges

* Smoothen more edges

* Restore correct MULTI_TENANCY default

* All the edges

* Fix most existing tests

* Remove PLUGINS_*_VIA_API env var support

* Update pluginsNeedingUpdates

* Remove can_*_plugins_via_api from instance status page

* Add tests and polish permissioning

* Update migration

* Fix typing

* Make plugin drawer UI less intrusive

* Update migration

* Fix Uninstall button condition

* Use unified _preflight status endpoint instead of the custom plugins one

* Fix plugin update label condition

* Fix "Check for updates" button condition

* Explain PluginsAccessLevel choices with comments

* Hide global plugin installation option on self-hosted

* Don't actions.loadRepository() as install org

* Improve permissioning with tests

* Satisfy mypy

* Add plugins access level to admin and fix org admin

* Check plugins access level more

* Rename endWithPeriod

* Refactor FE access control checks to accessControl.ts

* Deduplicate permissioning

* Add exception message

* Align backend and frontend plugins access level helpers

* Add plugins access level helper tests

* Fix ChartFilter
2021-03-17 15:01:55 +01:00
..
action Trend component test (#3278) 2021-02-17 13:50:41 +02:00
cohort Trend component test (#3278) 2021-02-17 13:50:41 +02:00
event Allow viewing sessions/recordings on persons page (#3302) 2021-02-11 21:14:28 +02:00
insight Add test for bar charts (#3474) 2021-02-26 16:50:36 +02:00
person Persons component test (#3266) 2021-02-10 08:25:17 +02:00
projects React component tests with cypress (#3233) 2021-02-09 17:28:01 +02:00
annotations.json Trend component test (#3278) 2021-02-17 13:50:41 +02:00
dashboard.json React component tests with cypress (#3233) 2021-02-09 17:28:01 +02:00
person.json Allow viewing sessions/recordings on persons page (#3302) 2021-02-11 21:14:28 +02:00
personal_api_keys.json React component tests with cypress (#3233) 2021-02-09 17:28:01 +02:00
sessions_filter.json React component tests with cypress (#3233) 2021-02-09 17:28:01 +02:00
user.json Plugins access control (#3486) 2021-03-17 15:01:55 +01:00