Joao Silva
8e3b5dce76
Grafana-UI: Fixes timezone offset for default timezone when it is different from browser timezone ( #46796 )
2022-03-29 12:23:37 +01:00
Ashley Harrison
280b1ee828
Update @types/mousetrap to latest version ( #46893 )
...
* Update @types/mousetrap to latest version
* kick drone
* kick drone again
* Remove @types from the import
2022-03-29 12:13:31 +01:00
myml
23a1dbc264
feat: Bar Gauge Support scrolling ( #46819 )
...
* feat: Bar Gauge Support scrolling
* Update public/app/plugins/panel/bargauge/module.tsx
Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
* Update public/app/plugins/panel/bargauge/module.tsx
Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
* docs: Bar gauge add 'min-width' and 'min-height'
Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
2022-03-29 11:21:45 +01:00
Braden Snell
9a850de5a8
Variables: add graceful circular dependency failure ( #46590 )
...
* adds circular dependency check
* adds circular dep test
2022-03-29 11:18:59 +01:00
Victor Marin
5242d44693
Table panel: Show datalinks for cell display modes JSON View and Gauge derivates ( #46020 )
...
* Show datalinks on Table panel JSON View and Gauge derivates
* Use DataLinksContextMenu on BarGaugeCell
* Change import path
* PR modifications
* Re-add cell container style
2022-03-29 13:05:30 +03:00
Marcus Efraimsson
9eb2cd537d
Plugins: Make backend plugin metrics endpoints available with optional authentication ( #46467 )
...
* add new endpoint without auth+config
* add cfg check
* fit lint issue
* Add basic auth support
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
* WIP docs
* Update docs/sources/administration/view-server/internal-metrics.md
Co-authored-by: Dave Henderson <dhenderson@gmail.com>
* update instructions
Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Dave Henderson <dhenderson@gmail.com>
2022-03-29 11:18:26 +02:00
Tania B
8c622c1ef6
Datemath: Fix weekstart calculation ( #46962 )
...
* Update go-datemath version
* Remove unnecessary bits
* fixup! Remove unnecessary bits
2022-03-26 19:57:29 +01:00
renovate[bot]
6218ca4725
Update dependency @testing-library/dom to v8.12.0 ( #46981 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 17:45:42 +00:00
Julien NOEL
f4b6c4019c
PostgreSQL: __unixEpochGroup to support arithmetic expression as argument ( #46764 )
...
* __unixEpochGroup to support arithmetic argument
Following call generates wrong expression :
$__unixEpochGroupAlias(height+42,$__interval)
=> floor(height+42/60)*60 AS "time"
instead of
=> floor((height+42)/60)*60 AS "time"
* Update test of __unixEpochGroup related to issue #46764
2022-03-26 18:44:14 +01:00
Emil Tullstedt
7bc821baf2
Logger: Use specified format for file logger ( #46970 )
...
Fixes #45941
2022-03-26 11:40:08 +01:00
Fabien Pelletier
51396d5363
enable logs for postgres data source ( #39496 )
...
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-03-26 11:08:00 +01:00
Sarah Zinger
d5f40b63bb
Azure Monitor: Add support for multiple template variables in resource picker ( #46215 )
2022-03-25 14:12:52 -04:00
Kat Yang
e6726681a9
Chore: Remove x from annotation test ( #46935 )
2022-03-25 13:23:21 -04:00
Kat Yang
90f2233ea9
Chore: Remove global database engine variable from annotation ( #46940 )
...
* Chore: Remove global database engine variable from annotation
* 💩
2022-03-25 13:23:09 -04:00
Kat Yang
19be0b4170
Chore: Remove x from org users ( #46848 )
...
* Chore: Remove x from org users
* Chore: Remove x.Dialect() from org users
2022-03-25 17:19:01 +00:00
Yuriy Tseretyan
e20d157a9b
Alerting: rules delete API to check data source authorization ( #46906 )
...
* merge RuleSrv rule delete methods
* remove unused store methods
* implement delete by uid for fake store
* add scheduler mock
* implement tests for RouteDeleteAlertRules
2022-03-25 12:39:24 -04:00
Jack Westbrook
a06329d988
Chore: Bump node-forge to 1.3.0 ( #46953 )
2022-03-25 15:22:59 +00:00
Gabriel MABILLE
53e7f8405f
AccessControl: Permission Migrator, clean unused arguments ( #46937 )
2022-03-25 14:04:10 +01:00
Andrej Ocenas
20b4112b3b
Prometheus: Report error when parens are used and switching to visual builder ( #46899 )
2022-03-25 14:03:30 +01:00
Torkel Ödegaard
1c648cb52c
Loki: Adds options to the new query builder ( #46783 )
...
* Initial commit for loki builder options
* Loki query options
* Added some basic tests
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.test.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Updated options
* All option changes should trigger query
* Fixed ts issue
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-03-25 13:13:55 +01:00
Torkel Ödegaard
3516821012
Dashboard: Fixes save modal rendered ontop of save drawer ( #46916 )
...
* Dashboard: Fixes save modal rendered ontop of save drawer
* removed commented line
* Simplified dismiss -> hideModal mapping
* Fixed issue with new dashboard
* Fixing issues
2022-03-25 13:08:42 +01:00
Yaelle Chaudy
c00f488f89
Azure Monitor : Add support for the resource picker to be configurable to only select some entry types ( #46735 )
...
Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
Co-authored-by: Andres Martinez Gotor <andres.mgotor@gmail.com>
Co-authored-by: Isabella Siu <isabella.siu@grafana.com>
Co-authored-by: Sarah Zinger <sarah.zinger@grafana.com>
2022-03-25 12:22:28 +01:00
Andres Martinez Gotor
3c5e68a349
CloudWatch: Fix metric names ( #46929 )
2022-03-25 09:17:15 +01:00
Yuriy Tseretyan
6610adf090
Alerting: remove UpdateRuleGroup from fake rule store ( #46941 )
...
* remove UpdateRuleGroup from fake rule store because It is not part of interface anymore
2022-03-24 19:29:19 -04:00
Yuriy Tseretyan
15e4556c2f
Alerting: update authorization logic to use proper legacy roles when fine-grained access is disabled ( #46931 )
...
* require legacy Editor for post, put, delete endpoints
* require user to be signed in on group level because handler that checks that user has role Editor does not check it is signed in
2022-03-24 17:13:47 -04:00
Yuriy Tseretyan
8868848e93
Alerting: rule group update API to ignore deletes of rules user is not authorized to access ( #46905 )
...
* verify that the user has access to all data sources used by the rule that needs to be deleted from the group
* if a user is not authorized to access the rule, the rule is removed from the list to delete
2022-03-24 16:53:00 -04:00
Yuriy Tseretyan
84001fe6be
log to console when run integration tests ( #46934 )
2022-03-24 13:08:12 -04:00
Gabriel MABILLE
9dc06cd21f
simplify bulkAssignRoles ( #46891 )
2022-03-24 18:06:44 +01:00
Kat Yang
39f14a2ec2
Chore: Remove x from login attempt ( #46853 )
2022-03-24 17:00:41 +00:00
Jack Westbrook
36483eb6bf
Chore: Remove prismjs@1.25.0 from yarn.lock ( #46244 )
2022-03-24 17:26:55 +01:00
Ashley Harrison
c13f4542d8
Dashboard: Template variables are now correctly persisted when clicking breadcrumb links ( #46790 )
...
* Add history listener to update titleHref/parentHref when location changes
* Convert to functional component and use useLocation
* Wrap component in React.memo
* Add new `getUrlForPartial` method, deprecate `updateSearchParams`
2022-03-24 16:01:43 +00:00
Dimitris Sotirakis
0e682397ab
Add GH token when referring to remote - add --quite when running git push ( #46926 )
2022-03-24 15:01:49 +00:00
achatterjee-grafana
c42b0d7498
Docs: Reorganize Dashboards and add note for escalations issue 2013 ( #46902 )
...
* Initial commit.
* Update version number
* Initial commit.
* More formatting changes. Also added URL links.
* Ran prettier.
2022-03-24 09:46:08 -04:00
kay delaney
8329cd59f6
LibraryPanels: Increase max description length to 2048 chars ( #46601 )
2022-03-24 12:14:56 +00:00
Dimitris Sotirakis
9bf82c37e3
Fetch tags after cloning ( #46921 )
2022-03-24 11:54:58 +00:00
Karl Persson
cac6936015
Access control: Change data source permissions to be based on UID ( #46741 )
...
* Add ResourceAttribute
* Add ResourceAttribute option
* Set ResourceAttribute option
* Change resolvers to return uid based scopes
* update swagger to correct scope
* use ResourceAttribute for endpoint scope
* bump role version
* Add support for different attributes for access control metadata
* evaluate data source metadata based on uid
* Fix test
* uncomment benchmarks
* Use resourceID
* use evaluator for access control metadata
* update comment
* Set default permissions based on uid
* Add attribute to accesscontrol filter
* validate that scopes has correct attribute
* lint
* Update comment
* remove attribute parameter and extend prefix
* refactor to use scope prefix
* Get metadata with prefix
* fix test
* fix comparision
* remove unused type
* fix attribute index
* fix typo
* restructure logic
* Get metadata by uid
* fix imports
Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-03-24 12:21:26 +01:00
Dimitris Sotirakis
758ccfb69e
CI: Trigger release build upon drone yaml changes ( #46882 )
...
* Add trigger-test-release step
* Change cd command
* Add failure:ignore
* Add depth when cloning
* Fix wrong secret
2022-03-24 10:59:15 +00:00
Josh Hunt
89757cf58f
ManageDashboards: Fix error when deleting all dashboards from folder view ( #46877 )
...
* user essentials mob! 🔱
* draft tests
* tests!
* better default ids for test data
2022-03-24 09:43:25 +00:00
Andres Martinez Gotor
987afeee38
Chore: Cover CloudMonitoring function utils with tests ( #46878 )
2022-03-24 09:47:59 +01:00
Gabriel MABILLE
3440e7c8f7
AccessControl: Fix locked role picker in orgs/edit page ( #46539 )
...
* AccessControl: Fix locked role picker in orgs/edit page
* Use correct org when computing metadata
2022-03-24 08:58:10 +01:00
Santiago
a9b55f7905
Fix InfluxDB tag variables parsing ( #46862 )
...
* regex bug fixed
* remove unnecessary test
2022-03-23 21:13:17 -06:00
Ezequiel Victorero
c5f295b5b3
Access Control: adding FGAC validation to mass delete annotation endpoint ( #46846 )
...
* Access Control: adding FGAC validation to mass delete annotation endpoint
2022-03-23 18:39:00 -03:00
Yuriy Tseretyan
60d4cd80bf
Alerting: update DeleteAlertRuleByUID to accept many UID ( #46890 )
2022-03-23 16:09:53 -04:00
Selene
d57c94fb6a
Chore: Remove bus from folder service ( #46840 )
...
* Remove bus from folder service
* Fix tests
2022-03-23 19:40:22 +01:00
Ivana Huckova
7839fadf00
Loki: Fix fetching of second label set for the streams selector ( #46898 )
...
* Fix fetching of labels
* Add test
2022-03-23 17:59:48 +00:00
achatterjee-grafana
9f16644476
Updated content based on feedback. ( #46896 )
2022-03-23 13:59:24 -04:00
Yuriy Tseretyan
4ee48c2e77
Alerting: Update GetRuleGroupAlertRules to accept optional rule group ( #46889 )
...
* rename GetRuleGroupAlertRules to GetAlertRules
* make rule group optional in GetAlertRulesQuery
* simplify FakeStore. the current structure did not support optional rule group
2022-03-23 17:36:25 +00:00
matt abrams
562a25ad99
increase label width on TLS info ( #46816 )
2022-03-23 17:22:08 +00:00
Yuriy Tseretyan
acd7be1cb4
Alerting: Change getEvaluatorForAlertRule to checkDatasourcePermissionsForRule ( #46887 )
...
update method getEvaluatorForAlertRule to accept permissions evaluator and exit on the first negative result, which is more effective than returning an evaluator that in fact is a bunch of slices.
2022-03-23 17:11:30 +00:00
Connor Lindsey
78c23d8dab
Tracing: Prevent createSpanLink from returning an invalid Loki query ( #46864 )
2022-03-23 09:48:11 -07:00