grafana/pkg/plugins
Will Browne 2c47d246fc
Plugins: Introduce LoadingStrategy for frontend loading logic (#92392)
* do it all

* feat(plugins): move loadingStrategy to ds pluginMeta and add to plugin settings endpoint

* support child plugins and update tests

* use relative path for nested plugins

* feat(plugins): support nested plugins in the plugin loader cache by extracting pluginId from path

* feat(grafana-data): add plugin loading strategy to plugin meta and export

* feat(plugins): pass down loadingStrategy to fe plugin loader

* refactor(plugins): make PluginLoadingStrategy an enum

* feat(plugins): add the loading strategy to the fe plugin loader cache

* feat(plugins): load fe plugin js assets as script tags based on be loadingStrategy

* add more tests

* feat(plugins): add loading strategy to plugin preloader

* feat(plugins): make loadingStrategy a maybe and provide fetch fallback

* test(alerting): update config.apps mocks to include loadingStrategy

* fix format

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-09-09 10:38:35 +01:00
..
auth Schemas: Refactor plugin's metadata (#83696) 2024-03-07 11:09:19 +01:00
backendplugin Plugins: Update missed ConversionHandler checks (#92011) 2024-08-16 16:10:32 +03:00
codegen CI: Make pkg/build its own module, remove unused Grafana modules in go.mo… (#89243) 2024-06-14 19:35:30 +03:00
config Plugins: Make grafana-com API URL usage consistent (#86920) 2024-04-26 16:47:38 +02:00
envvars Plugins: Refactor plugin config into separate env var and request scoped services (#83261) 2024-02-27 12:38:02 +01:00
httpresponsesender Plugins: Refactor call resource API handling (#67234) 2023-04-28 14:02:27 +02:00
instrumentationutils Plugins: Enhanced plugin instrumentation (#90199) 2024-07-09 15:03:46 +02:00
log Chore: Fix plugins manager process data race in tests (#81914) 2024-02-06 10:17:37 -03:00
manager Plugins: Introduce LoadingStrategy for frontend loading logic (#92392) 2024-09-09 10:38:35 +01:00
pfs Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
pluginrequestmeta Plugins: Add statusSource to partial data response error log (#78057) 2023-11-14 16:27:48 +02:00
pluginscdn Plugins: Add support for fetching plugin includes from plugin CDN (#91476) 2024-08-21 09:46:41 +01:00
repo Add debug headers when downloading plugins (#92579) 2024-08-29 11:30:21 +02:00
storage Plugins: Update CLI check if plugin is already installed (#91213) 2024-08-06 09:21:40 +01:00
apiserver_test.go K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
apiserver.go K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
errors.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
ifaces.go Plugins: Add support for fetching plugin includes from plugin CDN (#91476) 2024-08-21 09:46:41 +01:00
localfiles_test.go chore: Updating linter, fixing some new warnings (#88863) 2024-06-06 13:01:27 -04:00
localfiles.go Plugins: Add support for fetching plugin includes from plugin CDN (#91476) 2024-08-21 09:46:41 +01:00
models.go Plugins: Introduce LoadingStrategy for frontend loading logic (#92392) 2024-09-09 10:38:35 +01:00
plugins_test.go RBAC: Default to plugins.app:access for plugin includes (#90969) 2024-07-29 20:56:09 +02:00
plugins.go AdHocFilters: Add support for new isOneOf multi value operator (#91837) 2024-08-30 11:03:44 +01:00
test_utils.go Plugins: Add support for fetching plugin includes from plugin CDN (#91476) 2024-08-21 09:46:41 +01:00