Karl Persson
d27ff42376
Access control: Move data source actions and scopes to datasource package ( #46594 )
...
* Add permission actions and id scope
* Remove scope and actions variable prefix
* Move page evaluators and rename them
2022-03-16 15:11:03 +01:00
Yuriy Tseretyan
ea815d640f
Search Service to support search for folders available for alerting ( #46483 )
...
* support new query type "alert-folder"
* move action calculation to the constructor of the filter
* update filter to support query type `dash-folder-alerting` and empty dashboard actions
* require folders:read to access alert rules
2022-03-16 14:07:04 +00:00
Karl Persson
7192b7caee
Access control: Move licensing actions to licensing package ( #46588 )
...
* Move licensing actions to licensing package
2022-03-16 14:37:19 +01:00
Yuriy Tseretyan
c42d2e6f5d
Alerting: Add support for fine-grained access to alerting APIs ( #46561 )
2022-03-16 09:36:58 -04:00
Dimitris Sotirakis
85184ee9dc
Update grabpl ( #46639 )
2022-03-16 13:31:20 +00:00
Todd Treece
3f58abe9bd
Chore: Update go version used in CI to 1.17.8 ( #46591 )
2022-03-16 07:25:54 -04:00
Karl Persson
8261e781d5
Access control: Delete user permissions when a user is deleted ( #46021 )
...
* Remove access control related to user on deletion
2022-03-16 10:43:44 +01:00
renovate[bot]
8bda0c66d7
Update dependency eslint to v8.11.0 ( #46484 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-16 09:25:21 +00:00
Andres Martinez Gotor
727204ed5e
CloudMonitoring: Improve error message ( #46599 )
2022-03-16 09:37:48 +01:00
Dominik Prokop
5ae3e3f6f7
TimeSeries: Preserve null/undefined values when performing negative y transform ( #46584 )
2022-03-16 01:05:37 -07:00
Torkel Ödegaard
31d141b267
Dashboards: Fixes repeating by row and no refresh ( #46565 )
2022-03-16 07:57:12 +01:00
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