Will Browne
ae06690681
move loading strategy into pkg/plugins
2026-01-13 15:46:34 +00:00
Will Browne
aa9b587cc1
Plugins: Add module hash field to plugin model ( #116119 )
...
* add module hash field to plugin model
* fix tests
* fix lint issues
2026-01-13 14:35:45 +00:00
Will Browne
99cabcb8be
Plugins: Remove pkg/services/org and pkg/services/pluginsintegration/pluginerrs dependencies ( #115820 )
...
* remove deps from pkg/plugins
* fmt
* lint fix
2026-01-05 14:10:44 +00:00
Will Browne
70b1053ad1
Plugins: Remove pkg/infra/fs, pkg/infra/tracing and pkg/infra/process dependencies from pkg/plugins ( #115798 )
...
* remove dependency on packages
* update tests
* trigger
2026-01-05 11:12:31 +00:00
Will Browne
1a0bc39ec3
Plugins: Remove some pkg/infra/* dependencies from pkg/plugins ( #115795 )
...
* tackle some /pkg/infra/* packages
* run make update-workspace
* add owner for slugify dep
2026-01-05 09:42:47 +00:00
Todd Treece
33e53db53a
Plugins: Add tracing to pipeline ( #115448 )
2025-12-17 09:08:17 -05:00
Will Browne
7d179120b6
Plugins: Replace CDN class with FS CDN type ( #113968 )
...
replace cdn class with fs type
2025-11-20 14:03:24 +00:00
Will Browne
f041563df3
Plugins: Prevent passing host environment variables to plugin processes by default ( #113412 )
...
* remove pluginsSkipHostEnvVars toggle
* fix tests
2025-11-13 15:31:57 +00:00
Todd Treece
3bfbbb1961
Plugins: Skip angular check for CDN source ( #113163 )
2025-10-29 11:33:43 -04:00
Will Browne
2223338e34
Plugins: Update plugin fakes package name ( #112503 )
...
update plugin fakes package name
2025-10-16 15:14:05 +01:00
Will Browne
69f788ad55
Plugins: Remove pluginAssetProvider feature toggle ( #112046 )
...
* remove toggle
* fix lint issue
2025-10-10 10:35:22 +01:00
Will Browne
073338ec29
Plugins: Dependencies do not inherit parent URL for preinstall ( #111762 )
...
dependencies dont inehrit parent url for preinstall
2025-09-29 17:57:41 +01:00
Will Browne
2df39fc71a
Plugins: Add metrics for fs + cloud provisioning info ( #111030 )
...
* add new metrics for plugin fs + cloud provisioning
* fix test
* update label
2025-09-15 14:54:16 +01:00
Will Browne
05a6e8503e
Plugins: StaticFS should implement FSRemover ( #110706 )
...
make staticfs implement fs removal interface
2025-09-09 15:33:05 +01:00
Peter Štibraný
7fd9ab9481
Replace check for integration tests. ( #110707 )
...
* Replace check for integration tests.
* Revert changes in pkg/tsdb/mysql packages.
* Fix formatting of few tests.
2025-09-08 15:49:49 +02:00
Hugo Häggmark
bc843913e4
Chore: Removes HideAngularDeprecation configuration ( #110665 )
...
* Chore: cleans up HideAngularDeprecation
* Trigger build
2025-09-08 12:39:01 +02:00
Hugo Häggmark
6fb6cf4f1d
Chore: defaults localizationForPlugins behavior ( #109778 )
...
* Chore: defaults localizationForPlugins behavior
* chore: fixes backend tests
* chore: fix backend tests
* chore: fix some more backend tests
2025-08-18 13:57:28 +02:00
Serge Zaitsev
a95fb3a37c
Chore: Omit integration tests if short test flag is passed ( #108777 )
...
* omit integration tests if short test flag is passed
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/cmd/grafana-cli/commands/datamigrations/to_unified_storage_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* fix the rest
* false positive
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
2025-07-28 13:38:54 +02:00
Will Browne
7f065c94de
Plugins: Remove pluginsCDNSyncLoader feature toggle ( #108389 )
...
* remove pluginsCDNSyncLoader feature toggle
* fix lint issues
* fix other linter issue
2025-07-22 09:33:23 +01:00
Will Browne
f6ed9e6ff0
Plugins: Introduce plugin asset provider ( #108063 )
...
* introduce plugin asset provider
* simply with PR feedback
* fix linter
2025-07-17 16:20:35 +01:00
Will Browne
54d6140e6d
Plugins: Stub logger method for backend plugin test mock ( #108211 )
...
stub logger method for backend plugin test mock
2025-07-17 10:18:31 +01:00
Will Browne
1e0fd825eb
Plugins: Simplify assetpath logic ( #107876 )
...
* simplify assetpath logic
* fix tests
2025-07-09 15:48:52 +01:00
Serge Zaitsev
f66a693438
Chore: Rename integration tests to follow the common convention ( #105987 )
...
* automatically rename integration tests to follow the common convention
* name tests differently
* alter column type to bigint
* update another column to bigint
* add another alter
* fix subquery for mysql
2025-06-29 16:56:24 +02:00
Will Browne
3d37f969e7
Plugins: Move discovery logic to plugin sources ( #106911 )
...
* move finder behaviour to source
* tidy
* undo go.mod changes
* fix comment
* tidy unsafe local source
2025-06-19 10:28:23 +01:00
Andres Martinez Gotor
76d4953879
Advisor: Include deprecated and filter by plugin slug ( #105383 )
2025-05-15 14:53:49 +02:00
Andres Martinez Gotor
0d4884cb3b
Advisor: Avoid one GCOM request per plugin ( #105180 )
2025-05-12 09:45:56 +02:00
Andres Martinez Gotor
8ef8185379
Advisor: Ensure User-Agent header is set for checks ( #105122 )
2025-05-09 13:57:17 +02:00
Will Browne
a1b792b1f5
Plugins: Remove plugin dependency version ( #103728 )
...
remove plugin dependency version
2025-04-10 15:02:05 +01:00
Mariell Hoversholm
757be6365a
CI: Bump golangci-lint to 2.0.2 ( #103572 )
2025-04-10 14:42:23 +02:00
Jack Westbrook
f96e4e9ad2
Frontend: Remove Angular ( #99760 )
...
* chore(angularsupport): delete feature toggle to disable angular
* feat(angular-support): remove config.angularSupportEnabled
* chore(jest): remove angular from setup file
* chore(angular): delete angular deprecation ui components
* refactor(angular): move migration featureflags into migration notice
* chore(dashboard): remove angular deprecation notices
* chore(annotations): remove angular editor loader
* feat(appwrapper): no more angular app loading
* feat(pluginscatalog): clean up angular plugin warnings and logic
* chore(angular): delete angular app and associated files
* feat(plugins): delete old angular graph plugin
* feat(plugins): delete old angular table panel
* feat(frontend): remove unused appEvent type
* feat(dashboards): clean up angular from panel options and menu
* feat(plugins): remove graph and table-old from built in plugins and delete sdk
* feat(frontend): remove angular related imports in routes and explore graph
* feat(theme): remove angular panel styles from global styles
* chore(i18n): run make i18n-extract
* test(api_plugins_test): refresh snapshot due to deleting old graph and table plugins
* chore(angulardeprecation): delete angular migration notice components and usage
* test(frontend): clean up tests that assert rendering angular deprecation notices
* chore(backend): remove autoMigrateOldPanels feature flag
* chore(config): remove angularSupportEnabled from config preventing loading angular plugins
* chore(graphpanel): remove autoMigrateGraphPanel from feature toggles
* chore(tablepanel): delete autoMigrateTablePanel feature flag
* chore(piechart): delete autoMigratePiechartPanel feature flag
* chore(worldmappanel): remove autoMigrateWorldmapPanel feature toggle
* chore(statpanel): remove autoMigrateStatPanel feature flag
* feat(dashboards): remove automigrate feature flags and always auto migrate angular panels
* test(pluginsintegration): fix failing loader test
* test(frontend): wip: fix failures and skip erroring migration tests
* chore(codeowners): remove deleted angular related files and directories
* test(graphite): remove angular mock from test file
* test(dashboards): skip failing exporter test, remove angularSupportEnabled flags
* test(dashbaord): skip another failing panel menu test
* Tests: fixes pkg/services/pluginsintegration/loader/loader_test.go (#100505 )
* Tests: fixes pkg/services/pluginsintegration/plugins_integration_test.go
* Trigger Build
* chore(dashboards): remove angularComponent from getPanelMenu, update test
* feat(dashboards): remove all usage of AngularComponent and getAngularLoader
* chore(betterer): refresh results file
* feat(plugins): remove PluginAngularBadge component and usage
* feat(datasource_srv): remove usage of getLegacyAngularInjector
* feat(queryeditor): delete AngularQueryComponentScope type
* Chore: removes Angular from plugin_loader
* Chore: remove angular from getPlugin
* Chore: fix i18n
* Trigger Build
* Chore: remove more Angular from importPanelPlugin
* Chore: remove search options warning
* Chore: remove and deprecate Angular related
* chore(angular): remove angular dependencies from core and runtime
* chore(runtime): delete angular injector
* chore(data): delete angular scope from event bus
* chore(plugin-catalog): remove code pushing app plugins angular config page
* chore(yarn): refresh lock file
* chore(frontend): remove ng-loader from webpack configs, remove systemjs cjs plugin
* chore(navigation): remove tether-drop cleanup from GrafanaRouter, delete dependency
* chore(runtime): delete AngularLoader
* chore(betterer): refresh results file
* chore(betterer): fix out of sync results file
* feat(query): fix type and import errors in QueryEditorRow
* test(dashboards): delete skipped angular related tests
* Tests: add back tests and fix betterer
* Tests: fix broken test
* Trigger build
* chore(i18n): remove angular deprecation related strings
* test: clean up connections and plugins catalog tests
* chore(betterer): update results file
---------
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com >
2025-04-04 11:31:35 +02:00
Ivana Huckova
54a51bd3e3
Data source plugin: Improve error message when plugin has connection issues ( #102625 )
...
* Improve data source error message when stackID
* Update comment
* Revert "Update comment"
This reverts commit 48922bc552 .
* Revert "Improve data source error message when stackID"
This reverts commit 4bf0a2f7b7 .
* Make public messagic configurable based on context
* Update, simplify
* Update
* Update getting stack
* Update pkg/plugins/errors.go
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
* Refactor test to test for when context has stack value
* Remove duplicated test
* Fix error checking logic
---------
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2025-03-31 12:00:40 +02:00
Hugo Häggmark
18ae5d7f0c
i18n: wires up translations for plugins ( #102853 )
...
* i18n: consolidate i18n types & runtime services
* Chore: updates after PR feedback
* Chore: updates after feedback
* Chore: updates after feedback
* Chore: adds feature toggle
* Chore: adds locale to backend
* Chore: adds locales to i18n instance
* Chore: fix missing path in CODEOWNERS
* Chore: fix go lint issues
* Chore: fix missing path in CODEOWNERS
* Chore: updates after PR feedback
* Trigger build
* Chore: updates after PR feedback
* Chore: use resolved language for lookup
* Chore: updates after PR feedback
* Update pkg/plugins/plugins.go
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
* Chore: updates after PR feedback
* Chore: updates after PR feedback
---------
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2025-03-31 06:38:38 +02:00
Ivana Huckova
307974f20d
Data sources: Improve error messages for grpc errors ( #102372 )
...
* Data sources: Improve error messages for grpc errors
* Improve code comments
* Fix lint
* Update connection issue message
* Update name
* Update comment
* Update, rename and add test
* Update, remove POC change
* Fix lint
2025-03-20 18:44:47 +01:00
Will Browne
5b67ae1876
Plugins: Remove support for secrets manager plugins ( #101467 )
...
* remove secrets manager code
* remove unused struct
* add test toggles back
* rollback golden file changes
* add missing TestMain
* update betterer
2025-03-20 10:00:59 +00:00
Yulia Shanyrova
cbdf2eecab
Plugins: Update some links in plugin jsons due of mistakes in previous PR ( #102214 )
...
* update some links in plugin jsons update backend tests
* fix the test
* fix the test
* Update public/app/plugins/datasource/azuremonitor/plugin.json
Co-authored-by: David Harris <david.harris@grafana.com >
* more docs links added, fix tests
---------
Co-authored-by: David Harris <david.harris@grafana.com >
2025-03-20 09:25:04 +01:00
Yulia Shanyrova
3f2eb087ea
Plugins: Update all core plugins with raise issue and docs links ( #101929 )
...
* update all core plugins with raise issue and docs links
* fix plugin loader test, run prettier
* fix test
* update test results for api plugin tests
2025-03-12 14:15:46 +01:00
Ivana Huckova
9eda0f44ac
Update ErrRequestErrorBase from [plugin.downstreamError] to [plugin.requestFailureError] ( #100965 )
...
* Update ErrRequestErrorBase to make it more clear for developers
* Trigger build
* requestError -> requestFailureError
* Fix test
* Update pkg/plugins/backendplugin/grpcplugin/client_v2.go
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
---------
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2025-02-20 10:23:53 +01:00
Giuseppe Guerra
011726c80f
Plugins: Update DefaultSignature function signature in PluginSource interface ( #100519 )
...
* Plugins CDN: Add support for signature type and signature org
* Fall-back to valid signature if the config is not supported
* Move CDN signature code to DefaultSignature
* fix tests
2025-02-19 12:19:45 +01:00
Dominik Süß
8a8e47fcea
PluginExtensions: Added support for sharing functions ( #98888 )
...
* feat: add generic plugin extension functions
* updated betterer.
* Fixed type issues after sync with main.
* Remved extensions from datasource and panel.
* Added validation for extension function registry.
* Added tests and validation logic for function extensions registry.
* removed prop already existing on base.
* fixed lint error.
---------
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com >
2025-02-13 10:18:55 +01:00
Giuseppe Guerra
ccb9cab131
Plugins: Add synchronous CDN plugin loader ( #99096 )
...
* WIP
* Run plugin validations and validation steps sequentially if feature is off
* Remove dependency between sources.Service and pluginscdn.Service
* lint
* Parallelize validation only if class is CDN
* re-generate feature toggles
* remove waitgroup usage
* PR review: Add loader concurrency limit setting
* re-generate feature toggles
* pr review feedback
* fix const name
* Skip module.js validation for cdn plugins
* do not run validation steps in parallel
* lint
* reduce diff
* re-generate feature toggles
* lint
* pr review feedback
* remove leftover config.PluginManagementCfg from sources.Service
2025-02-07 11:07:08 +01:00
Ivana Huckova
6e7e389ee2
Report grpc canceled timeouts as cancelled status and not error ( #99981 )
2025-02-04 13:31:03 +01:00
Andres Martinez Gotor
003f0e5918
Plugins: Expose function to retrieve gcom info ( #99372 )
2025-01-22 16:41:34 +02:00
Will Browne
70fb7b9545
Plugins: Remove bundled plugins feature ( #96490 )
...
* remove bundled plugins
* Add echo to command
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
* remove folder entirely
* remove folder from CODEOWNERS
---------
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2025-01-14 12:04:01 +00:00
Selene
9e5fd78b52
Codegen: Remove pfs codegen dependency from Grafana codebase ( #98840 )
...
* Remove pfs dependency for IAM struct to avoid to import codegen code in main go.mod
* Remove pointer
* Remove dependency cycle
* Update tests
2025-01-10 22:43:40 +02:00
Selene
0501ff9079
Codegen: Isolate schema generation code ( #98742 )
...
* Create go.mod files for plugins and core kinds
* Update go work and main go.mod dependencies
* Update pfs import
* Missing update of pfs dependency
* Remove fixed cuelang dependency
* Update codeowners
* Update workspace
* Update Dockerfile
* Missing go.mod codeowner
* Use intermediate kin-openapi dependency to make all workspaces to work
2025-01-10 13:33:51 +01:00
Andres Martinez Gotor
e0935246a3
Preinstall: Allow to set a download URL ( #96535 )
2024-11-29 16:02:33 +01:00
Will Browne
b87c76ad21
Plugins: Add metric to track plugin backend target ( #95976 )
...
* add metric to track plugin backend target
* tidy
* fix test
2024-11-07 12:01:46 +00:00
Will Browne
f97f489c2c
Plugins: Skip install errors if dependency plugin already exists ( #94710 )
...
* skip install errors if dependency plugin already exists
* add test
2024-10-15 11:35:45 +01:00
Syerikjan Kh
f8748f0724
ref: pass tracer to plugin factory func ( #93701 )
...
* ref: pass tracer to plugin factory func
* fix: add tracer to coreplugin
* test: fix test, generate wire
* test: ignore trace field in loader_test
* ref: pass tracer as dependency, don't store in plugin
* ref: wrap tracer with tracer provider to satisfy WithTracerProvider
* ref: use otel trace.Tracer type for tracer
2024-10-10 20:30:56 -04:00
Giuseppe Guerra
0db65d229e
Plugins: Add Subresource Integrity checks ( #93024 )
...
* Plugins: Pass hashes for SRI to frontend
* Add SRI hashes to frontendsettings DTOs
* Add docstring
* TestSriHashes
* Fix typo
* Changed SriHashes to ModuleHash
* update loader_test compareOpts
* update ModuleHash error message
* Add TestModuleHash/no_module.js
* Add omitEmpty to moduleHash
* Add ModuleHash to api/plugins/${pluginId}/settings
* moved ModuleHash field
* feat(plugins): add moduleHash to bootData and plugin types
* feat(plugins): if moduleHash is available apply it to systemjs importmap
* Calculate ModuleHash for CDN provisioned plugins
* Add ModuleHash tests for TestCalculate
* adjust test case name
* removed .envrc
* Fix signature verification failing for internal plugins
* fix tests
* Add pluginsFilesystemSriChecks feature togglemk
* renamed FilesystemSriChecksEnabled
* refactor(plugin_loader): prefer extending type declaration over ts-error
* added a couple more tests
* Removed unused features
* Removed unused argument from signature.DefaultCalculator call
* Removed unused argument from bootstrap.DefaultConstructFunc
* Moved ModuleHash to pluginassets service
* update docstring
* lint
* Removed cdn dependency from manifest.Signature
* add tests
* fix extra parameters in tests
* "fix" tests
* removed outdated test
* removed unused cdn dependency in signature.DefaultCalculator
* reduce diff
* Cache returned values
* Add support for deeply nested plugins (more than 1 hierarchy level)
* simplify cache usage
* refactor TestService_ModuleHash_Cache
* removed unused testdata
* re-generate feature toggles
* use version for module hash cache
* Renamed feature toggle to pluginsSriChecks and use it for both cdn and filesystem
* Removed app/types/system-integrity.d.ts
* re-generate feature toggles
* re-generate feature toggles
* feat(plugins): put systemjs integrity hash behind feature flag
---------
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com >
2024-10-04 14:55:09 +02:00