Commit Graph
10911 Commits
Author SHA1 Message Date
Giuseppe Guerra df35cc0bfb Fix circular imports 2023-06-21 10:08:27 +02:00
Giuseppe Guerra c11cff2107 try to solve circular import 2023-06-20 16:16:24 +02:00
Giuseppe Guerra 86ae548198 Merge branch 'main' into giuseppe/angular-deprecation/remote-patterns-db 2023-06-20 16:09:13 +02:00
Giuseppe Guerra ce6cc77b94 Rename package, refactoring 2023-06-20 15:50:32 +02:00
Giuseppe Guerra 5622f2f43a Plugins: Angular: Update hardcoded Angular detection patterns (#70053)
* Plugins: Angular: add ConfigCtrl to Angular patterns

* Update angular detection patterns

* Add tests
2023-06-20 14:12:17 +02:00
Giuseppe Guerra 0a547f8907 WIP: Angular: cache patterns in db, moved gcom into pluginsintegration
More similar to signing keys fetching
2023-06-20 12:45:11 +02:00
George Robinson a1cb7319d5 Alerting: Update in app documentation for customizing message and subject (#70367) 2023-06-20 12:20:01 +02:00
George Robinson 815e98ed95 Alerting: Add debug logs for EndsAt timestamp (#70336)
This commit adds debug logs for previous_ends_at and next_ends_at
to state.go to help us debug issues where alerts are resolved in
Alertmanager due to expiration. This change is in response to a
support escalation where this information was needed but unavailable.
2023-06-20 12:13:38 +03:00
Zoltán Bediandnmarrs 39433b5b9a Candlestick: Migrate to schema (#62113)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-06-20 07:18:40 +03:00
cc65b4d46a Secrets: Make the Migrator extensible (#67307)
* [Chore] Remove setting provider from secret service

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>

* Add a ShouldBeRedacted func

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>

* Secrets: Make Migrator extensible

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Tania B <yalyna.ts@gmail.com>

* Alerting: Fix tests after refactor

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Tania B <yalyna.ts@gmail.com>

* Remove commented code no longer used

* Fix Wire bindings

Co-authored-by: Tania B <yalyna.ts@gmail.com>

* Add constructors to secrets

* Linting

* Undo undesired change

---------

Co-authored-by: gamab <gabi.mabs@gmail.com>
Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-06-19 23:44:01 +02:00
Giuseppe Guerra 9e499fbb15 Renamed "harcoded" to "static" and "remote" to "dynamic"
from PR review, matches the same naming schema used for signing keys fetching
2023-06-19 17:43:03 +02:00
Giuseppe Guerra f8c5318021 Renamed angularinspector.ProvideInspector to angularinspector.ProvideService 2023-06-19 17:36:48 +02:00
Giuseppe Guerra 7cc5999ceb Renamed detector.go -> angulardetector.go and inspector.go -> angularinspector.go
Forgot to rename those two files to match the package's names
2023-06-19 17:35:19 +02:00
Giuseppe Guerra e15793a89b Chore: Split angualrdetector into angularinspector and angulardetector packages
Moved files around, changed references and fixed tests:
- Split the old angulardetector package into angular/angulardetector and angular/angularinspector
- angulardetector provides the detection structs/interfaces (Detector, DetectorsProvider...)
- angularinspector provides the actual angular detection service used directly in pluginsintegration
- Exported most of the stuff that was private and now put into angulardetector, as it is not required by angularinspector
2023-06-19 17:33:54 +02:00
Giuseppe Guerra 82b190944b Return false, nil if module.js does not exist 2023-06-19 17:07:59 +02:00
Giuseppe Guerra 013d79f78f Use angulardetector http client 2023-06-19 17:06:10 +02:00
Andrej Ocenas 5ca03a82f0 FlameGraph: Add sandwich view (#70268) 2023-06-19 16:34:06 +02:00
Gábor Farkas 271cdb4baa loki: rename experimental feature flag (#70306) 2023-06-19 10:03:51 +00:00
SatVeer Singh 1bfa3a0f1e Chore: Replace go-multierror with errors package (#66432)
* code refactor and type assertions added to tests

* no-lint rule added for specific line
2023-06-19 12:29:45 +03:00
ismail simsek e3ea5422ea InfluxDB: Return default retention policy from backend as first element (#69818)
* Reformatting and restructuring

* Update unit test

* Always send the default retention policy as first element

* Fix typo

* Update test

* Update test once more
2023-06-17 14:20:54 +02:00
Nathan Marrs d7a8892f3a Canvas: Migrate to schema (#70205) 2023-06-17 05:56:23 +03:00
Ryan McKinley da66aefa87 EnityAPI: update summary builder to support library panels (#70280) 2023-06-16 14:44:16 -07:00
Jean-Philippe Quéméner 934ba1aaa1 Alerting: Rewrite range to instant queries if possible (#69976) 2023-06-16 19:55:49 +02:00
Yuri Tseretyan 842f33580e SSE: Add functions that determine NodeType by UID and construct a data source struct from NodeType (#70106)
* add NodeTypeFromDatasourceUID and DataSourceModelFromNodeType()
* deprecate expr.DataSourceModel
* replace usages of IsDataSource to NodeTypeFromDatasourceUID 
* replace usages of DataSourceModel to DataSourceModelFromNodeType()
2023-06-16 13:05:06 -04:00
Ivana HuckovaandMatias Chomicki 82c125d450 Loki: Implement step editor (#69648)
* Loki: Implement step editor

* Update to keep value

* Remove console.log

* Remove white space

* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.tsx

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Import trim

* Update using of step in split queries

* Add tests

* Add tests

* Remove step interpolation

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-06-16 19:08:29 +03:00
66d2214c3b Config: Add configuration option to define custom user-facing general error message for certain error types (#70023)
---------

Co-authored-by: Summer Wollin <summer.wollin@grafana.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2023-06-16 10:46:47 -05:00
Giuseppe Guerra 1c55157841 Update tryUpdateRemoteDetectors docstring 2023-06-16 13:03:23 +02:00
Giuseppe Guerra ec75492390 Fix API path, add more logs 2023-06-16 12:56:27 +02:00
Giuseppe Guerra 3480ff44b2 Merge branch 'main' into giuseppe/angular-deprecation/remote-patterns 2023-06-16 12:15:09 +02:00
Giuseppe Guerra f75a6d63b7 Allow changing grafana.com URL 2023-06-16 12:14:18 +02:00
Ross 5f4d1d4872 CloudWatch: Add missing EventBridge Pipe metrics (#69994) 2023-06-16 12:04:47 +02:00
Giuseppe Guerra 2a648b7ed7 Made detector.detect unexported, updated docstrings 2023-06-16 12:01:41 +02:00
Andres Martinez Gotor 7c1c196031 Plugins: Periodically update public signing key (#70080) 2023-06-16 11:20:30 +02:00
Kousik Mitra 62ee1fa05a Plugins: Wrap original check health error (#69944)
Fixes #69765
2023-06-16 11:18:53 +02:00
Tania 0316350d16 Codegen: Generate any instead of interface{} (#70201)
* Chore: Update thema to latest

* Regenerate
2023-06-16 10:54:56 +02:00
Dimitris Sotirakis 98b6791101 Chore: Prettify some unit tests for pkg/build (#70186)
* Prettify

* Fix test
2023-06-16 09:32:06 +03:00
Yuri Tseretyan f1d47d18a8 Alerting: Sort RefIDs in error message returned by api.validateCondition (#70198)
sort RefIDs in error message
2023-06-15 18:37:30 -03:00
Yuri TseretyanandGeorge Robinson b963defa44 Alerting: update rules POST API to validate query and condition only for rules that changed. (#68667)
* replace condition validation with just structural validation
* validate conditions of only new and updated rules
* add integration tests for rule update\delete API

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-06-15 13:33:42 -04:00
Yuri Tseretyan baffe83da6 Alerting: Improve performance of cache.getOrCreate (#63909)
* move expansion of labels and annotations outside of mutex lock
* propagate struct but not pointer
2023-06-15 09:37:47 -04:00
Giuseppe Guerra 97121bdede Merge branch 'main' into giuseppe/angular-deprecation/remote-patterns 2023-06-15 15:28:56 +02:00
Ezequiel Victorero 3413e1497e PublicDashboards: Add support for recorded queries used in Mixed ds (#70096) 2023-06-15 10:28:34 -03:00
Giuseppe Guerra 3dcb746496 Lint 2023-06-15 15:25:58 +02:00
Giuseppe Guerra ae490b7f99 GCOM tests 2023-06-15 15:25:54 +02:00
Yuri Tseretyan cc72fe17d5 SSE: Refactor DSNode and extract function to convert backend response to mathexp.Results (#70098) 2023-06-15 09:20:08 -04:00
Giuseppe Guerra d172e38350 TestStaticDetectorsProvider, TestSequenceDetectorsProvider 2023-06-15 14:29:46 +02:00
Gareth DawsonandSven Grossmann cda10fae52 Logs: Make logs container scrollable (#69371)
* feat: make logs container scrollable

* fix container height

* add a feature toggle

* fix: scroll behaviour with wrap lines on

* Update public/app/features/logs/components/getLogRowStyles.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* rename feature toggle

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-06-15 12:25:34 +01:00
Giuseppe Guerra 8d75cff11c More tests 2023-06-15 13:12:28 +02:00
Giuseppe Guerra db924642e5 Renamed getter to provider 2023-06-15 13:12:18 +02:00
Giuseppe Guerra 1cb86694ca Add TestContainsBytesDetector and TestRegexDetector 2023-06-15 12:47:15 +02:00
Giuseppe Guerra 6331afb443 Add TestProvideInspector 2023-06-15 12:36:46 +02:00