Tobias Skarhed
1f9bce7f9f
PanelLinks: Fix render issue when there is no panel description ( #18408 )
...
Make empty string if there is no panel description
2019-08-06 14:30:09 +02:00
Ryan McKinley
5f4b5dfecd
Refactor: use data rather than series in stream callback( #18126 )
2019-08-01 23:16:29 -07:00
Torkel Ödegaard
43543d5682
DataLinks: Fixed interpolation of series name, fixes #18250 ( #18251 )
2019-07-24 20:40:41 +02:00
David
9cd069f2c5
Graph: fix time label description for datalink suggestions ( #18214 )
2019-07-22 13:35:12 +02:00
David
c6d3ffce91
Panel: Show error in edit mode ( #18175 )
...
- the error was set, but has not been shown
- this change will force a digest before the query promises return with
their error handling
2019-07-18 16:09:04 +02:00
Tobias Skarhed
c8498461a5
noImplicitAny: Down approx 200 errors ( #18143 )
...
* noImplicitAny playlist approx 200
* Add AngularPanelMenuItem interface
* Roughly 100 noImplicitAny
2019-07-18 08:03:04 +02:00
Ryan McKinley
bdaf0aa81a
Refactor: move more files to @grafana/data ( #17972 )
2019-07-06 09:18:23 -07:00
Ryan McKinley
3f15170914
Refactor: move some files to @grafana/data ( #17952 )
...
* moving to data WIP
* more refactoring
* add missing test
* mock full path
* remove sinon from grafana-ui
2019-07-06 08:05:53 +02:00
Torkel Ödegaard
b1126cb0ed
AngularPanels: Fixed loading state indication for angular panels ( #17900 )
2019-07-03 16:58:38 +02:00
Ryan McKinley
e7c3d0ed97
Refactor: rename SeriesData to DataFrame ( #17854 )
2019-07-01 12:00:29 -07:00
Tobias Skarhed
8541214c9e
Markdown: Replace rendering library ( #17686 )
...
* Replace remarkable with marked
* Add wrapper and options for marked
2019-06-26 13:15:45 +02:00
Torkel Ödegaard
335cec07a5
Graph: Add data links feature (click on graph) ( #17267 )
...
* WIP: initial panel links editor
* WIP: Added dashboard migration to new panel drilldown link schema
* Make link_srv interpolate new variables
* Fix failing tests
* Drilldown: Add context menu to graph viz (#17284 )
* Add simple context menu for adding graph annotations and showing drilldown links
* Close graph context menu when user start scrolling
* Move context menu component to grafana/ui
* Make graph context menu appear on click, use cmd/ctrl click for quick annotations
* Move graph context menu controller to separate file
* Drilldown: datapoint variables interpolation (#17328 )
* Add simple context menu for adding graph annotations and showing drilldown links
* Close graph context menu when user start scrolling
* Move context menu component to grafana/ui
* Make graph context menu appear on click, use cmd/ctrl click for quick annotations
* Add util for absolute time range transformation
* Add series name and datapoint timestamp interpolation
* Rename drilldown link variables tot snake case, use const values instead of strings in tests
* Bring LinkSrv.getPanelLinkAnchorInfo for compatibility reasons and add deprecation warning
* Rename seriesLabel to seriesName
* Drilldown: use separate editors for panel and series links (#17355 )
* Use correct target ini context menu links
* Rename PanelLinksEditor to DrilldownLinksEditor and mote it to grafana/ui
* Expose DrilldownLinksEditor as an angular directive
* Enable visualization specifix drilldown links
* Props interfaces rename
* Drilldown: Add variables suggestion and syntax highlighting for drilldown link editor (#17391 )
* Add variables suggestion in drilldown link editor
* Enable prism
* Fix backspace not working
* Move slate value helpers to grafana/ui
* Add syntax higlighting for links input
* Rename drilldown link components to data links
* Add template variabe suggestions
* Bugfix
* Fix regexp not working in Firefox
* Display correct links in panel header corner
* bugfix
* bugfix
* Bugfix
* Context menu UI tweaks
* Use data link terminology instead of drilldown
* DataLinks: changed autocomplete syntax
* Use singular form for data link
* Use the same syntax higlighting for built-in and template variables in data links editor
* UI improvements to context menu
* UI review tweaks
* Tweak layout of data link editor
* Fix vertical spacing
* Remove data link header in context menu
* Remove pointer cursor from series label in context menu
* Fix variable selection on click
* DataLinks: migrations for old links
* Update docs about data links
* Use value time instead of time range when interpolating datapoint timestamp
* Remove not used util
* Update docs
* Moved icon a bit more down
* Interpolate value ts only when using __value_time variable
* Bring href property back to LinkModel
* Add any type annotations
* Fix TS error on slate's Value type
* minor changes
2019-06-25 11:38:51 +02:00
Tobias Skarhed
75c29566a6
Panel: Fully escape html in drilldown links (was only sanitized before) ( #17731 )
...
* Sanitize HTML
* Replace sanitization lib and check for config
* Add htmlToText
* Refactor: Renaming htmlToText to escapeHtml
2019-06-25 09:06:28 +02:00
Tobias Skarhed
375dc333f2
Typescript: Reduce implicit any errors ( #17550 )
...
* Fix types on linkSrv
* Lower err count, shoot down some errs, add type pkg
* Fix changes and add test
* Update public/app/features/panel/panel_ctrl.ts
Co-Authored-By: Hugo Häggmark <hugo.haggmark@gmail.com>
* Update public/app/features/panel/panel_ctrl.ts
Co-Authored-By: Hugo Häggmark <hugo.haggmark@gmail.com>
* Update public/app/features/panel/panellinks/link_srv.ts
Co-Authored-By: Hugo Häggmark <hugo.haggmark@gmail.com>
* Update public/app/features/panel/panel_ctrl.ts
Co-Authored-By: Hugo Häggmark <hugo.haggmark@gmail.com>
* Fix last types to compile
* Fix formatting issue
* Update public/app/features/panel/panel_ctrl.ts
Co-Authored-By: Hugo Häggmark <hugo.haggmark@gmail.com>
2019-06-13 20:04:15 +02:00
Ryan McKinley
a0b6ef4d01
GraphPanel: use SeriesData directly (skip legacy transformation) ( #17037 )
...
* support streaming in angular panels
* keep the same dashboard number
* skip the legacy data conversion
* fix tests
2019-05-14 18:43:26 +02:00
Ryan McKinley
7333f7ca17
Streaming: support streaming in MetricsPanelCtrl ( #17034 )
...
* support streaming in angular panels
* keep the same dashboard number
2019-05-14 17:47:41 +02:00
Torkel Ödegaard
e0b760e08e
Chore: No implict any fixes ( #17020 )
2019-05-13 09:38:19 +02:00
Ryan McKinley
3c733638ee
MetricsPanelCtrl: use shared queryRunner to support query execution ( #16659 )
...
* move queryRunner to panelModel
* remove isEditing from PanelChrome
* move listener to QueriesTab
* use queryRunner on MetricsPanelCtrl
* Added interval back as prop, not used yet
* QueryRunner: worked on tests
* PanelQueryRunner: Refactoring, added getQueryRunner to PanelModel
* PanelQueryRunner: interpolatel min interval
* merge master and remove grafana-live
2019-05-10 07:09:48 +02:00
Hugo Häggmark
a4d287d2e1
Tests: Adds end-to-end tests skeleton and basic smoke test scenario ( #16901 )
...
* Chore: Adds neccessary packages
* Wip: Initial dummy test in place
* Feature: Downloads Chromium if needed
* Fix: Adds global config object
* Refactor: Adds basic e2eScenario
* Build: Adds end to end tests to config
* Build: Changes end to end job
* Build: Adds browsers to image
* Build: Adds failing test
* Refactor: Adds first e2e-test scenario
* Fix: Ignores test output in gitignore
* Refactor: Adds compare screenshots ability
* Refactor: Removes unnecessary code
* Build: Removes jest-puppeteer
* Fix: Replaces test snapshots
* Refactor: Creates output dir if missing
* Refactor: Changes aria-labels to be more consistent
* Docs: Adds section about end to end tests
* Fix: Fixes snapshots
* Docs: Adds information about ENV variables
2019-05-08 16:50:21 +02:00
Torkel Ödegaard
48ae93048b
Panels: No title will no longer make panel header take up space ( #16884 )
...
* Panels: Initial poc of no panel titles
* moving panel-container to DashboardPanel
* Starting to work
* Gauge fix
* Panels: tweaked panel padding and title z-index stuff
* Panels: changed panel padding a bit and simplified it by having same padding in vertical and horizontal
* Lots of tweaks to panel padding related stuff
* Updated snapshot
* Added test dashboard
* Final refactorings
* Trim title befgor applying panel-container--no-title class
* Remove unnecessary type annotation
* Panels: hasTitle no need to trim
* Gauge: fixed font family
2019-05-06 15:26:09 +02:00
Ryan McKinley
5f474c6328
Refactor: move getQueryRunner() to PanelModel ( #16679 )
...
* move queryRunner to panelModel
* Added interval back as prop, not used yet
* PanelQueryRunner: Refactoring, added getQueryRunner to PanelModel
* PanelQueryRunner: interpolatel min interval
2019-04-18 14:10:18 -07:00
Patrick O'Carroll
d040e336c1
UI: Remove old icons ( #16335 )
...
* removed unsused grafana-icon classes, replaced grafana-icons with gicons
* replaced old dashboard and datasource icons with gicon, fixed so icons on plugin list are shown
* removed unsused grafana-icon classes, replaced grafana-icons with gicons
* replaced old dashboard and datasource icons with gicon, fixed so icons on plugin list are shown
* replaced fontawesome cog, eye, link and edit with gicons
* updated snapshot
* fixed color of cog in dashboard nav, removed icons from buttons, ran preitterier on some files
* changed opacity on getting started icons and fixed getting started button
* .5 -> 0.5 fix for prettier
2019-04-17 15:18:32 +02:00
Hugo Häggmark
7eabc282e9
Chore: Adds typings to lodash ( #16590 )
2019-04-15 12:11:52 +02:00
Ryan McKinley
5e48750868
Panels: Add types for DataList and range ( #16500 )
2019-04-11 07:57:24 +02:00
Ryan McKinley
03951c00cb
Feat: Angular panels & SeriesData to Table/TimeSeries ( #16266 )
...
Similar to how the react panels make sure all data is SeriesData before passing it to the react panels, this makes sure SeriesData is converted to TableData|TimeSeries before passing it to the angular panels.
It also changes the typing to encourage using SeriesData for future development
2019-03-28 18:21:53 +01:00
Torkel Ödegaard
d7dc6ad3f4
Fixed type issues introduced by adding angular types
2019-03-12 15:27:02 +01:00
Torkel Ödegaard
bf72b26c2c
Refactoring of multi-value datasource PR #15812
2019-03-11 15:44:11 +01:00
Torkel Ödegaard
a8486806aa
Merge branch 'multiselect-repeatby-datasource' of https://github.com/jdoupe/grafana into jdoupe-multiselect-repeatby-datasource
2019-03-11 14:14:26 +01:00
ryan
5524dacc9d
use explore icon
2019-03-05 23:00:43 -08:00
Jeremy Doupe
3f27d3ea23
Make datasource variables multiselect and dashboard repeatable
...
closes #7492 (and #7030 )
2019-03-05 22:47:22 -06:00
Daniel Lee
bd0f55cbb8
panel: defensive coding that fixes #15563
...
If a plugin incorrectly uses an attribute in the
query-editor-row directive, it should not throw
an exception.
2019-02-21 14:42:31 +01:00
Dominik Prokop
512aa62efc
Update config mock in metrics panel controller test
2019-02-08 11:50:05 +01:00
Torkel Ödegaard
4a8effddf5
fixed panel removal
2019-02-03 17:15:23 +01:00
Torkel Ödegaard
aeaac7480b
New solo panel route working in all scenarios I can test
2019-02-01 08:15:21 +01:00
Torkel Ödegaard
aafd4a339a
Moved dashboard state components to state folder
2019-01-31 08:56:17 +01:00
Torkel Ödegaard
433c88a616
two minor bug fixes introduced in recent refactorings
2019-01-29 09:47:41 +01:00
Torkel Ödegaard
7f2c2a913e
Moving a few things from dashboard folder
2019-01-27 17:33:13 +01:00
Torkel Ödegaard
adacdf98b7
Removed old query inspector (that was opened by clickin error in panel title)
...
think the new query insector from Queries tab can replace this old one.
2019-01-23 20:26:18 +01:00
Hugo Häggmark
b95650d19c
Added function hasAccessToExplore in ContextSrv and refactored tests
2019-01-21 10:50:34 +01:00
Hugo Häggmark
9d6ac2c3d4
fix: Viewers can edit means that viewers have acces to Explore #14281
2019-01-21 08:47:41 +01:00
Torkel Ödegaard
cc4564cf8b
Query editor row in react is working
2019-01-17 13:08:20 +01:00
Torkel Ödegaard
6a66d462aa
Toggle edit mode works
2019-01-16 17:53:40 +01:00
Torkel Ödegaard
166e5edebd
wip: testing new query editor row design
2019-01-16 14:00:29 +01:00
Torkel Ödegaard
33feb26fb5
WIP: good progress on react query editor support
2019-01-15 11:40:12 +01:00
Torkel Ödegaard
c11ec79056
Minor renames and other fixes
2019-01-13 12:42:21 +01:00
Pierre GIRAUD
f374da032e
Hint for user on when the repeat is applied
2019-01-09 11:34:13 +01:00
Pierre GIRAUD
97b087f5a5
Use factors for max repeated panels per row
2019-01-09 11:17:48 +01:00
Pierre GIRAUD
a881497908
Max number of repeated panels per row
...
Instead of min width
2019-01-09 08:01:42 +01:00
Simon Podlipsky
c39dc1fb15
Some cleanup
2019-01-05 15:25:07 +01:00
Torkel Ödegaard
9aef3f4fb1
Fixed issues with panel size in edit mode, fixes #14703
2019-01-02 10:54:57 +01:00
Patrick Freeman
ca7f75f353
Fix general tab typos
2018-12-26 13:36:12 -05:00
Torkel Ödegaard
5b83f6d49d
Fixes undefined issue with angular panels and editorTabs
2018-12-19 17:00:26 +01:00
Torkel Ödegaard
6542bfb83e
Merge branch 'fix-misspell-issues' of https://github.com/mjtrangoni/grafana into mjtrangoni-fix-misspell-issues
2018-12-19 11:21:34 +01:00
Torkel Ödegaard
e56b478709
Merge pull request #14551 from grafana/explore-ds-fixes
...
Explore: Datasource fixes
2018-12-18 10:38:31 +01:00
Torkel Ödegaard
705cbb4095
Minor cleanup now that angular panel edit is no longer
2018-12-17 21:29:25 +01:00
Erik Sundell
18b39967fc
enable goto explore from query panel editor for all datasources
2018-12-17 16:44:57 +01:00
Torkel Ödegaard
f67e0827b2
Fixes and cleanup
2018-12-15 10:04:25 +01:00
Torkel Ödegaard
248015c937
code cleanup in add panel, and switched off grid css transforms to fix z-index issuse
2018-12-14 20:53:42 +01:00
Torkel Ödegaard
58cc2e34d6
User picker using common select componnet
2018-12-14 12:38:36 +01:00
Torkel Ödegaard
9c13520e97
updated styles
2018-12-13 21:24:41 +01:00
Torkel Ödegaard
3f1adf1390
wip: styles are starting to come together
2018-12-13 14:28:44 +01:00
Torkel Ödegaard
4591c3555c
Moved more metrics tab to react
2018-12-11 13:36:44 +01:00
Torkel Ödegaard
f9110f7902
Merge branch 'master' into develop
2018-12-11 10:00:29 +01:00
Torkel Ödegaard
acf24bd679
Clear query models when changing data source type, fixes #14394
2018-12-10 12:56:49 +01:00
Torkel Ödegaard
912dc0f2a9
Merge pull request #14392 from grafana/14377-develop-graph-options
...
Removed graph side menu
2018-12-08 13:03:42 +01:00
ijin08
bd589b61bd
removed side menu from display options, kept overrides in display options, moved thresholds and time regions to its own section in visualization
2018-12-07 15:18:43 +01:00
Torkel Ödegaard
eb6d0e9f51
Merge branch 'master' into develop
2018-12-07 14:59:38 +01:00
Johannes Schill
a516ff81c9
Add prop key to panelPropsString to avoid a bug when changing another value and the render doesnt trigger
2018-12-06 09:39:17 +01:00
Johannes Schill
ed034b4288
Trigger panel.render on title, description, links change #14333
2018-12-05 14:56:29 +01:00
Mario Trangoni
ab9f65a4cf
public/app/features/*: Fix some misspell issues
2018-12-05 13:08:00 +01:00
Torkel Ödegaard
e31490ac68
fix for panel embedding. Solo panel height was not correctly set. Made panel--solo into panel-solo class. in develop branch we have remove the need for the panel class
2018-12-04 12:36:43 -08:00
Erik Sundell
3395b1caf6
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-26 13:44:32 +01:00
Erik Sundell
1e6ea8b124
rename variable
2018-11-23 15:15:41 +01:00
Erik Sundell
65c744c39f
hide row specific buttons when query editor is rendered from explore
2018-11-23 15:14:13 +01:00
Erik Sundell
fae3ae2580
use plugin_loader directly instead of using the wrapper
2018-11-23 14:32:56 +01:00
Erik Sundell
eaf9a0b39a
initial commit
2018-11-22 18:22:15 +01:00
Torkel Ödegaard
9a2b2863fb
styling progress
2018-11-22 08:46:54 +01:00
Torkel Ödegaard
7f46b75330
Merge branch 'develop' into panel-edit-in-react
2018-11-20 09:51:06 +01:00
Torkel Ödegaard
649d727805
Merge branch 'master' into develop
2018-11-20 09:47:23 +01:00
Torkel Ödegaard
571cfab923
added chekbox and other tweaks
2018-11-19 17:41:48 +01:00
Torkel Ödegaard
c67b55776c
Merge pull request #14123 from grafana/switch-back-from-mixed
...
fixed issue switching back from mixed data source
2018-11-19 14:40:37 +01:00
Johannes Schill
00596f0afc
react-panel: Finish the data source search on query tab and start moving switch-data-source-logic from angular
2018-11-19 14:35:16 +01:00
Torkel Ödegaard
1157a62375
fixed issue switching back from mixed data source, introduced by react panels changes
2018-11-19 14:20:19 +01:00
Torkel Ödegaard
d81d2f00f6
fixed issue with panel size when going into edit mode
2018-11-19 12:26:15 +01:00
Carl Bergquist
6049855dc7
Merge pull request #13947 from bergquist/alerting_for
...
Introduce alert debouncing
2018-11-19 10:38:02 +01:00
Torkel Ödegaard
dac02d3d73
React edit mode for angular panels progress
2018-11-16 08:31:29 +01:00
bergquist
7ba04466a2
alerting: improve annotations for pending state
2018-11-15 14:30:36 +01:00
Torkel Ödegaard
911646f913
poc: handling panel edit mode in react even for angular panels poc
2018-11-15 09:46:21 +01:00
Torkel Ödegaard
487fd12d66
wip: minor update
2018-11-15 07:33:59 +01:00
Torkel Ödegaard
159c5cdb63
wip: adding general tab for react panel edit mode
2018-11-14 17:57:37 +01:00
Torkel Ödegaard
c0197bcb15
fix: added events to MetricsTabCtrl to closer mimic MetricsPanelCtrl
2018-11-14 16:04:34 +01:00
Torkel Ödegaard
1eecda48f8
Moved query manipulations from metrics controller to metrics tab so they are more easily shared between angular and react panels
2018-11-14 14:40:03 +01:00
Torkel Ödegaard
888eb9d94c
fixed panel focus for react panels
2018-11-14 13:31:40 +01:00
Torkel Ödegaard
080d611004
minor changes to react panels
2018-11-14 13:20:19 +01:00
Torkel Ödegaard
6d91e06f4d
refactoring back the interval calculation, needs to be different for react panels
2018-11-13 16:01:52 +01:00
Torkel Ödegaard
81a9a3a3c1
Merge branch 'develop' into 12759-timeshift
2018-11-13 08:51:48 +01:00
Johannes Schill
a3f1a1c6b3
wip: panel-header: Remove the TimeData type
2018-11-12 11:31:33 +01:00
Johannes Schill
8117a7559f
wip: panel-header: Add proper typings to maxDataPoints and interval + remove code in comment
2018-11-12 11:31:33 +01:00
Johannes Schill
e55f3f883f
wip: panel-header: Move getResolution and calculateInterval into utils-functions and use the same code from react and angular
2018-11-12 11:31:33 +01:00
Johannes Schill
9fd62b80d9
wip: panel-header: Start implementing the applyPanelTimeOverrides in the react panels by moving it to a util, make it pure and call it from angular and react.
2018-11-12 11:31:33 +01:00
Torkel Ödegaard
a0620ac8f6
minor style fixes & polish
2018-11-11 17:46:40 +01:00
Torkel Ödegaard
c4ad069083
refactoring & cleaning up css
2018-11-10 17:28:28 +01:00
Torkel Ödegaard
a7daf58bb9
wip: progress on edit mode ux with tabs
2018-11-09 13:17:41 +01:00
Torkel Ödegaard
93b4cb562d
Fixed issues introduced by changing to PureComponent
2018-11-07 16:03:33 +01:00
Johannes Schill
5375ce5ffd
wip: panel-header: Refactor so "Share" use the same code in angular+react
2018-11-06 15:25:46 +01:00
Johannes Schill
f9dd516578
wip: panel-header: Add "Edit JSON" functionality + make sure everyone using the json editor pass in the model property instead of the scope property when triggering the json modal
2018-11-06 15:25:36 +01:00
Johannes Schill
edceb204e7
wip: panel-header: Add "Copy" functionality
2018-11-06 15:25:13 +01:00
Johannes Schill
b296d724e5
wip: panel-header: Add "Duplicate"
2018-11-06 15:25:07 +01:00
Torkel Ödegaard
dfb9419f86
Merge branch 'graph-legend-to-react'
2018-10-31 04:26:44 -07:00
Torkel Ödegaard
36cd73819a
fixed memory leaks and minor refactoring
2018-10-31 03:40:03 -07:00
Torkel Ödegaard
be6f68f341
fix for annotation promise clearing, bug introduced last week when merging react panels step1
2018-10-25 11:35:32 +02:00
Torkel Ödegaard
11f66bb909
fixed issue with template refresh
2018-10-19 09:43:54 +02:00
Torkel Ödegaard
2fb721d3c6
various fixes to to queries tab (in react mode)
2018-10-14 21:14:11 +02:00
Torkel Ödegaard
543c67a297
react panels: got data
2018-10-14 16:31:20 +02:00
Torkel Ödegaard
cd4619dad1
working on react data / query exectution
2018-10-14 15:39:34 +02:00
Torkel Ödegaard
8ba865bf57
Merge branch 'master' into react-panels-step1
2018-10-12 13:31:20 +02:00
Torkel Ödegaard
d2bdf8cff1
wip: fixed issues now things are starting to work as before for angular panels
2018-10-09 17:07:13 +02:00
Torkel Ödegaard
2f84101fe7
wip: restoring old angular panel tabs / edit mode
2018-10-07 10:39:47 -07:00
Torkel Ödegaard
dcb7f0d492
Merge branch 'master' into react-panels-ux-idea2
2018-10-04 09:08:19 +02:00
David Kaltschmidt
54c9beb146
Explore: jump to explore from panels with mixed datasources
...
- extends handlers for panel menu and keypress 'x'
- in a mixed-datasource panel finds first datasource that supports
explore and collects its targets
- passes those targets to the found datasource to be serialized for
explore state
- removed `supportMetrics` and `supportsExplore`
- use datasource metadata instead (set in plugin.json)
- Use angular timeout to wrap url change for explore jump
- Extract getExploreUrl into core/utils/explore
2018-10-01 12:03:57 +02:00
David Kaltschmidt
200784ea4a
Explore: Store UI state in URL
...
Storing queries, split state, and time range in URL.
- harmonize query serialization when generating Explore URLs in
dashboards (use of `renderUrl`)
- move URL parse/serialization to Wrapper
- keep UI states under two keys, one for left and one for right Explore
- add option to angular router to not reload page on search change
- add lots of types
- fix time service function that gets triggered by URL change
2018-09-28 16:44:07 +02:00
Torkel Ödegaard
5b52225450
wip: panel options idea2
2018-09-20 09:01:06 +02:00
Torkel Ödegaard
3ceab9484d
wip: moving option tabs into viz tab
2018-09-10 19:04:56 +02:00
Torkel Ödegaard
df822a660b
initial render/refresh timing issues
2018-09-10 16:19:28 +02:00
Torkel Ödegaard
100ab0ba23
Merge branch 'master' into react-panels
2018-09-10 15:42:36 +02:00
Patrick O'Carroll
2b74b1c4d6
added radix rule and changed files to follow rule ( #13153 )
2018-09-05 16:51:31 +02:00
Torkel Ödegaard
00c0b71f3d
Merge branch '12918-only-arrow-functions4'
2018-09-05 11:46:54 +02:00
Patrick O'Carroll
72ab24f300
Changed functions to arrow functions for only-arrow-functions rule. ( #13131 )
2018-09-05 07:47:30 +02:00
Patrick O'Carroll
dc4f547a40
Changed functions to arrow functions for only-arrow-functions rule.
2018-09-04 17:02:32 +02:00
Patrick O'Carroll
abbb6f933c
added jsdoc-format rule and fixed files that didn't follow new rule ( #13107 )
2018-08-31 16:40:43 +02:00
Patrick O'Carroll
552a61b6ae
changed var to let in 50 files ( #13075 )
2018-08-30 09:03:11 +02:00
Patrick O'Carroll
b494a29e02
changed var to let in last files ( #13087 )
2018-08-30 08:58:43 +02:00
Patrick O'Carroll
5e0d0c5816
changed var to const ( #13061 )
2018-08-29 14:26:50 +02:00
Torkel Ödegaard
35c00891e7
tslint: more const fixes ( #13035 )
2018-08-26 20:19:23 +02:00
Torkel Ödegaard
9b978b7203
tslint: autofix of let -> const ( #13033 )
2018-08-26 17:14:40 +02:00
Torkel Ödegaard
fd81f89509
wip: angular panels now have similar edit mode and panel type selection enabling quick changing between panel react and angular panel types
2018-08-25 12:22:50 -07:00
Torkel Ödegaard
6ba8f6c5ab
wip: major change for refresh and render events flow
2018-08-25 08:49:39 -07:00
Torkel Ödegaard
1c97816275
wip: trying to align react & angular edit modes
2018-08-24 18:46:17 +02:00
Torkel Ödegaard
0b794ff685
Merge branch 'master' into react-panels
2018-08-24 17:29:10 +02:00
Tobias Skarhed
a65589a5fb
Rename test files
2018-08-14 10:52:41 +02:00
David
bfd05ba6ec
Merge pull request #12617 from grafana/davkal/prometheus-value-formatting
...
Make prometheus value formatting more robust
2018-07-18 17:11:16 +02:00
David Kaltschmidt
c6e9ffb168
Use url params for explore state
...
- putting state in the path components led to 400 on reload
- use `/explore?state=JSON` instead
2018-07-17 12:56:05 +02:00
Torkel Ödegaard
4e089229fb
minor fix for legacy panels
2018-07-16 14:56:40 +02:00
David Kaltschmidt
1f74b298c4
Remove string casting for template variables in prometheus
2018-07-16 13:02:36 +02:00
Torkel Ödegaard
902eba90d0
Merge branch 'master' into react-panels
2018-07-11 11:39:22 -07:00
Mitsuhiro Tanda
18a8290c65
(prometheus) prevent error to use $__interval_ms in query ( #12533 )
...
* prevent error to use $__interval_ms in query
* add test
* prevent error to use $__interval_ms in query
2018-07-11 11:13:47 -07:00
Torkel Ödegaard
50f24c98f7
wip: minor progres on react panels edit mode
2018-07-08 07:39:25 -07:00
Torkel Ödegaard
c86fc6fb47
react-panels: minor progress on data flow
2018-07-05 13:10:39 -07:00
Torkel Ödegaard
447bc3a6e0
Merge branch 'react-panels' of github.com:grafana/grafana into react-panels
2018-07-05 09:37:42 -07:00
Torkel Ödegaard
ab9e1b35cd
wip: minor progress on DataPanel
2018-07-01 17:34:42 +02:00
Torkel Ödegaard
70c808130f
react panels wip
2018-06-28 04:31:55 -07:00
Torkel Ödegaard
cec70c1ed8
feat: panels v2, metrics-tab loading
2018-06-26 16:32:01 +02:00
Torkel Ödegaard
1099daec38
wip: react panels, query editor loading from react PanelEditor view
2018-06-20 12:05:03 +02:00
Torkel Ödegaard
db52ea66bd
react panels minor progress
2018-06-19 16:57:55 +02:00
Torkel Ödegaard
542da8dc45
Merge branch 'master' into react-panels
2018-06-18 15:08:06 +02:00
ryan
0a3ec93347
use ng-if
2018-06-08 15:49:30 +02:00
David Kaltschmidt
3bd58446d6
Fix metrics panel test by adding config mock
2018-06-06 11:15:24 +02:00
David Kaltschmidt
661503f828
Respect explore settings in config ini
...
Previous explore restrictions only took permissions into consideration.
* add `exploreEnabled` to global settings
* only bind `x` if enabled
* only show explore in panel menu if enabled
2018-06-06 10:50:47 +02:00
David Kaltschmidt
827fb7e8de
Fix karma tests that rely on MetricsPanelCtrl
2018-05-30 15:24:47 +02:00
David Kaltschmidt
7224ca6c62
Fix panel menu test
2018-05-30 13:24:09 +02:00
David Kaltschmidt
f69654fcd5
Restrict Explore UI to Editor and Admin roles
...
Access is restricted via not showing in the following places:
* hide from sidemenu
* hide from panel header menu
* disable keybinding `x`
Also adds a `roles` property to reactContainer routes that will be
checked if `roles` is set, and on failure redirects to `/`.
2018-05-30 13:13:29 +02:00
David Kaltschmidt
0d3f24ce54
Explore: time selector
...
* time selector for explore section
* mostly ported the angular time selector, but left out the timepicker
(3rd-party angular component)
* can be initialised via url parameters (jump from panels to explore)
* refreshing not implemented for now
* moved the forward/backward nav buttons around the time selector
2018-05-24 10:55:00 +02:00
Daniel Lee
f15919555b
explore: fixes #11953
2018-05-17 14:56:15 +02:00
Alexander Zobnin
00454b32f5
fix XSS vulnerabilities in dashboard links ( #11813 )
...
fix XSS vulnerabilities in dashboard links
2018-05-08 11:28:16 +02:00
Torkel Ödegaard
f84534adea
Revert "Add baron scrollbar to a node managed by gafana ( #11850 )"
...
This reverts commit 34133671b9
.
2018-05-08 09:45:08 +02:00
Ryan McKinley
34133671b9
Add baron scrollbar to a node managed by gafana ( #11850 )
...
* Add baron scroller to grafana panel, not plugin panel
* remove comment about root <div> element, since it will not be true
2018-05-08 06:39:12 +02:00
David Kaltschmidt
8a53ec610b
Fix url encoding, expand template vars, fix TS hacks
...
* moved datasource related functions to panel sub-class
* expand panel template vars for url
* added keybindings for x -> Explore
* url encoding for explore state
2018-04-30 17:44:30 +02:00
David Kaltschmidt
05b0bfafe4
Explore: Add entry to panel menu to jump to Explore
...
* panel container menu gets new Explore entry (between Edit and Share)
* entry only shows if datasource has `supportsExplore` set to true (set
for Prometheus only for now)
* click on Explore entry changes url to `/explore/state` via location provider
* `state` is a JSON representation of the panel queries
* datasources implement `getExploreState()` how to turn a panel config into explore initial
state
* Explore can parse the state and initialize its query expressions
* ReactContainer now forwards route parameters as props to component
* `pluginlist` and `singlestat` panel subclasses needed to be adapted because
`panel_ctrl` now has the location provider as a property already
2018-04-30 17:44:28 +02:00
Patrick O'Carroll
23f644c2f5
changed copied message and added forced render for width change
2018-04-18 10:34:43 +02:00
Patrick O'Carroll
0120023aba
added forceupdate to grid item so addpanel items rezie instantly, renamed function to copyPanel, fixed panel items height issue
2018-04-17 13:10:08 +02:00
Marcus Efraimsson
0e0976b0a2
Merge branch 'master' into 10427_addpanel_filter
2018-04-16 23:30:34 +02:00
Mario Trangoni
e5e6bc56c8
public: fix codespell issues
2018-04-13 20:31:29 +02:00
Marcus Efraimsson
8c04eb272d
panel: add baron scroller to correct element
...
This resolves issue with alert list panel getting scrollbars
attached to incorrect element. Now the panel content are
rendered correctly and all content are displayed as
expected.
2018-04-11 17:41:20 +02:00
Alexander Zobnin
d3d64337b4
scrollbar: styles cleanup
2018-04-06 20:00:03 +03:00
Alexander Zobnin
d6233714d2
Merge remote-tracking branch 'upstream/master' into fix-11053
2018-04-05 16:30:46 +03:00
Patrick O'Carroll
13f6d3be87
migrated last all.js to ts
2018-04-04 14:16:39 +02:00
Alexander Zobnin
77d2ee9add
Initially move to baron scrollbar
2018-04-02 14:59:49 +03:00
Tobias Wolf
03b2561af2
Missed the 'p d' hint in the popup-menu
2018-03-24 14:49:06 +01:00
Carl Bergquist
980e078222
Merge pull request #11326 from bergquist/more_traces
...
dataproxy: adds dashboardid and panelid as tags
2018-03-23 17:13:15 +01:00
bergquist
f142548969
dataproxy: adds dashboardid and panelid as tags
...
closes #11315
2018-03-20 22:23:28 +01:00
Alexander Zobnin
a472d38fbf
snapshot: fix legend rendering bug
2018-03-20 21:33:54 +03:00
Patrick O'Carroll
8d4c439eeb
add panel to list now copy, started on jest
2018-03-07 12:46:27 +01:00
Marcus Efraimsson
609f3c1c9d
dashboards: fix keyboard shortcut for remove panel
2018-02-22 18:02:29 +01:00
Marcus Efraimsson
20ebb614f6
dashboards: cleanup
...
Move api calls to backend_srv
2018-02-21 16:56:34 +01:00
Alexander Zobnin
45d66e4b29
embedded panel: hide side menu during init ( #10788 )
2018-02-06 10:01:10 +01:00
Daniel Lee
4ce862c5b4
scroll: use wheelpropagation. Ref #10772
...
Once the vertical scrollbar comes to its end position, it should
allow the page scroll bar to start scrolling.
2018-02-05 18:12:04 +01:00
Torkel Ödegaard
5aeded8cf3
Merge branch 'master' into react-panels
2018-02-02 15:47:13 +01:00
Marcus Efraimsson
cd61d2b237
Merge branch 'master' into 7883_new_url_structure
2018-02-01 17:32:43 +01:00
Marcus Efraimsson
3db328f516
fix for dashboard/folder url's when having a sub path in root_url config
2018-02-01 16:30:48 +01:00
Torkel Ödegaard
d08a829b69
ux: fix for responsive breakpoints and solo mode showing sidemenu
2018-02-01 11:29:04 +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
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
Torkel Ödegaard
27835f373e
cleanup: removed unused typescript typings import
2018-01-04 10:12:02 +01:00
Torkel Ödegaard
3eb5f23209
poc: began react panel experiments, step2
2018-01-03 13:03:26 +01:00
Alexander Zobnin
d210e766e7
fix mixed datasource add query button, #10316 ( #10361 )
2017-12-31 12:21:49 +01:00
Marcus Efraimsson
39eb8f9eba
Dashboard: View JSON improvements ( #10327 )
...
* dashboard: enable copy to clipboard for view json and panel json
* dashboard: use code editor for view json under settings
2017-12-26 13:52:19 +01:00
Torkel Ödegaard
c11cf18879
refactor: tried to simplify and also minimize scope a bit for #10323
2017-12-26 13:22:01 +01:00
Marcus Efraimsson
281e519fab
fix: remove unused code
2017-12-22 10:26:01 +01:00
Marcus Efraimsson
68457f5636
dashboard: copy panel to clipboard
...
Adds a new menu item to panels, Copy to Clipboard, that will both
copy the panel json to the clipboard and temporarily store the panel object
in the browsers window object. The temporarily stored panel object are
available in Add Panel from any dashboard for as long you don't refresh
the browser.
Fixes #10248 , #1004
2017-12-22 10:24:55 +01:00
Torkel Ödegaard
3a1f52d8a2
prettier: ran on all files again, sorry. now settings are defined in package.json
2017-12-21 08:39:31 +01:00
Torkel Ödegaard
85879a7014
prettier: change to single quoting
2017-12-20 12:33:33 +01:00
Torkel Ödegaard
fadfc665e4
tech: ran pretttier on all typescript files
2017-12-19 16:06:54 +01:00
Daniel Lee
31fc19c6d7
dashboard: fixes #10262
2017-12-19 14:55:03 +01:00
Alexander Zobnin
a48ba7b19e
Dashboard grid fixes ( #10194 )
...
* grid: fix layout saving after panel move, #10185
* don't allow to drag fullscreen panels, #10171
2017-12-13 17:53:57 +01:00
Torkel Ödegaard
35c8cdf3a5
refactor: minor change to panel json fix PR #10156
2017-12-12 12:10:19 +01:00
Alexander Zobnin
86204abbfe
Move panel JSON editor to modal dialog ( #10156 )
...
* panel: fix JSON edit, #10149
* panel: show JSON editor in modal, #10149
2017-12-12 12:04:08 +01:00
Torkel Ödegaard
008b9bb3e9
ux: dashboard settings work progress
2017-12-11 16:28:57 +01:00
Torkel Ödegaard
47ecbbab8d
build: fix for tslint
2017-12-09 21:47:59 +01:00
Torkel Ödegaard
55609382f1
fix: fixed panel size rerendering issues
2017-12-09 13:53:03 +01:00
Marcus Efraimsson
70b0165835
fix: Remove console.log
2017-12-08 17:49:33 +01:00
Torkel Ödegaard
77b537f45f
ux: added react scrollbar component and added it to add panel panel
2017-12-08 13:30:16 +01:00
Torkel Ödegaard
9f87d8d344
Merge branch 'develop-graph-legend' into develop
2017-12-08 11:47:50 +01:00
Alexander Zobnin
cd3cf5d19b
grid css transforms: minor refactor ( #10128 )
2017-12-08 08:43:47 +01:00
Alexander Zobnin
3de17ecda7
dashboard grid: enable CSS transforms ( #10125 )
2017-12-08 08:21:00 +01:00
Torkel Ödegaard
8415ea6c71
refactoring: changing how graph height and legend height is calculated, using flex box seems to actually work, #10079
2017-12-07 19:53:32 +01:00
Alexander Zobnin
b97ad93be1
fix panel solo mode ( #10002 )
2017-11-28 09:38:28 +01:00
Alexander Zobnin
0c7bf42dd6
panel: open panel menu by click on header
2017-11-24 21:44:47 +03:00
Torkel Ödegaard
b3ddcc8077
ux: sass fixes and polish
2017-11-23 20:41:16 +01:00
Torkel Ödegaard
f18f1a1093
removing gemini scrollbar and replacing with perfect scrollbar, muuuch better
2017-11-23 11:12:32 +01:00
Torkel Ödegaard
856a0393ab
Merge branch 'develop' into develop-scrollable-panels
2017-11-23 10:27:16 +01:00
Torkel Ödegaard
905553052a
removed call to unused function in panel_ctrl
2017-11-22 14:47:26 +01:00
Torkel Ödegaard
85e81959f2
scrollable panels works better with perfect-scrollbar
2017-11-22 14:46:17 +01:00
Torkel Ödegaard
68bd17bd0e
work on scrollable panels
2017-11-22 13:32:54 +01:00
Alexander Zobnin
18ca7a53aa
scrollable panels: fix initial content size ( #9960 )
2017-11-22 07:05:33 +01:00
Torkel Ödegaard
9fc22e5a66
Merge branch 'master' of github.com:grafana/grafana into develop
2017-11-21 16:05:18 +01:00
Torkel Ödegaard
830c307bba
progress on scrollable panels work
2017-11-21 14:30:33 +01:00
Alexander Zobnin
10e3b63ddb
Merge remote-tracking branch 'upstream/develop' into feat-9887
2017-11-20 15:51:49 +03:00
Ryan McKinley
b1de1e6f26
Move the loading flag to PanelCtrl ( #9929 )
2017-11-20 11:27:18 +01:00
Alexander Zobnin
490b8fc50f
panels: add css tweaks for scrollable panels
2017-11-17 12:13:56 +03:00
Alexander Zobnin
4b88cc0226
panels: general property which makes panel scrollable
2017-11-16 15:38:52 +03:00
Torkel Ödegaard
10fcf2f5be
Merge branch 'master' into develop
2017-11-02 15:56:09 +01:00
Torkel Ödegaard
fec37f22b8
fix: fixed compiler error from #9676
2017-11-01 08:08:16 +01:00
Torkel Ödegaard
7559982b05
grid: minor changes
2017-10-25 12:38:08 +02:00
Torkel Ödegaard
b44daaabf2
Merge branch 'master' into develop
2017-10-24 09:06:09 +02:00
Torkel Ödegaard
b986f744e4
fix: escape series name in graph legend, added aliasEscaped to time series model to reuse escape, fixes #9615
2017-10-23 10:15:58 +02:00
Torkel Ödegaard
9cce5217d0
build: fixed gofmt issue and addd mock response feature
2017-10-23 09:57:28 +02:00
Torkel Ödegaard
a3bd761b0c
ux: testing out new icons
2017-10-14 21:17:16 +02:00
Torkel Ödegaard
7e16254b1a
Merge branch 'develop' of github.com:grafana/grafana into develop
2017-10-14 08:21:55 +02:00
Torkel Ödegaard
e5a6cb6241
newgrid: added constants, changed grid to 24 cols, added tests for panel repeats
2017-10-13 13:51:05 +02:00
Torkel Ödegaard
8bb9d92a73
grid: minor progress on panel repeats
2017-10-12 21:37:27 +02:00
Torkel Ödegaard
215d59865e
changed name back to use underscore instead of camelcase, need to think more about this
2017-10-12 20:02:07 +02:00
Torkel Ödegaard
48c8e4d627
fix: various fixes for new grid
2017-10-12 17:38:49 +02:00
Torkel Ödegaard
98b582bead
ux: style tweaks
2017-10-11 22:10:33 +02:00
Torkel Ödegaard
331b50dcaa
grid: edit/view now works
2017-10-11 16:32:05 +02:00
Torkel Ödegaard
087b55aece
newgrid: progress on fullscreen/edit view modes
2017-10-11 11:42:49 +02:00
Torkel Ödegaard
2e77bd0cb1
grid: progress on react grid
2017-10-10 17:57:53 +02:00
Torkel Ödegaard
10a3504309
grid: progress on new grid, resize & saving layouts works
2017-10-10 14:20:53 +02:00
Torkel Ödegaard
647a3cc5ae
Merge branch 'master' into develop
2017-10-09 16:01:54 +02:00
Torkel Ödegaard
3dac77468b
fix: ensure panel.datasource is null as default
2017-10-03 12:18:22 +02:00
Torkel Ödegaard
a02cac2126
refactoring: minor refactoring of PR #8916
2017-10-02 16:45:25 +02:00