Marcus Efraimsson
95d063621e
dashboards: new route for deleting dashboards by uid
2018-01-31 18:40:54 +01:00
Marcus Efraimsson
c19f4a866f
Merge pull request #10695 from grafana/7883_frontend_step
...
WIP: Dashboard & Persistent urls - Frontend Step
2018-01-31 18:37:05 +01:00
Torkel Ödegaard
75cf9ae27d
fix: use replace when redirecting to new url
2018-01-31 17:26:35 +01:00
Marcus Efraimsson
57edf89033
dashboards: make scripted dashboards work using the old legacy urls
...
Scripted dashboards are still requested from /dashboard/script/scripted.js
#7883
2018-01-31 14:07:49 +01:00
Marcus Efraimsson
a99331cdb9
dashboards: redirect from old url used to load dashboard to new url
...
If legacy backend routes (/dashboard/db/<slug> and /dashboard-solo/db/<slug>)
are requested we try to redirect to new routes with a 301 Moved Permanently
#7883
2018-01-31 14:06:19 +01:00
Marcus Efraimsson
3efb3d8efa
dashboards: add new default frontend route for rendering a dashboard panel
...
New default route /d-solo/<uid>/<slug of dashboard title> where dashboard
panel are rendered by unique identifier and panel identifier.
If old route /dashboard-solo/db/<slug of dashboard tile> are used,
try to lookup dashboard by slug and redirect to new default route.
Change url logic for sharing a panel so that the new default route
for rendering a dashboard panel are used.
#7883
2018-01-31 11:01:23 +01:00
Marcus Efraimsson
7734df1d18
dashboards: fix links to recently viewed and starred dashboards
...
Use new property url from dashboard search for linking to dashboards
#7883
2018-01-31 00:48:36 +01:00
Marcus Efraimsson
f2014223b4
dashboards: use new *url* prop from dashboard search for linking to dashboards
...
#7883
2018-01-31 00:42:17 +01:00
Marcus Efraimsson
8009307c16
dashboards: when saving dashboard redirect if url changes
...
Redirect if new dashboard created or existing url changes.
#7883
2018-01-31 00:32:51 +01:00
Marcus Efraimsson
aefcff26a6
dashboards: add new default frontend route for loading a dashboard
...
New default route /d/<uid>/<slug of dashboard title> where dashboard
are loaded by unique identifier.
If old route /dashboard/db/<slug of dashboard tile> are used,
try to lookup dashboard by slug and redirect to new default route.
#7883
2018-01-31 00:27:51 +01:00
Marcus Efraimsson
369597f7b2
dashboards: return url in response to save dashboard. #7883
2018-01-31 00:09:14 +01:00
Marcus Efraimsson
6ab526881a
dashboards: ensure that uid is returned from getSaveModelClone
...
Without this the uid will not be sent to the backend when saving a
dashboard.
#7883
2018-01-31 00:06:31 +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
4829ea0e9f
util: remove retry logic in shortid_generator
...
Use shortid.MustGenerate() instead of shortid.Generate(). Instead
of returning errors it will panic.
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
c1cff3849e
dashboard: change unique index for uid to include org_id
...
Make the max length of uid longer in case we want to change it later
#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
Marcus Efraimsson
e229f8aea8
dashboards: extract short uid generator to util package. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
fc7bab8bf0
dashboard: fix failing test. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
5b35c694dc
dashboard: generate and include uid in dashboard model. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
025a14ec24
db: add migrations for creating a unique index for uid. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
50aa9ec69c
db: add migrations for generating uid for existing dashboards. #7883
2018-01-30 23:18:34 +01:00
Marcus Efraimsson
401b01e1e6
db: add new column uid to the dashboard table. #7883
2018-01-30 23:18:34 +01:00
Patrick O'Carroll
2c8e448559
moved icon ( #10681 )
2018-01-30 20:01:12 +01:00
Torkel Ödegaard
7cd379ac9f
docs: fixed order of sidemenu
2018-01-30 16:14:28 +01:00
bergquist
8c8328eac5
test: fixes failing test in go1.10
2018-01-30 16:00:32 +01:00
Torkel Ödegaard
cca050ea14
docs: updated versions.json
2018-01-30 15:07:52 +01:00
Torkel Ödegaard
b4aa92e7ff
docs: added versions file
2018-01-30 13:28:16 +01:00
Alexander Zobnin
f8faa7dbba
Merge branch 'ilgizar-10672_outside_the_row'
2018-01-30 14:20:24 +03:00
Alexander Zobnin
526960058a
repeat panel: minor refactor
2018-01-30 14:19:10 +03:00
ilgizar
1c95da8f23
Fix horizontal panel repeat. Fix #10672 .
2018-01-30 09:52:30 +05:00
Johannes Schill
0573545d5a
ui: Fix Firefox align issue in dropdowns #10527 ( #10662 )
2018-01-29 17:06:16 +01:00
Torkel Ödegaard
b1cf4cf01c
fix: InfluxDB Query Editor and selecting template variable in where clause caused issue, fixes #10402 , fixes #10663
2018-01-29 17:04:29 +01:00
Alexander Zobnin
479658489a
fix: remove repeated rows when repeat was disabled. ( #10653 )
2018-01-29 15:17:27 +01:00
Alexander Zobnin
04053ec56c
fix: don't show manually hidden sidemenu after view mode toggle ( #10659 )
2018-01-29 14:33:41 +01:00
Alexander Zobnin
b3ac85766e
fix: show sidebar after mouse wheel scrolling ( #10657 )
2018-01-29 13:38:37 +01:00
Torkel Ödegaard
a0323e96fa
fix: tweak of PR #10635
2018-01-29 10:46:05 +01:00
Torkel Ödegaard
dd4374cc65
Merge remote-tracking branch 'origin/10612_table-date-format'
2018-01-29 10:41:57 +01:00
Torkel Ödegaard
9363c40a0c
Merge branch 'master' of github.com:grafana/grafana
2018-01-29 10:41:28 +01:00
Torkel Ödegaard
b6ce16ebae
ux: minor tweak of #10634
2018-01-29 10:41:06 +01:00
bergquist
2782ad0955
plugins: only set error if errorstring is not empty
2018-01-29 09:53:18 +01:00
Torkel Ödegaard
c5a75ab84a
Merge remote-tracking branch 'origin/10628_search_media_break'
2018-01-29 09:29:46 +01:00
Torkel Ödegaard
cd2161e796
Revert "Fix typeahead to avoid generating new backend request on each keypress. ( #10596 )"
...
This reverts commit 475febd004
.
2018-01-29 08:38:23 +01:00
Patrick O'Carroll
5f81f401e3
replaced input with gf-form-dropdown
2018-01-26 17:25:12 +01:00
Patrick O'Carroll
ffff75b01a
reverted media queries
2018-01-26 16:59:16 +01:00
bergquist
c34d458b94
Merge branch 'go1.9.3'
...
* go1.9.3:
tech: upgrade to golang 1.9.3
2018-01-26 16:00:31 +01:00
Alexander Zobnin
e6c19eb8e9
graphite: fix nested alerting queries ( #10633 )
2018-01-26 15:05:05 +01:00
Patrick O'Carroll
2f891726c3
fix for sm
2018-01-26 14:57:55 +01:00