Marcus Efraimsson
95d063621e
dashboards: new route for deleting dashboards by uid
2018-01-31 18:40:54 +01:00
bergquist
9aa488c084
Merge remote-tracking branch 'origin/7883_frontend_step' into 7883_backend
...
* origin/7883_frontend_step:
dashboards: make scripted dashboards work using the old legacy urls
dashboards: redirect from old url used to load dashboard to new url
dashboards: add new default frontend route for rendering a dashboard panel
dashboards: fix links to recently viewed and starred dashboards
dashboards: use new *url* prop from dashboard search for linking to dashboards
dashboards: when saving dashboard redirect if url changes
dashboards: add new default frontend route for loading a dashboard
dashboards: return url in response to save dashboard. #7883
2018-01-31 15:57:03 +01:00
bergquist
bb3183f6cd
removes uniqnes check on slug when saving dashboards
2018-01-31 10:29:52 +01:00
Marcus Efraimsson
369597f7b2
dashboards: return url in response to save dashboard. #7883
2018-01-31 00:09:14 +01:00
Marcus Efraimsson
fd59241e35
dashboards: revert adding api for retrieving uid by slug
...
Since we're already have possibility to get a dashboard by slug
it makes little sense to have a separate endpoint in api for
retrieving uid by slug.
#7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
9fb7b887db
dashboards: add url property to dashboard meta and search api responses
...
#7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
7ee691dc48
dashboards: api for retrieving uid by slug. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
13d5db7d19
dashboards: add support for retrieving a dashboard by uid
...
Introduces new url in api /dashboards/<uid> for fetching dashboard by unique id
Leave the old dashboard by slug url /dashboards/db/<slug> for backward
compatibility and for supporting fallback
WIP for #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
46e1296700
dashboards: return uid in response to creating/updating a dashboard. #7883
2018-01-30 23:18:34 +01:00
Daniel Lee
a00a42d9ee
api: extract api test code to common_test.go
2018-01-30 13:17:48 +01:00
Marcus Efraimsson
f08932b78a
WIP: folder api. #10630
2018-01-30 10:53:28 +01:00
Daniel Lee
d74a98feff
dashfolders: link to folder for inherited permissions
...
In the permissions view in dashboard settings, this adds a
link to the parent folder for inherited permissions. Which
allows the user to easily navigate to the folder and change
inherited permissions.
2018-01-29 16:10:47 +01:00
bergquist
67a9e6a71d
provisioing: add lookup table provisioned dashboards
2018-01-23 21:52:55 +01:00
Daniel Lee
94a54248c1
dashfolders: show folders use can save to in picker
...
Instead of returning all folders a user has some sort of access to,
this change creates a new end point that returns folders the user
has write access to. This new endpoint is used in the folder picker
2018-01-20 01:58:28 +01:00
Daniel Lee
c27a74bb6b
dashfolders: check permissions for new dashboard
...
ref #10275 . Use the parent folder permissions if new dashboard and
it does not have an id yet.
2018-01-09 14:44:36 +01:00
Daniel Lee
61ed0b0381
dashfolders: remove role requirements on dashboard routes
...
and rely on the permission system instead.
2018-01-09 14:44:36 +01:00
Torkel Ödegaard
a7645b710d
Merge remote-tracking branch 'origin/master' into develop
2017-12-13 19:18:10 +01:00
Carl Bergquist
35106537f2
Replace Read Only Editor role with ViewersCanEdit setting ( #10166 )
...
* removes readonly editor role
* adds viewersCanEdit setting
This enable you to allow viewers to edit/inspect
dashboards in grafana in their own browser without
allowing them to save dashboards
* remove read only editor option from all dropdowns
* migrates all read only viewers to viewers
* docs: replace readOnlyEditor with viewersCanEdit
2017-12-13 18:53:42 +01:00
Torkel Ödegaard
8a61e0967e
Merge branch 'master' into develop
2017-12-12 13:22:13 +01:00
Torkel Ödegaard
cafed8ce8f
Merge branch 'master' into develop
2017-12-12 13:19:07 +01:00
bergquist
ff1b71bc20
allow overriding dashboards from api
2017-12-12 13:18:00 +01:00
bergquist
5aab6b5c20
removes last pieces of dashboard.json
2017-12-07 16:26:07 +01:00
bergquist
f5eac2e91d
dashboards as cfg: expose dashboard service as interface
2017-12-07 15:27:01 +01:00
bergquist
16f072b320
dashboards as cfg: move saving logic for dashboards into its own service
2017-12-07 15:27:01 +01:00
bergquist
9cebb23e01
dashboards as cfg: revert minor changes
2017-12-07 15:27:01 +01:00
Daniel Lee
f70fb7dbf3
dashboard: fix home dashboard getting started panel
2017-10-24 19:22:56 +02:00
Torkel Ödegaard
df61558018
grid: fixed geting started panel pos
2017-10-10 19:48:06 +02:00
Torkel Ödegaard
4819e50441
newgrid: fixes to default home dashboard
2017-08-25 14:47:57 +02:00
Torkel Ödegaard
3066280216
added code from #8504 , and #8021
2017-06-23 17:13:58 -04:00
Torkel Ödegaard
fc69d59cae
dashboard folder search fix
2017-06-23 16:00:26 -04:00
Daniel Lee
6d86afd472
dashfolders: use canadmin permission in settings menu
2017-06-23 00:36:17 +02:00
Torkel Ödegaard
aa634402d9
dashboard acl fixes
2017-06-22 17:43:55 -04:00
Torkel Ödegaard
74840178cf
refactoring dashboard folder security checks
2017-06-19 15:22:42 -04:00
Torkel Ödegaard
f7194878fe
dashboard guardian refactoring starting to work
2017-06-19 13:47:44 -04:00
Torkel Ödegaard
d6341162cb
refactoring dashboad folder acl checks
2017-06-19 11:54:37 -04:00
Torkel Ödegaard
cbbbccf12a
refactoring dashoard folder guardian
2017-06-17 18:24:38 -04:00
Torkel Ödegaard
3fe031d25d
refactoring: Dashboard guardian
2017-06-16 21:25:24 -04:00
Torkel Ödegaard
d9dca72ee4
dashboard_folders: refactoring picker and folder selection in dashboard settings & save as menu
2017-06-16 16:57:37 -04:00
Daniel Lee
dd02bf7c9b
WIP: adds API check to stop folders being included in folders
2017-06-16 02:45:47 +02:00
Daniel Lee
92717ccafb
WIP: permission checking for dash version api methods
2017-06-14 00:28:34 +02:00
Daniel Lee
a861b1b9ba
WIP: check permissions for delete/post dashboard
2017-06-12 23:05:32 +02:00
Daniel Lee
3913f16550
WIP: add permission check for GetDashboard
2017-06-12 16:48:51 +02:00
Daniel Lee
5c89c4b2bd
WIP: dashlist in template for new folder
2017-06-12 15:49:09 +02:00
Daniel Lee
82afe8228f
WIP: add parentid to getdashboard query result
2017-06-12 15:49:09 +02:00
Daniel Lee
f1e1da39e3
WIP: get Dashboard Permissions
...
The guardian class checks if the user is allowed to get the
permissions for a dashboard.
2017-06-12 15:49:09 +02:00
Torkel Ödegaard
46412c8475
dasboard_history: security fix, added orgId filter to dashboard version lookup
2017-06-07 14:21:40 +02:00
Torkel Ödegaard
ef1dfed0d8
dasboard_history: big refactoring of how the compare api looked, now a POST with a model for new & base version, refactored a simplified UI code as well, this was done to lay foundation to make it possible to do diff against current in browser unsaved version
2017-06-07 11:50:09 +02:00
Torkel Ödegaard
948e5ae74d
dashboard_history: further css & markup fixes, removing style overrides & resuing existing styles and markup components
2017-06-06 23:04:14 +02:00
Torkel Ödegaard
7b5f7ed553
dashboard_history: SQL did not work when using MySQL, fixes to dashboard version numbering, so inserts start at 1, added migration to fix old dashboards with version 0
2017-06-06 15:40:10 +02:00
Torkel Ödegaard
e2061312f5
refactoring: moved compare dashboard version command out of sqlstore, the code in this command did not use any sql operations and was more high level, could be moved out and use existing queries to get the versions
2017-06-06 00:15:40 +02:00