1692 Commits

Author SHA1 Message Date
3c21a121eb Plugins: Unifying alpha state & options for all plugins (#16530)
* app pages

* app pages

* workign example

* started alpha support

* remove app stuff

* show warning on alpha/beta panels

* put app back on plugin file

* fix go

* add enum for PluginType and PluginIncludeType

* Refactoring and moving settings to plugins section

fixes #16529
2019-04-12 13:46:42 +02:00
30dcf0f6c5 Revert "Build: Upgrades to go 1.12.3 (#16491)" (#16544)
This reverts commit 44b365028f37a5423de2b634b32596222a5e553b.
2019-04-12 11:17:31 +02:00
44b365028f Build: Upgrades to go 1.12.3 (#16491)
fixes go vet issue that 1.12.3 detects
2019-04-12 09:44:02 +02:00
d6887bf77f Plugins: Optionally preload some plugins during frontend app boot (#15266)
* auto load

* update comments

* gofmt

* use preload from json

* fix formatting

* change general plugin loader to app

* Refactoring: Plugin preloading #15266
2019-04-11 08:02:22 +02:00
2d7fc55df7 Provisioning: Do not allow deletion of provisioned dashboards (#16211)
* Unprovision dashboard in case of DisableDeletion = true

* Rename command struct

* Handle removed provision files

* Allow html in confirm-modal

* Do not show confirm button without onConfirm

* Show dialog on deleting provisioned dashboard

* Changed DeleteDashboard to DeleteProvisionedDashboard

* Remove unreachable return

* Add provisioned checks to API

* Remove filter func

* Fix and add tests for deleting dashboards

* Change delete confirm text

* Added and used pkg/errors for error wrapping
2019-04-10 13:29:10 +02:00
67cbc7d4cf Chore: use remote cache instead of session storage (#16114)
Replaces session storage in auth_proxy middleware with remote cache

Fixes #15161
2019-04-08 14:31:46 +03:00
5da1faf454 Alerting: Notification channel http api fixes (#16379)
Fixes so it's possible to create new notification channel and providing uid.
Fixes better error/result handling when updating a notifcation channel.

Fixes #16372
Ref #16219 #16012
2019-04-04 17:52:40 +02:00
2ae63e70c0 Alerting: Notification channel http api enhancements (#16219)
Now returns uid in response to get notification channel by id.
Adds GET/PUT/DELETE support for notification channel by uid, 
  /api/alert-notifications/uid/:uid.
Break apart alerting and alert notification http api docs in two 
  pages and update documentation to make it up to date
  with current implementation.

Fixes #16012
2019-03-26 18:37:02 +07:00
fda7e686f3 Merge pull request #15205 from seanlaff/12556-oauth-pass-thru
Add oauth pass-thru option for datasources
2019-03-25 21:52:20 +01:00
b696492891 Rename dispatched commands to make them easy to grok 2019-03-20 14:32:41 -04:00
a615b78f8a permissions: removes global access to bus from MakeUserAdmin. 2019-03-19 14:01:20 +01:00
adf0390b2c teams: local access to bus, moving away from dep on global. 2019-03-19 14:01:20 +01:00
6589a4e55f teams: better names for api permissions. 2019-03-19 14:01:20 +01:00
9f8e43916d permissions: refactor. 2019-03-19 14:01:19 +01:00
3f57a81c47 teams: cleanup. 2019-03-19 14:01:16 +01:00
fc0461134f dashboards: simplified code. 2019-03-19 14:01:15 +01:00
b60e71c28b teams: moved logic for searchteams to backend 2019-03-19 14:01:15 +01:00
782b5b6a3a teams: viewers and editors can view teams 2019-03-19 14:01:14 +01:00
c420af16b1 teams: editor/viewer team admin cant remove the last admin. 2019-03-19 14:01:14 +01:00
c823ad5de7 team: uses PermissionType instead of int64 for permissions. 2019-03-19 14:01:13 +01:00
21d3d27452 teams: editors can't remove the last admin from a team. 2019-03-19 14:01:13 +01:00
b783fa7039 team: renames teams.CanUpdate teamguardian.CanAdmin 2019-03-19 14:01:12 +01:00
a90b3e331e config: updated feature toggle name 2019-03-19 13:59:39 +01:00
0b209de5d1 dashboard: only admin permission added to dashboard in folder. 2019-03-19 13:57:30 +01:00
d593ffe3c1 dashboards: better error handling 2019-03-19 13:57:30 +01:00
89d4db8eb6 teams: team listing shows only your teams (editors). 2019-03-19 13:57:29 +01:00
1f949e58e1 teams: teams guard on all teams update methods. 2019-03-19 13:57:29 +01:00
23231e6d51 teams: added delete team guard 2019-03-19 13:57:29 +01:00
8e7a8282c1 teams: removed feature toggle as it is already in middleware 2019-03-19 13:57:28 +01:00
d668550aa2 teams: added feature toggle and refactor tests 2019-03-19 13:57:28 +01:00
0d61f89577 teams: cleanup. 2019-03-19 13:57:28 +01:00
5adde259d3 teams: team update test 2019-03-19 13:57:26 +01:00
074ebf0f48 teams: only write error message if error 2019-03-19 13:57:25 +01:00
2a88052c14 teams: can update team members permission. 2019-03-19 13:57:23 +01:00
af4994ba16 teams: editor added as admin for created teams. 2019-03-19 13:57:22 +01:00
22e098b830 teams: editors can work with teams. 2019-03-19 13:57:22 +01:00
efbd93f824 teams: show teams and plugins for editors that can own 2019-03-19 13:57:22 +01:00
124fb743e8 teams: make test cases pass again 2019-03-19 13:57:21 +01:00
da3dcd1918 folder: uses service to make user admin of created folder. 2019-03-19 13:57:21 +01:00
c8c004095c permissions: broken out func for making creator admin. 2019-03-19 13:57:21 +01:00
3f9a19dcd5 Merge branch 'master' into 12556-oauth-pass-thru 2019-03-14 13:18:00 -04:00
8221c4273f Merge pull request #15998 from grafana/add-grafana-user-proxy-header
Add custom header with grafana user when using proxy
2019-03-14 17:29:06 +01:00
23852b59c9 Merge pull request #15839 from grafana/15836_revoke_auth_tokens
Support list and revoke of user auth tokens in HTTP API
2019-03-14 17:12:49 +01:00
697a87b7b2 Add check so that header is not sent for anonymous users 2019-03-14 16:33:21 +01:00
bbdc1c0e64 Add custom header with grafana user and a config switch for it 2019-03-14 16:33:19 +01:00
fcc18d8121 Change import path for social in the tests 2019-03-13 14:55:22 -04:00
8d8119aa98 Change import path for social since it has moved 2019-03-13 14:34:55 -04:00
8d19ca005f Merge branch 'master' into 12556-oauth-pass-thru 2019-03-13 14:25:43 -04:00
7e62394d01 Add function in ds_proxy to handle oauthPassThru headers 2019-03-13 13:45:32 -04:00
4324a7f51a Remove auth module from ds_proxy oauth test 2019-03-13 13:28:49 -04:00