grafana/pkg/services
Ieva 52220b2470
AccessControl: frontend changes for adding FGAC to licensing (#39484)
* refactor licenseURL function to use context and export permission evaluation fction

* remove provisioning file

* refactor licenseURL to take in a bool to avoid circular dependencies

* remove function for appending nav link, as it was only used once and move the function to create admin node

* better argument names

* create a function for permission checking

* extend permission checking when displaying server stats

* enable the use of enterprise access control actions when evaluating permissions

* import ordering

* move licensing FGAC action definitions to models package to allow access from oss

* move evaluatePermissions for routes to context serve

* change permission evaluator to take in more permissions

* move licensing FGAC actions again to appease wire

* avoid index out of bounds issue in case no children are passed in when creating server admin node

* simplify syntax for permission checking

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* update loading state for server stats

* linting

* more linting

* fix test

* fix a frontend test

* update "licensing.reports:read" action naming

* UI doesn't allow reading only licensing reports and not the rest of licensing info

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-10-05 14:54:26 +01:00
..
accesscontrol AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
alerting Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
annotations Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
auth Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
cleanup Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
contexthandler Chore: Add context to user (#39649) 2021-10-04 15:46:09 +02:00
dashboards Chore: Propagate context for dashboard guardian (#39201) 2021-09-23 17:43:32 +02:00
dashboardsnapshots Chore: Refactor securedata to remove global encryption calls from dashboard snapshots (#38714) 2021-09-01 13:05:15 +02:00
datasourceproxy Macaron: remove custom Request type (#37874) 2021-09-01 11:18:30 +02:00
datasources Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
encryption Encryption: Extract encryption into service (#38442) 2021-08-30 19:39:55 +02:00
guardian Chore: Propagate context for dashboard guardian (#39201) 2021-09-23 17:43:32 +02:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
ldap LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
libraryelements LibraryPanels: Refactor to use context.Context instead of models.ReqContext (#39561) 2021-09-27 09:04:36 +02:00
librarypanels LibraryPanels: Refactor to use context.Context instead of models.ReqContext (#39561) 2021-09-27 09:04:36 +02:00
licensing AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
live Live: test pipeline convert endpoint (#39480) 2021-09-30 19:28:06 +02:00
login Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
multildap Chore: Enable errorlint linter (#29227) 2020-11-19 14:47:17 +01:00
ngalert Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
notifications Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
oauthtoken Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
provisioning Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
quota Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
rendering ImageRendering: fix leakage of the rendering inflight counter (#34607) 2021-08-28 09:05:03 +02:00
schemaloader Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
search Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
searchusers Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
secrets Security: Add secrets service (#39418) 2021-10-01 15:39:57 +03:00
shorturls Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
teamguardian chore: avoid aliasing imports in services (#22499) 2020-02-29 13:35:15 +01:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00