Marcus Efraimsson
55100d5ff9
Merge pull request #10760 from grafana/10749_link_to_folder
...
Fix link to folder from permissions list
2018-02-05 11:34:59 +01:00
Marcus Efraimsson
7d3b990e91
permissions: fix link to folder from permissions list
...
Also, closing Add Permissions CTA when DashboardPermissions and
FolderPermissions unmounts.
Fixes #10749"
2018-02-05 11:10:37 +01:00
Carl Bergquist
cc0cc8dd73
changes to new urlformat for home dashboard ( #10738 )
2018-02-05 10:24:48 +01:00
bergquist
130a2b6499
handle new error message
2018-02-02 11:06:32 +01:00
Daniel Lee
512f6992f1
dashfolders: rename Root folder to General. Closes #10692
2018-02-02 10:39:26 +01:00
Marcus Efraimsson
ef90b3e49c
Merge branch '7883_new_url_structure' into 7883_frontend_step2
2018-02-01 11:08:39 +01:00
Marcus Efraimsson
b135df9a6c
Merge remote-tracking branch 'upstream/master' into 7883_new_url_structure
2018-02-01 10:48:06 +01:00
Carl Bergquist
eff687bece
Merge pull request #10694 from grafana/7883_backend
...
backend for new url structure.
2018-02-01 09:35:00 +01:00
Marcus Efraimsson
90933b0621
dashboard: refactor logic for retrieving url for folder/dashboard
2018-01-31 23:14:48 +01:00
Marcus Efraimsson
c0c3f17d84
dashboards: when restoring a dashboard to an older version, set current uid
2018-01-31 18:40:54 +01:00
Marcus Efraimsson
b23560ed5a
dashboards: add validation to delete dashboard by slug
...
Validates that there are only one folder/dashboard having that slug,
otherwise returns 412 Precondition Failed
2018-01-31 18:40:54 +01:00
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
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
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