Jack Westbrook
d1da97b176
Bump babel to 7.14.x for typescript 4.3 support ( #36465 )
...
* chore(babel): bump packages to 7.14.x
* chore(babel): remove plugin-proposal-class-properties and plugin-proposal-private-methods
these plugins are now enabled by default in preset-env
2021-07-07 10:43:17 +02:00
Michael Alex
7538739881
Fixed a typo in AnalyticsConfig.test.tsx file ( #36439 )
2021-07-07 09:12:59 +02:00
Ryan McKinley
92dc6aed3f
Dev: include vscode launcher / debugger ( #36360 )
2021-07-07 00:05:30 -07:00
b361fc751c
PanelOptions: Don't mutate panel options/field config object when updating ( #36441 )
...
* PanelOptions: Don't mutate panel options/field config object when updating
* Review
* maybe faster, plus value === '' fix
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
Co-authored-by: Leon Sorokin <leeoniya@gmail.com >
2021-07-07 08:58:07 +02:00
idafurjes
60ac54d969
Chore: Refactor OAuth/social package to service ( #35403 )
...
* Creating SocialService
* Add GetOAuthProviders as socialService method
* Add OAuthTokenService
* Add GetOAuthHttpClient method to SocialService
* Rename services, access socialMap from GetConnector
* Fix tests by mocking oauthtoken methods
* Move NewAuthService into Init
* Move OAuthService to social pkg
* Refactor OAuthService to OAuthProvider
* Fix nil map error, rename file, simplify tests
* Fix bug for Forward OAuth Identify
* Remove file after rebase
2021-07-07 08:54:17 +02:00
Zoltán Bedi
55e763b4cd
Prometheus: interpolate variable for step field ( #36437 )
...
* Prometheus: interpolate variable for step
* Add test for variable interpolation
2021-07-07 08:43:46 +02:00
Alex Khomenko
1655ff1e49
Add aria label ( #36468 )
2021-07-07 09:06:39 +03:00
Tharun Rajendran and Torkel Ödegaard
97dca963a9
Table: Fixes color for data links ( #36446 )
...
* Table: add styling for anchor tag
* inherit color from parent to anchor tag
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2021-07-07 07:46:38 +02:00
Alexander Emelin
e60950a8c7
Live: document allowed_origins ( #36433 )
2021-07-06 20:47:05 -07:00
Ben Bodenmiller
0c20cc1d12
Chore: remove extra "only" ( #36494 )
2021-07-06 20:45:55 -07:00
Kevin Minehart
92cb503486
use absolute path when getting grafana path; add test for directory ( #36001 )
2021-07-06 11:28:02 -05:00
Torkel Ödegaard
17707d886a
PanelEditor: Fixes issue minor UI issue with editing non data panels ( #36463 )
2021-07-06 18:01:13 +02:00
Matthias Blümel and Torkel Ödegaard
b49b7faeee
Transformation: show message if not applied on single frame ( #36469 )
...
* Transformation: show message if not applied on single frame
* Use FieldValidationMessage component instead
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2021-07-06 16:41:28 +02:00
Josh Hunt and Robby Milo
eabf3fb674
Docs: Fix Azure Monitor refs ( #36458 )
...
* Docs: Fix Azure Monitor refs
* more fixes
Co-authored-by: Robby Milo <robbymilo@gmail.com >
2021-07-06 10:27:32 -04:00
Alex Shpak
b5cdf5fdd8
Respect hour12 settings when formatting local date ( #33679 )
...
* Respect hour12 settings when formatting local date
2021-07-06 13:09:19 +01:00
cc4d301d50
Annotations: Add typeahead support for tags in builtin annotations ( #36377 )
...
* Annotations: create React component, naive attempt at hooking together
* Annotations: Use query object instead of passing annotation
* Annotations: Hook up the new api to get annotation tags
* Annotations: Use InlineFieldRow instead of gf-form-inline
* Annotations: Use InlineSwitch instead of gf-form-switch
* TagFilter: Add support for allowCustomValue
* Annotations: Update to match backend api
* Annotations: Add basic tests, expose inputId on `TagFilter`
* Annotations: Fix test name and reorder tests slightly
* Annotations: Use FieldSet instead of gf-form-group
* Refactor: fixes annotation queries
* Annotations: Everything working, just types to fix...
* Annotations: Fix types?
* Revert "Annotations: Fix types?"
This reverts commit 6df0cae0c9 .
* Annotations: Fix types again?
* Annotations: Remove old angular code
* Annotations: Fix unit tests for AnnotationQueryEditor
* Annotations: Check if it's an annotation query immediately
* Annotations: Prevent TagFilter overflowing container when there are a large number of tags
* Change to new form styles
* Annotations: Add id's + fix unit tests
* Updated wording
* Annotations: Allow custom value to preserve being able to use template variables
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com >
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2021-07-06 10:50:46 +01:00
Ashley Harrison
96a3cc3cd8
TooltipPlugin: Prevent Tooltip render if field is undefined ( #36260 )
...
* Tooltip Plugin: Prevent tooltip render if focusedSeriesIdx is out of range
* TooltipPlugin: Also prevent render in multi case
* TooltipPlugin: Return null if field is undefined
2021-07-06 10:48:10 +01:00
Josh Hunt
2a4191a2ee
AzureMonitor: Fix issue where resource group name is missing on the resource picker button ( #36400 )
...
* AzureMonitor: Fix issue where resource group name is missing in the UI
* fix
2021-07-06 11:22:47 +02:00
Dimitris Sotirakis
a18d3007a7
Folders: Return 409 Conflict status when folder already exists ( #36429 )
...
* Return 409 Conflict when trying to post folder that already exists
* Fix tests
* Update documentation for new error message in folders api
2021-07-06 11:11:29 +02:00
Josh Hunt
227c11d37f
Grafana-Toolkit: Improve error messages when tasks fail ( #36381 )
2021-07-06 10:07:17 +01:00
fabio-silva
d87e086d6f
Dashboard: avoid and correct invalid date ranges (i.e. to < from) ( #34543 )
...
* Dashboard: invert invalid date ranges from URL
* Dashboard: discard invalid date ranges from inputs
* Dashboard: move time range reset
* Dashboard: simplify undefined dashboard verification
* Dashboard: show form error on invalid date range
* Dashboard: rename function to isRangeInvalid
* Dashboard: refactor invalid check functions
* Dashboard: different error messages for date picker
* Dashboard: add date tests to TimeRangeForm
2021-07-06 10:46:17 +02:00
Ivana Huckova and achatterjee-grafana
b77f6d59bd
Loki: Add support for ad-hoc filtering in dashboard ( #36393 )
...
* Add support for ad-hoc filtering in dashboards
* Add tests
* Add documentation
* Update docs/sources/variables/variable-types/add-ad-hoc-filters.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Remove unused import
* Refactor and simplify
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-07-06 10:30:27 +02:00
Ivana Huckova and achatterjee-grafana
666656c925
Loki: Add $__range variable ( #36175 )
...
* Add variable to Loki
* Add tests
* Update, remove redundant options
* Add missing import
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-07-06 08:56:01 +02:00
Ryan McKinley
3a6ec01c05
Dashboards: load dashboards from a data source ( #36366 )
2021-07-05 15:35:10 -07:00
Richard Hartmann
4632b070e4
Put vendored code under their upstream licenses explicitly ( #36442 )
...
Signed-off-by: Richard Hartmann <richih@richih.org >
2021-07-05 21:33:01 +02:00
Zoltán Bedi
0ae8a85828
CloudwatchLogs: send error down to client ( #36277 )
...
* CloudwatchLogs: send error down to client
* Move error handling down to startLiveQuery
2021-07-05 16:12:58 +02:00
Tharun Rajendran
f62bc59688
DataSource: change status code to 404 if datasource and plugin is not found ( #36426 )
...
Fixes #36418
2021-07-05 14:46:34 +02:00
Torkel Ödegaard
4932b9dfa4
DateFormats: Fix reading correct setting key for use_browser_locale ( #36428 )
2021-07-05 14:45:36 +02:00
Sergey Kostrukov
89ba607382
AzureMonitor: strongly-typed AzureCredentials and correct resolution of auth type and cloud ( #36284 )
2021-07-05 12:20:12 +02:00
Will Browne
719e78f333
bump version ( #36430 )
2021-07-05 12:19:10 +02:00
Andres Martinez Gotor
759f9c44cb
Add a button to clear Azure Monitor Logs credentials ( #36256 )
2021-07-05 11:12:56 +02:00
Tharun Rajendran
1ab452e88a
API: Fix 404 status code plugin pages ( #36402 )
2021-07-05 10:24:14 +02:00
Uchechukwu Obasi
808b9a3126
Grafana-ui: disables storybook controls that are irrelevant ( #35250 )
...
* Grafana-ui: disables storybook controls that are irrelevant
* excluded unused control in Select story
* made timeRange control visisble in GraphNG story
2021-07-05 10:17:39 +02:00
Dominik Prokop
7ae656ff16
TimeSeries: Do not show series in tooltip if it's hidden in the viz ( #36353 )
2021-07-05 10:15:34 +02:00
Sofia Papagiannaki
8a3edf280e
Alerting: Fix prometheus API to check folder permissions ( #36301 )
2021-07-05 10:49:14 +03:00
Armand Grillet
7fb233cfb1
Theme: Add margin-bottom to .markdown-html tables ( #36415 )
2021-07-05 08:40:56 +02:00
Edgar Poce
7fd2ddfdb4
Transformations: skip merge when not enough dataframes ( #36407 )
2021-07-05 08:40:02 +02:00
Ikko Ashimine
b13101fd00
Monaco: fix typo in types.ts ( #36412 )
...
guarentee -> guarantee
2021-07-04 15:58:33 -07:00
Alexander Emelin
354789edc9
update option description to only commit to wildcard symbol for now ( #36341 )
...
(cherry picked from commit 012ee1fc28 )
2021-07-03 00:46:48 +03:00
MeetzhDing
63715dcdef
fix : #36322 HistoryWrapper constructor history param not work ( #36367 )
2021-07-02 17:19:58 +01:00
Marcus Efraimsson
b26b922658
Contribute: Ongoing refactoring of context.Context everywhere ( #36363 )
2021-07-02 17:07:21 +02:00
ca5379d64d
AzureMonitor: Refresh documentation ( #35371 )
...
* AzureMonitor: Refresh documentation
* logs/kusto
* finish up logs
* variables for log analytics
* Apply suggestions from code review
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* finish up main topics
* finish docs?
* typos and other review comments
* add link to sample arg queries
* split up azure docs
* workaround weird code duplication issue
* Update docs/sources/datasources/azuremonitor/template-variables.md
Co-authored-by: Sarah Zinger <sarahzinger@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* feedback
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: Sarah Zinger <sarahzinger@users.noreply.github.com >
2021-07-02 15:56:20 +01:00
Leonard Gram
09a96ad2ad
Azure OAuth: debug logs for user information ( #36389 )
2021-07-02 16:24:33 +02:00
Ivana Huckova and achatterjee-grafana
09e49f6118
Docs: Improve title and documentation for share shortened link in Explore ( #36380 )
...
* Improve title and documentation for share shortened link in Explore
* Update docs/sources/explore/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-07-02 16:14:55 +02:00
Ivana Huckova and achatterjee-grafana
0ca6fdd310
Docs: Add $__rate_interval variable to global variables ( #36378 )
...
* Add variable documentation to global variables
* Update docs/sources/variables/variable-types/global-variables.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-07-02 16:14:41 +02:00
Karl Persson and Ivana Huckova
2fd7031102
Access Control: Add fine-grained access control to explore ( #35883 )
...
* add fixed role for datasource read operations
* Add action for datasource explore
* add authorize middleware to explore index route
* add fgac support for explore navlink
* update hasAccessToExplore to check if accesscontrol is enable and evalute action if it is
* add getExploreRoles to evalute roles based onaccesscontrol, viewersCanEdit and default
* create function to evaluate permissions or using fallback if accesscontrol is disabled
* change hasAccess to prop and derive the value in mapStateToProps
* add test case to ensure buttons is not rendered when user does not have access
* Only hide return with changes button
* remove internal links if user does not have access to explorer
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2021-07-02 14:43:12 +02:00
Selene
ef05596e07
Allow white labeling loading logo ( #36174 )
...
* Allow to whitelabeling loading logo
* Add loading_logo to documentation
* Change loading_logo to loading_logo_url
2021-07-02 14:17:10 +02:00
ying-jeanne
54acb18c5f
migrate away from goconvey ( #36203 )
2021-07-02 19:22:47 +08:00
Torkel Ödegaard
09fed51be5
Snapshots: Fixex snapshots absolute time range issue ( #36350 )
2021-07-02 13:05:11 +02:00
Hugo Häggmark
b741245960
DashboardQueryRunner: Fixes unrestrained subscriptions being created ( #36371 )
2021-07-02 10:52:13 +02:00