Torkel Ödegaard
1dab313ca3
Merge branch 'master' into develop
2017-08-14 10:30:36 +02:00
Daniel Lee
59513ff963
tempvar: bug fix for duplicate template var
...
and a fix for when selecting the same value twice in
a template variable if it is not multi select. It threw an
exception on the second selection
2017-08-09 14:28:23 +02:00
Torkel Ödegaard
9fb60c2fc8
Merge branch 'develop' into panel-title-menu-ux
2017-08-02 09:56:08 +02:00
Torkel Ödegaard
2d2800e710
fix: url did not update correctly when closing settings view by using ESC key, fixes #8869
2017-07-24 12:21:30 +02:00
Torkel Ödegaard
5360303ad4
ux: nav changes
2017-06-22 19:05:33 -04:00
Torkel Ödegaard
43ffe826fa
dashboard acl work
2017-06-20 17:18:20 -04:00
Torkel Ödegaard
3edd209736
dashboard acl modal
2017-06-20 12:36:07 -04:00
Torkel Ödegaard
6a95df403a
refacoring: more work on metric segment replacement
2017-06-14 19:42:45 -04:00
Torkel Ödegaard
380e7e7f04
Merge branch 'master' into metric-segment-remake
2017-06-14 16:17:13 -04:00
Torkel Ödegaard
9ff4ab1236
Merge branch 'master' into query_troubleshooting
2017-06-13 16:47:04 -04:00
Martin Molnar
d10d897d65
fix: component name of plugin page contains 'undefined' ( #8590 )
2017-06-12 15:11:00 +02:00
Torkel Ödegaard
217c746445
ux: close edit views when opening panel in edit mode
2017-06-08 14:23:51 +02:00
Torkel Ödegaard
8f6c9c5946
dasboard_history: some polish around styles & diff colors, and minor fixes
2017-06-07 12:39:06 +02:00
Torkel Ödegaard
f3980504e2
Merge branch 'master' into walmartlabs-master
2017-06-05 13:43:00 +02:00
Torkel Ödegaard
d47c47853a
ux: added css annimations for dash edit views
2017-06-02 15:29:25 +02:00
sanchitraizada
77c046aac6
Implement review feedback
2017-06-01 17:57:09 -04:00
sanchitraizada
e6616cc551
Merge pull request #10 from walmartlabs/version-control
...
History and Version Control for Dashboard Updates
2017-05-25 14:50:47 -07:00
Ben Tranter
b6e46c9eb8
History and Version Control for Dashboard Updates
...
A simple version control system for dashboards. Closes #1504 .
Goals
1. To create a new dashboard version every time a dashboard is saved.
2. To allow users to view all versions of a given dashboard.
3. To allow users to rollback to a previous version of a dashboard.
4. To allow users to compare two versions of a dashboard.
Usage
Navigate to a dashboard, and click the settings cog. From there, click
the "Changelog" button to be brought to the Changelog view. In this
view, a table containing each version of a dashboard can be seen. Each
entry in the table represents a dashboard version. A selectable
checkbox, the version number, date created, name of the user who created
that version, and commit message is shown in the table, along with a
button that allows a user to restore to a previous version of that
dashboard. If a user wants to restore to a previous version of their
dashboard, they can do so by clicking the previously mentioned button.
If a user wants to compare two different versions of a dashboard, they
can do so by clicking the checkbox of two different dashboard versions,
then clicking the "Compare versions" button located below the dashboard.
From there, the user is brought to a view showing a summary of the
dashboard differences. Each summarized change contains a link that can
be clicked to take the user a JSON diff highlighting the changes line by
line.
Overview of Changes
Backend Changes
- A `dashboard_version` table was created to store each dashboard
version, along with a dashboard version model and structs to represent
the queries and commands necessary for the dashboard version API
methods.
- API endpoints were created to support working with dashboard
versions.
- Methods were added to create, update, read, and destroy dashboard
versions in the database.
- Logic was added to compute the diff between two versions, and
display it to the user.
- The dashboard migration logic was updated to save a "Version
1" of each existing dashboard in the database.
Frontend Changes
- New views
- Methods to pull JSON and HTML from endpoints
New API Endpoints
Each endpoint requires the authorization header to be sent in
the format,
```
Authorization: Bearer <jwt>
```
where `<jwt>` is a JSON web token obtained from the Grafana
admin panel.
`GET "/api/dashboards/db/:dashboardId/versions?orderBy=<string>&limit=<int>&start=<int>"`
Get all dashboard versions for the given dashboard ID. Accepts
three URL parameters:
- `orderBy` String to order the results by. Possible values
are `version`, `created`, `created_by`, `message`. Default
is `versions`. Ordering is always in descending order.
- `limit` Maximum number of results to return
- `start` Position in results to start from
`GET "/api/dashboards/db/:dashboardId/versions/:id"`
Get an individual dashboard version by ID, for the given
dashboard ID.
`POST "/api/dashboards/db/:dashboardId/restore"`
Restore to the given dashboard version. Post body is of
content-type `application/json`, and must contain.
```json
{
"dashboardId": <int>,
"version": <int>
}
```
`GET "/api/dashboards/db/:dashboardId/compare/:versionA...:versionB"`
Compare two dashboard versions by ID for the given
dashboard ID, returning a JSON delta formatted
representation of the diff. The URL format follows
what GitHub does. For example, visiting
[/api/dashboards/db/18/compare/22...33](http://ec2-54-80-139-44.compute-1.amazonaws.com:3000/api/dashboards/db/18/compare/22...33 )
will return the diff between versions 22 and 33 for
the dashboard ID 18.
Dependencies Added
- The Go package [gojsondiff](https://github.com/yudai/gojsondiff )
was added and vendored.
2017-05-24 19:14:39 -04:00
Torkel Ödegaard
a0b9dcad4d
alert: alerting annotation improvements, fixes #8421
2017-05-22 13:02:49 +02:00
Torkel Ödegaard
5e090b84ec
feat: Copy to clipboard now works in query troubleshooter
2017-05-20 14:52:33 +02:00
Torkel Ödegaard
b8aa6a8e47
query: more work on metrics tab changes
2017-05-20 10:48:47 +02:00
Torkel Ödegaard
5909f9ef92
feat: more work on metrics tab reworkings
2017-05-19 21:32:23 +02:00
Torkel Ödegaard
25a267a7ab
fix: segment used influxdb naming for variable in options callback, should be more generic
2017-05-08 16:08:53 +02:00
lpavlovi
c323d2fc4c
Removed panelElemName - appears to not be used anywhere ( #8313 )
2017-05-07 08:19:08 +02:00
Torkel Ödegaard
f1276774a0
typescript: updated tslint and fixed new warnings
2017-04-20 11:16:37 +02:00
Torkel Ödegaard
9dc42648cf
fix(templating): fixed issue with experimental feature template variable value groups tags, fixes #6752
2017-01-02 13:32:20 +01:00
Torkel Ödegaard
98d1748e43
fix(templating): work on fixing exporting issues when using templating variables, like data source variables, and panel repeats, requires more work #6189
2016-11-17 12:32:11 +01:00
Torkel Ödegaard
f64385cfc9
ux(tweak): minor polish to date picker styling
2016-11-16 17:53:56 +01:00
huydx
f5a804a558
Fix typo (password strenght -> password strength)
2016-11-11 18:02:58 +09:00
Torkel Ödegaard
abf1f6a163
ux(dashboard): added back hide controls toggle and shortcut, #6442
2016-11-03 22:39:59 +01:00
Torkel Ödegaard
29e834e74b
feat(UX): revived dash-edit-mode branch, #6099
2016-10-23 10:05:31 +02:00
Torkel Ödegaard
1bb8192a38
Merge branch 'master' into dash-edit-mode
2016-10-23 10:03:55 +02:00
Torkel Ödegaard
918481909c
fix(metricsegment): fixed issue with metric segment, fixes #6212
2016-10-08 10:23:30 +02:00
Torkel Ödegaard
b65642564a
poc for new metric segment
2016-10-08 10:06:47 +02:00
Torkel Ödegaard
dacfa6b978
fixed issue in metric_segment
2016-10-06 15:09:02 +02:00
Torkel Ödegaard
2908c6a80b
fix(metricsegment): added min width for inputs for metric segment and value select components
2016-09-30 13:13:28 +02:00
Torkel Ödegaard
5682520603
feat(graph): more work on graph panel and support for non time series
2016-09-24 13:08:58 +02:00
Torkel Ödegaard
cd270f14a2
feat(graph): more work on graph panel and support for non time series
2016-09-23 17:12:10 +02:00
Torkel Ödegaard
f2f3115749
feat(graph panel): more progress on graph panel and non time series data support
2016-09-22 16:47:37 +02:00
Torkel Ödegaard
23246605b0
feat(graph panel): working on adding non time series support to graph panel
2016-09-22 16:05:20 +02:00
Torkel Ödegaard
f3d4a97f49
Merge branch 'master' into graph-panel-non-timeseries
2016-09-22 14:03:06 +02:00
cmartin0077
f91f74be04
fix(influxdb) autocomplete measurement while typing, fixes #4278 ( #5931 )
2016-09-15 16:11:38 +02:00
Torkel Ödegaard
0fa0066cd9
tech(lodash): began migration work
2016-09-13 22:10:44 +02:00
Torkel Ödegaard
d60bd77658
feat(annotations): added support to show grafana stored annotations in graphs, #5982
2016-09-08 11:25:45 +02:00
Torkel Ödegaard
395213abd7
feat(graph panel): more refactoring of #5917
2016-09-05 11:46:16 +02:00
cmartin0077
9c08d7aef5
fix(influxdb) fix tag value autocomplete with upper case values, fixes #5399 ( #5919 )
2016-08-29 13:03:54 +02:00
Torkel Ödegaard
ec0b09450c
Merge branch 'export-dashboard'
...
Conflicts:
conf/defaults.ini
pkg/setting/setting.go
public/app/core/components/grafana_app.ts
public/app/core/core.ts
public/app/features/dashboard/dashboardCtrl.js
2016-06-16 08:06:43 +02:00
Mitsuhiro Tanda
25899b72d2
use applyAsync for compile ( #5287 )
2016-06-06 17:18:18 +02:00
Torkel Ödegaard
53bb264375
Merge branch 'master' into export-dashboard
2016-05-28 17:17:51 +02:00
Carl Bergquist
a6afd85526
Merge pull request #5197 from minkikim89/fixtypo
...
Fixed type
2016-05-27 16:57:07 +02:00
Torkel Ödegaard
ba6573af61
Merge branch 'master' into export-dashboard
...
Conflicts:
public/app/features/dashboard/submenu/submenu.ts
2016-05-25 12:32:56 +02:00
Torkel Ödegaard
dfe3806d01
fix(elasticsearch): fixed query editor issue with elasticsearch
2016-05-23 10:14:40 +02:00
minki
70d6b32e14
Fixed type
2016-05-22 05:38:57 +09:00
Torkel Ödegaard
7cd663bbe8
feat(import): more import work
2016-05-14 10:00:43 +02:00
Torkel Ödegaard
d9d46096dd
feat(import): lots of work on dashboard import
2016-05-13 17:39:22 +02:00
Torkel Ödegaard
2c7447eaca
feat(): started work on new import system
2016-05-11 16:18:52 +02:00
Torkel Ödegaard
2546ec062b
Merge branch 'master' into dash-edit-mode
...
Conflicts:
public/app/features/dashboard/partials/settings.html
2016-04-29 14:50:17 +02:00
Torkel Ödegaard
65b4945548
Merge branch 'master' into query-editor-style
2016-04-27 08:43:34 +02:00
Torkel Ödegaard
aa98ada141
fix(snapshots): fixed snapshot issue introdiuced yesterday
2016-04-26 14:51:06 +02:00
Torkel Ödegaard
bbf4d00319
fix(query editors): added select style to segment, used by data source selector
2016-04-25 15:49:33 +02:00
Torkel Ödegaard
1a433de0b4
Merge branch 'master' into query-editor-style
2016-04-25 14:22:36 +02:00
Torkel Ödegaard
00827ce921
fix(): let binding cycle complete before adding panel to dom
2016-04-24 12:50:33 +02:00
Torkel Ödegaard
68bd82f1b6
Merge branch 'master' into query-editor-style
2016-04-16 13:46:05 -04:00
Matt Toback
a7e8e64d78
The beginnings of the build mode and rows
2016-04-15 19:52:18 -04:00
Torkel Ödegaard
5f6ecac3f9
poc(editmode): experimental edit mode
2016-04-15 15:11:40 -04:00
Torkel Ödegaard
dc7f8014a2
fix(app config): fixed issue with app config tab, fixes #4575
2016-04-06 08:43:06 -04:00
Torkel Ödegaard
a4f9621473
Merge branch 'master' into query-editor-style
2016-03-29 17:45:24 +02:00
Torkel Ödegaard
32c8f495ab
ux(): redesign of axis & grid forms
2016-03-29 12:32:40 +02:00
Torkel Ödegaard
8dee54bf5d
feat(live): progress on panel <-> data source communication patterns
2016-03-22 18:21:21 +01:00
Torkel Ödegaard
55189200a4
ux(): updated query editor test
2016-03-20 16:18:31 +01:00
Torkel Ödegaard
2adc4d12be
feat(live): work on websocket data source, #3455
2016-03-14 13:20:55 +01:00
Torkel Ödegaard
1951f3856f
feat(plugins): refactored datasourceEditCtrl to typescript, #4298
2016-03-10 09:47:29 +01:00
Torkel Ödegaard
cb8b038795
feat(templating): progress on templating rethink
2016-02-29 17:31:31 +01:00
Torkel Ödegaard
078e69d06d
feat(templating): simplified templating forms removed all formats
2016-02-29 17:07:53 +01:00
Mitsuhiro Tanda
09dfaf9875
timeFrom and timeShift templating
2016-02-29 17:53:41 +09:00
Torkel Ödegaard
d55dc92502
feat(plugins): restored config view functionality to plugin page
2016-02-26 18:55:17 +01:00
bergquist
f6457a2023
ux(templating): tight-form -> gf-form
2016-02-24 11:56:45 +01:00
Torkel Ödegaard
26c5029256
ux(): new dashboard tabs view
2016-02-23 13:20:59 +01:00
Torkel Ödegaard
a6a5f393cc
feat(annotations): updated flot events lib and refactored it to use tether-drop lib
2016-02-23 08:09:56 +01:00
bergquist
f225bb0032
ux(annotations): migrate annotations editors to new form
2016-02-22 10:07:02 +01:00
Torkel Ödegaard
422decde3b
ux(): trying out flexbox for new form styles
2016-02-15 22:24:28 +01:00
Torkel Ödegaard
b369b7e495
ux(): added page-dashboard body class
2016-02-12 18:55:45 +01:00
Torkel Ödegaard
8784be9a14
feat(plugins): made it possible to have relative plugin template urls
2016-02-09 18:17:32 +01:00
Torkel Ödegaard
18eb9d6076
feat(apps): began work on app pages
2016-02-09 11:17:49 +01:00
Torkel Ödegaard
99a053bbdd
feat(): removed unused routes and minor fixes
2016-02-08 16:57:29 +01:00
Torkel Ödegaard
ff4dbea19d
ux(navbar): worked on responsive breakpoints for navbar
2016-02-07 12:28:06 +01:00
Torkel Ödegaard
0fab210ad2
feat(apps): changed edit apps view to use plugin-component for apps config view
2016-02-05 12:13:59 +01:00
Torkel Ödegaard
660ce3a61d
fix(row editor): row editor fix and cleanup of unused code
2016-02-04 22:19:46 +01:00
Torkel Ödegaard
14cc771cbe
feat(plugins): made panels loaded via plugin-componet directive
2016-02-04 15:04:07 +01:00
Torkel Ödegaard
2a8b96b680
feat(plugins): last refactoring of how panels are implemented, now the same way as plugin editors
2016-02-04 14:36:19 +01:00
Torkel Ödegaard
0bea6aba63
feat(plugins): migrated elasticsearch to new plugin editor model, also minor fixes
2016-02-03 16:31:07 +01:00
Torkel Ödegaard
eecf844ca2
feat(plugins): migrated influxdb query editor to new plugin model
2016-02-02 22:58:37 +01:00
Torkel Ödegaard
05dfccbb74
feat(plugins): moved annotation editor to new plugin component loader
2016-02-02 18:16:30 +01:00
Torkel Ödegaard
f2700822e9
feat(plugins): extracted first plugin row to its own component
2016-02-02 16:32:36 +01:00
Torkel Ödegaard
21f6c07686
feat(plugins): more progress on plugin editors
2016-02-02 15:15:20 +01:00
Torkel Ödegaard
356f7b9db6
feat(plugins): good progress on converting query editors, graphite's query ctrl is now working as is unit tests
2016-02-02 13:07:54 +01:00
Torkel Ödegaard
822c8f1575
feat(plugins): migrating graphite query editor to new model
2016-02-02 12:52:43 +01:00
Torkel Ödegaard
efdd4a6682
feat(plugins): more work on plugin editors,prometheus query editor is working
2016-02-02 10:19:15 +01:00
Torkel Ödegaard
eaaf9246b7
feat(plugins): more work on refining datasource editors
2016-02-02 09:12:58 +01:00
Torkel Ödegaard
0583ec0f93
feat(plugins): more work on plugin directives and isolation
2016-02-01 23:32:12 +01:00