Yuriy Tseretyan
468def0c00
Alerting: fixed roles for fine-grained access control ( #46553 )
...
* move alerting actions to accesscontrol to avoid cycledeps
* define new actions and fixed roles for alerting
* add folder permission to alert reader role
2022-03-15 14:30:32 -04:00
Joao Silva
00c93fff8c
Grafana-UI: Fix use of Fragments as children of InlineField ( #46326 )
2022-03-15 17:50:29 +00:00
Artur Wierzbicki
b8fba41d74
Storage: unify List
queries ( #46572 )
...
* silence errors
* s3 fix - don't retrieve files with path equal to the root
* Storage: unify list queries
* Storage: add `IsFolder` method to file obj
* Storage: API consistency - always refer `File` as a pointer rather than a value
2022-03-15 21:21:22 +04:00
Alexander Weaver
92716cb602
Alerting: Create abstraction for launching transactions and refactor existing transaction management to use it ( #46216 )
...
* Remove InTransaction from RuleStore and make it its own interface
* Ensure that ctx-based is clear from name
* Resolve merge conflicts
* Refactor tests to work in terms of the introduced abstraction rather than concrete dbstore
2022-03-15 11:48:42 -05:00
Andrej Ocenas
ecdbcd4941
Prometheus: Fix support of AdHoc filters for specific queries ( #46547 )
...
* Use parser to deal with ad hoc filters
* Add comment
* Fix variable naming
* Fix tests
2022-03-15 17:37:20 +01:00
Tania B
8e13b201ba
Docs: Add description to remote cache configuration ( #46589 )
...
* Add description to remote cache configuration
* Apply feedback
2022-03-15 17:13:53 +01:00
Andrej Ocenas
a2cec62fa2
Prometheus: Fix parsing of binary operations ( #46549 )
2022-03-15 17:00:29 +01:00
Jguer
04267a66ec
Service Accounts: Refactor login service to use sqlstore methods ( #46585 )
...
* refactor login service to use sqlstore methods
* trailing newline
2022-03-15 16:57:21 +01:00
Nathan Marrs
11aa6a3e8f
Value mapping/add icon support ( #44503 )
...
Co-authored-by: Ryan McKinley <ryantxu@users.noreply.github.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-03-15 08:51:12 -07:00
Yuriy Tseretyan
e62e9904ee
Folder UID scope resolver ( #46426 )
2022-03-15 15:37:16 +01:00
Leonard Gram
f46038ed3a
Search: sort results correctly when using postgres ( #46466 )
...
* Search: sort results correctly when using postgres
postgresql puts nulls first while both mysql and sqlite puts them last
* linting
2022-03-15 15:08:40 +01:00
Ed Welch
16cf179df1
adding .linguirc to the copied files in the Dockerfile ( #44951 )
2022-03-15 08:32:46 -05:00
Ieva
510c69ec91
Access control: allow hiding roles ( #46358 )
...
* allow hiding roles
* extend docs
* docs feedback
* extend provisioning docs
* formatting
Co-authored-by: Leonard Gram <leo@xlson.com>
2022-03-15 13:17:45 +00:00
Alexander Kubyshkin
5cf0906622
Add unpack to Loki Log Browser ( #44623 ). ( #46573 )
2022-03-15 14:17:36 +01:00
Kevin Yu
2706783250
CloudMonitoring: Update dependency @grafana/google-sdk to v0.0.3 ( #46541 )
2022-03-15 05:56:05 -07:00
Dominik Prokop
f452e068f0
TimeSeries: Add migration for Graph panel's transform series override ( #46577 )
2022-03-15 14:29:15 +02:00
renovate[bot]
93d37db4f0
Update dependency lru-cache to v7.5.1 ( #46513 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 11:29:52 +00:00
Gabriel MABILLE
75935c75c1
ServiceAccounts: Fix role update ( #46568 )
...
* ServiceAccounts: Fix role update
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
* Fix patch missing metadata
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
* Fix patch missing metadata
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
2022-03-15 10:48:10 +01:00
Ryan McKinley
4cd27a380d
Geomap: applying multiple line builders should keep each segment ( #46563 )
2022-03-14 22:58:41 -07:00
Jean-Philippe Quéméner
e135b8531a
Alerting: refactor receiver validation to be reusable ( #46103 )
2022-03-15 00:27:10 +01:00
Giordano Ricci
00f67cad1b
Explore: set correct datasource when creating panel in a dashboard ( #46530 )
2022-03-14 23:26:13 +00:00
Joey Tawadrous
bd21355f87
Trace view: Scroll to top on new query ( #46278 )
2022-03-14 14:22:37 -06:00
Sarah Zinger
275f33cf37
Azure Monitor: Add feature gating for new MetricsQueryEditor with resource picker ( #46124 )
...
* Azure Monitor: Use feature toggle for dev of new UI for Metrics Queries.
* Fixes after CR
2022-03-14 15:07:45 -04:00
Todd Treece
41f3d56c3f
Chore: Update grafana-plugin-sdk-go to v0.129.0 ( #46544 )
2022-03-14 13:32:11 -04:00
Jguer
ef9fe26886
Service accounts: Split user and service account database ( #46442 )
...
* ServiceAccounts: remove unused endpoint
* ServiceAccounts: remove usage of getOrgUsers from service accounts
* use dialect for boolean str true in delete
* return service account results directly
* Move Service Account Deletions to sa package
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabi.mabs@gmail.com>
* Move service account methods to service accounts
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabi.mabs@gmail.com>
* Service accounts should not interfere with users
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* filter service accounts in user services
* mispell fix
* fix overextended lines
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* fix variable
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabi.mabs@gmail.com>
2022-03-14 18:24:07 +01:00
Kevin Yu
99b4dfc27d
Dashboard: Validate refId when generating id for cloudwatch query ( #46182 )
...
* Validate refId when generating id for cloudwatch query
* add test case when refId is a valid metric data id
2022-03-14 09:44:04 -07:00
Andrej Ocenas
04409799fb
Prometheus: Allow boolean params on operations and add bool modifier parsing ( #46448 )
...
* Allow boolean params on operations and add bool modifier parsing
* Allow float number literals
2022-03-14 17:36:25 +01:00
Gabriel MABILLE
74b441536d
ServiceAccount: fix writer role version ( #46540 )
2022-03-14 17:35:39 +01:00
renovate[bot]
9546523f41
Update dependency @react-aria/button to v3.4.2 ( #45452 )
...
* Update dependency @react-aria/button to v3.4.2
* Use type assertions
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-03-14 16:31:55 +00:00
Karl Persson
544b6ab736
Access control: Add logs to access control dashboard guardian ( #46534 )
...
* Add logs to access control dashboard guardian
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2022-03-14 17:12:09 +01:00
Karl Persson
8688073564
Access control: Support filter on several actions ( #46524 )
...
* Add support for several actions when creating a acccess control sql
filter
2022-03-14 17:11:21 +01:00
Yuriy Tseretyan
9465eb1b3a
Folder store ( #46431 )
...
* create FolderStore
* update usages to provide context
* implement methods to get folder by ID and UID
* update folder service to use store methods
2022-03-14 11:21:42 -04:00
Yaelle Chaudy
0b0d612372
A11y : Fix option panes not accessible when collapsed ( #46405 )
...
* Turned div into text button to make it accessible
* Only icon as button to avoid embedded buttons with overrides delete button
* use icon in Button directly
* Removed unused import
* moving id for labelledBy to h6 elem instead of icon
* Tweaking style, bigger caret
* Fixed aria-expanded
* Modifying and using CollapseToggle from unified alerting
* Added restOfProps to CollapseToggle
2022-03-14 15:37:13 +01:00
Konrad Lalik
2409405c34
Alerting: Integrate alerts with folders ( #45763 )
...
* Add Alert rules tab
* Add pagination and a simple name-based filtering
* Add name and label based filtering
* Improve pagination, handle the no results case
* Add tests for alerts folder view
* Add label filtering by clicking a tag
* Add tests for matcher to string method
* Add sorting, improve styles
* Use simple Select component for sorting
* Update default page size
* Remove unused code
* Use existingc thunk
* chore: update swagger spec
* Revert "chore: update swagger spec"
This reverts commit ee79ec7341
.
* Code cleanup
* Fix ts
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
2022-03-14 15:21:29 +01:00
Jguer
e512029afb
ServiceAccounts: lowercase edit url ( #46517 )
2022-03-14 14:22:54 +01:00
Todd Treece
cf9f76319a
DevEnv: Enable remote write for prometheus ( #46256 )
2022-03-14 09:18:33 -04:00
renovate[bot]
fa31508b93
Update dependency rc-cascader to v3.3.1 ( #46407 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-14 10:55:23 +00:00
renovate[bot]
10462bb124
Update dependency @react-aria/overlays to v3.8.0 ( #46307 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-14 10:52:52 +00:00
gotjosh
a75d4fcbd8
Alerting: Display query from grafana-managed alert rules on /api/v1/rules
( #45969 )
...
* Aleting: Extract query from alerting rule model for api/v1/rules
* more changes and fixtures
* appease the linter
2022-03-14 10:39:20 +00:00
Joey Tawadrous
ecf84be65a
Added margin right to space out previously squashed labels and values ( #46284 )
2022-03-12 14:57:36 +00:00
Jens Oliver Meiert
c649b54ed2
docs: make case consistent ( #46436 )
...
(Other headings use sentence case)
2022-03-11 22:03:45 +01:00
renovate[bot]
6db4b54ab0
Update dependency selecto to v1.15.0 ( #46459 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-11 20:32:58 +00:00
renovate[bot]
e8496bc433
Update dependency eslint-plugin-jsdoc to v38 ( #46468 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-11 20:32:11 +00:00
Zoltán Bedi
91265e6c8e
Bump publish docs node version ( #46475 )
2022-03-11 21:28:12 +01:00
Artur Wierzbicki
5881127319
Storage: fix filestorage.Wrapper
PathFiltering and non-recursive folder listing ( #46469 )
...
* fix pathFilters in wrapper - apply rootPath changes before filtering
* fix non-recursive folder listing
2022-03-11 23:16:46 +04:00
Artur Wierzbicki
ed924b3d0c
Storage: list filtering and root folder support ( #46453 )
...
* git the things: FS api internal changes
* remove filestorage/service.go
* remove filestore flag
* remove dummy fs
* readd fileblob import
2022-03-11 22:08:19 +04:00
Dimitris Sotirakis
a29159f362
Update golang ( #46458 )
2022-03-11 16:09:17 +01:00
Dimitris Sotirakis
82b436afee
CI: Add more checks to standalone docs pipeline ( #46449 )
...
* Add build frontend package step
* Reorder dependencies
* Add codespell and prettier checks
2022-03-11 16:48:23 +02:00
Torkel Ödegaard
cb0b089d32
Gauge: Fixes blank viz when data link is added and orientation was horizontal ( #46335 )
2022-03-11 11:48:20 +01:00
matt abrams
52c9da1b11
A11y: add copy button to API Key modal ( #46387 )
...
* add copy button to API Key modal
* switch to inline button style
* update test snapshot
2022-03-11 11:10:27 +01:00