kay delaney
451e9beaf0
Explore/Loki: Filter expression only treated as regex when regex operator is used ( #21538 )
...
* Explore/Loki: Filter expression only treated as regex when regex operator is used
Closes #17963
* Adds test cases to verify new behavior
2020-01-16 16:09:49 +00:00
Sofia Papagiannaki
1636e8873b
Fix TypeScript error ( #21545 )
2020-01-16 17:38:49 +02:00
kay delaney
cc1d468041
Explore: Ensures queries aren't updated when returning to dashboard if browser back is used ( #20897 )
...
* Explore: Ensures queries aren't updated when returning to dashboard if browser back is used
Closes #20873
2020-01-16 11:44:05 +00:00
Peter Holmberg
43dbbe51f0
Inspect: Use AutoSizer for managing width for content in tabs. ( #21511 )
...
* wrap content in autosizer
* replace lib
* removing react-virtualized, correct type in editor.ts
* remove caret
* remove dep from grafana/ui and remove story util
2020-01-16 11:11:33 +01:00
Ryan McKinley
c5da1864a6
AppPlugin: remove simple app from the core repo ( #21526 )
2020-01-15 16:10:27 -08:00
Ryan McKinley
76ba2db4e7
DataLinks: allow using values from other fields in the same row ( #21478 )
2020-01-15 12:02:52 -08:00
Dominik Prokop
3f957a3735
grafana/data: Update plugin config page typings (BREAKING) ( #21503 )
...
* Change typyings of plugins config pages
* Update plugin config page types of core plugins
2020-01-15 19:42:44 +01:00
Erik Sundell
a35b2ac463
CloudWatch: Annotation Editor rewrite ( #20765 )
...
* wip: react rewrite
* Cleanup
* Break out non annontations specific fields
* Cleanup. Make annontations editor a functional component
* Remove redundant classnames
* Add paneldata to props
* Cleanup
* Fix rebase merge problem
* Updates after pr feedback
* Fix conflict with master
2020-01-15 16:38:15 +01:00
Emil Tullstedt
29687903f8
Admin: Add promotional page for Grafana Enterprise ( #21422 )
...
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-01-15 14:50:44 +01:00
Peter Holmberg
16ded9fe6e
Tabs: Hide Tabs on Page header on small screens ( #21489 )
...
* Adding className to hide tabs on small screens
* update snapshot
* Readd border on pageheader
* update snap
2020-01-15 12:54:35 +01:00
Torkel Ödegaard
98bbdea69d
SideMenu: Fixes issue with logout link opened in new tab ( #21488 )
...
* SideMenu: Fixes issue with logout link opened in new tab
* Updated snapshot
2020-01-15 10:29:27 +01:00
Ryan McKinley
f6c94b9c40
Templating: use default datasource when missing ( #21495 )
2020-01-14 22:51:25 -08:00
Ivana Huckova
ba7d8c1a3d
Explore: Fix timepicker when browsing back after switching datasource ( #21454 )
2020-01-14 19:20:17 +01:00
Marcus Andersson
45dc4a834e
Fix: when clicking a plot on a touch device we won't display the annotation menu ( #21479 )
...
* Fixed so when clicking a plot on a touch device we won't display the annotation context menue.
* Refactorings after feedback.
* changed to standard-ish comment.
2020-01-14 14:16:44 +01:00
Ryan McKinley
a0d43de761
Backend Plugins: add a common implementation ( #21408 )
...
* add common backend
* use const for range
* likely not differnt
* send the right orgId
* Add DataSourceWithBackend to @grafana/runtime mock in root reducer test
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-01-14 12:59:48 +01:00
Sofia Papagiannaki
d135f1229d
Alerting: new min_interval_seconds options to enforce a minimum eval frequency ( #21188 )
...
* add min_interval_seconds setting to alerting config
It will let operator enforce a minimum time for the scheduler to enqueue evaluations
* Introduce UI modifications
* Update docs
Co-authored-by: Martin <uepoch@users.noreply.github.com>
2020-01-14 11:13:34 +02:00
Peter Holmberg
6b3041d358
Panel: Use Tabs in panel inspector ( #21468 )
...
* replace select with tabs
* storybook example
* Update snapshot, move styles to component files
2020-01-14 09:03:14 +01:00
Alexander Zobnin
8505d90768
Admin: New Admin User page ( #20498 )
...
* admin: user page to react WIP
* admin user page: basic view
* admin user page: refactor, extract orgs and permissions components
* admin user: change sessions actions styles
* admin user: add disable button
* user admin: add change grafana admin action
* user admin: able to change org role and remove org
* user admin: confirm force logout
* user admin: change org button style
* user admin: add confirm modals for critical actions
* user admin: lock down ldap user info
* user admin: align with latest design changes
* user admin: add LDAP sync
* admin user: confirm button
* user admin: add to org modal
* user admin: fix ConfirmButton story
* admin user: handle grafana admin change
* ConfirmButton: make styled component
* ConfirmButton: completely styled component
* User Admin: permissions section refactor
* admin user: refactor (orgs and sessions)
* ConfirmButton: able to set confirm variant
* admin user: inline org removal
* admin user: show ldap sync info only for ldap users
* admin user: edit profile
* ConfirmButton: some fixes after review
* Chore: fix storybook build
* admin user: rename handlers
* admin user: remove LdapUserPage import from routes
* Chore: fix ConfirmButton tests
* Chore: fix user api endpoint tests
* Chore: update failed test snapshots
* admin user: redux actions WIP
* admin user: use new ConfirmModal component for user profile
* admin user: use new ConfirmModal component for sessions
* admin user: use lockMessage
* ConfirmButton: use primary button as default
* admin user: fix ActionButton color
* UI: use Icon component for Modal
* UI: refactor ConfirmModal after Modal changes
* UI: add link button variant
* UI: able to use custom ConfirmButton
* Chore: fix type errors after ConfirmButton refactor
* Chore: revert Graph component changes (works with TS 3.7)
* Chore: use Forms.Button instead of ActionButton
* admin user: align items
* admin user: align add to org modal
* UI: organization picker component
* admin user: use org picker for AddToOrgModal
* admin user: org actions
* admin user: connect sessions actions
* admin user: updateUserPermissions action
* admin user: enable delete user action
* admin user: sync ldap user
* Chore: refactor, remove unused code
* Chore: refactor, move api calls to actions
* admin user: set user password action
* Chore: refactor, remove unused components
* admin user: set input focus on edit
* admin user: pass user into debug LDAP mapping
* UserAdminPage: Ux changes
* UserAdminPage: align buttons to the left
* UserAdminPage: align delete user button
* UserAdminPage: swap add to org modal buttons
* UserAdminPage: set password field to empty when editing
* UserAdminPage: fix tests
* Updated button border
* Chore: fix ConfirmButton after changes introduced in #21092
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-01-13 17:10:19 +01:00
Peter Holmberg
891b84e986
Fix: Tab icons not showing ( #21465 )
...
* revert back to i element
* snap
2020-01-13 13:53:39 +01:00
Torkel Ödegaard
b6c75b10d1
Login: Refactoring how login background is rendered ( #21446 )
...
* Login: Refactoring how login background is rendered
* Tweak
2020-01-13 09:42:21 +01:00
Torkel Ödegaard
27a77f588c
StatPanel: Refactoring & fixes ( #21437 )
...
* refactoring BigValue layout to use polymorphism
* Renamed file
* StatPanel: Fixed min & max handling, white theme background
* Typescript and test fixes
* Fixed justify center logic
* Updated test dashboard
* Updated test dashboard
* Adjust time xMax to align with last data point if it's close
* Fixed color issue
* removed text shadow
* Removed unused stuff
* Fixed auto min max
* Fixed strict typescript issues
* Updated
2020-01-13 09:41:35 +01:00
Hugo Häggmark
4f0fa776be
Chore: Migrates reducers and actions to Redux Toolkit ( #21287 )
...
* Refactor: Adds Redux Toolkit package
* Refactor: Uses configureStore from Redux Toolkit
* Refactor: Migrates applicationReducer
* Refactor: Migrates appNotificationsReducer
* Refactor: Migrates locationReducer
* Refactor: Migrates navModelReducer
* Refactor: Migrates teamsReducer and teamReducer
* Refactor: Migrates cleanUpAction
* Refactor: Migrates alertRulesReducer
* Refactor: Cleans up recursiveCleanState
* Refactor: Switched to Angular compatible reducers
* Refactor: Migrates folderReducer
* Refactor: Migrates dashboardReducer
* Migrates panelEditorReducer
* Refactor: Migrates dataSourcesReducer
* Refactor: Migrates usersReducer
* Refactor: Migrates organizationReducer
* Refactor: Migrates pluginsReducer
* Refactor: Migrates ldapReducer and ldapUserReducer
* Refactor: Migrates apiKeysReducer
* Refactor: Migrates exploreReducer and itemReducer
* Refactor: Removes actionCreatorFactory and reducerFactory
* Refactor: Moves mocks to test section
* Docs: Removes sections about home grown framework
* Update contribute/style-guides/redux.md
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Refactor: Cleans up some code
* Refactor: Adds state typings
* Refactor: Cleans up typings
* Refactor: Adds comment about ImmerJs autoFreeze
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-01-13 08:03:22 +01:00
Torkel Ödegaard
35679d4689
Logos: Refactoring a bit how logos are rendered ( #21421 )
2020-01-10 22:15:16 +01:00
Shavonn Brown
a7509d2ca0
More datasource funcs poc ( #21047 )
...
* remove anon funcs, removed options from state, removed update method, static selects as constants
* cancellable promise
* cancel promise on unmount
* use new datasource funcs for dryer component
* event handler funcs
* updated funcs and moved to utils, updating config editors
* S has no keys. never will never work
* remove report json
* update azure snapshot
* DataSourceSettings keyof
* rename reset funcs
2020-01-10 14:26:33 -05:00
Ryan McKinley
7521d2bba0
Heatmap: fix formatting ( #21433 )
...
* add formatting
* remove logging
2020-01-10 12:50:30 +01:00
vikkyomkar
15fe58f193
Docs: Fixed broken links of Datasource doc at Grafana plugin page ( #21363 )
...
Fixes #21362
2020-01-10 12:38:16 +01:00
Peter Holmberg
bb649489c8
grafana/ui: Create Tabs component ( #21328 )
...
* create tabs component
* replace tabs in pageheader
* splitting two different types of tabitems
* fix index and conditionals in tabs
* redo tabs to not render anchor links
* rename to className and use cx to combine classes
* reverting back to a simpler use case
* moving type to types file
* fix import
* redoing Tabs to simpler composition components
* pr feedback
* update snapshot
* use icon component, added knob for storybook
2020-01-10 10:38:43 +01:00
Ryan McKinley
bf18704490
Inspector: support custom metadata display ( #20854 )
2020-01-09 22:59:23 -08:00
teodoryantcheff
0bf9e9bc28
Table: Added text align option to column styles ( #21175 )
...
* Added text align option to column styles, tests
* table panel migrations
* added tests
* default column style is now auto
* tests and fixtures...
* wrong comments need removing
* xss guard
* test
* Some test for invalid options, formatting.
* Remote branch tracking.
2020-01-09 16:01:12 +01:00
Martin Brenner
7784b519a0
PluginPage: Add appSubUrl string to config pages url ( #21414 )
2020-01-09 14:02:58 +01:00
Torkel Ödegaard
91ea3b15fa
Footer: Single footer component for both react & angular pages ( #21389 )
...
* Footer: Single footer implementation for both react & angular pages
* Export type
* Updates
* Use footer links in help menu
* Updates & Fixes
* Updated snapshot
* updated snapshot
2020-01-09 11:25:52 +01:00
Torkel Ödegaard
fe61f6b7a7
AddDataSource: Added missing phantom plugin ( #21406 )
...
* AddDataSource: Added missing phantom plugin
* Fixed test
2020-01-09 08:26:32 +01:00
Shavonn Brown
cd5d5bcbba
Cloud Watch: Standardize Config Editor Implementation ( #20489 )
...
* remove anon funcs, removed options from state, removed update method, static selects as constants
* cancellable promise
* cancel promise on unmount
* use new datasource funcs for dryer component
2020-01-08 08:57:52 -05:00
Erik Sundell
cf2dd51827
CloudWatch: dimension_values templating fix ( #21401 )
...
* Handle dimension value if passed as array
* Break out dimension value loading into its own func
2020-01-08 12:24:10 +01:00
Lukas Siatka
34d9274c4c
Datasource: fixes prometheus datasource tests - adds align range
2020-01-07 15:41:01 +01:00
Torkel Ödegaard
f774c4a076
Cloudwatch: Fixed crash when switching from cloudwatch data source ( #21376 )
2020-01-07 13:05:14 +01:00
lzd
ee77e1a791
Datasource: fix a bug where deleting data source will trigger save and test events ( #21300 )
2020-01-07 09:48:46 +01:00
Dominik Prokop
630f75d3ef
Forms: revamped select ( #21092 )
2020-01-07 09:20:06 +01:00
Torkel Ödegaard
e78074992b
AddDatasourcePage: Refactoring & more Phantom plugins ( #21261 )
...
* WIP: New types and state refactoring
* Added buildCategories & tests
* Added phantom plugins
* fixed tests
* Minor changes, force enterprise plugins to enterprise category
* Fixed tests
2020-01-06 16:56:34 +01:00
Torkel Ödegaard
f93f1c4b51
Chore: Remove empty flot.pie file ( #21356 )
2020-01-06 16:53:38 +01:00
Ryan McKinley
1ba072cd58
NewsPanel: update default feed url ( #21342 )
2020-01-04 13:41:43 -08:00
Ryan McKinley
e550572033
DataFrame: round trip metadata to arrow Table ( #21277 )
2020-01-03 08:12:19 -08:00
David
cb3d91b53c
Prometheus: user metrics metadata to inform query hints ( #21304 )
...
* Prometheus: user metrics metadata to inform query hints
- no longer analyse datapoints
- either use metrics metadata to determine metrics type or use metric
name suffix
- removed testcases based on datapoints
* Added hint certainty and tests
2020-01-03 12:55:50 +01:00
okhowang
512a42d2c6
Panel: disable edit/duplicate/delete entry for repeat panel ( #21257 )
2020-01-03 12:18:39 +01:00
David
d63ad9ac93
Prometheus: Disable suggestions at beginning of value ( #21302 )
...
* Prometheus: Disable suggestions at beginning of value
- fixed comparison operator regex
- no longer suggest anything at beginning of label value
* Detect cursor in front of label values
2020-01-03 12:16:27 +01:00
Ryan McKinley
e1acc77297
@grafana/data: use timeZone parameter rather than isUtc ( #21276 )
2020-01-02 08:11:28 -08:00
David
3667781e6f
Loki: fix filter expression suggestions ( #21290 )
...
* Loki: fix filter expression suggestions
- dont suggest term completion items in filter expression
- allow at least one character before suggesting term items
- keep logql expression when switching between Metrics/Logs mode
- show only history by default in completion items
* Clear results when changing mode
2019-12-31 09:53:30 +01:00
David
334b89f3ee
Prometheus: Fix label value suggestion ( #21294 )
...
* Prometheus: Fix label value suggestion
- remove quotes from typeahead input to suggest correct label values
- fix acceptance of partial label values
* Disable mid-word suggestions
* Fix test
2019-12-31 08:56:57 +01:00
David
649fa6789e
Prometheus: Fix term completion that contain keywords ( #21295 )
...
- `unless`, `or` and `and` are binary operators
- if they appear in a query the query was broken up so the suggestor
only works on the current term
- this change fixes the splitter logic to make sure those keywords are
not inside a word
2019-12-30 18:03:35 +01:00
Ryan McKinley
d9e9843a10
FieldConfig: add thresholds and color modes ( #21273 )
2019-12-28 17:32:58 -08:00