grafana/pkg/plugins
Levente Balogh 6096f46774
Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429)
* feat: add extensions to the backend plugin model

* feat: update the frontend plugin types

* feat(pluginContext): return a `null` if there is no context found

This will be necessary to understand if a certain hook is running inside a plugin context or not.

* feat: add utility functions for checking extension configs

* tests: fix failing tests due to the type updates

* feat(AddedComponentsRegistry): validate plugin meta-info

* feat(AddedLinksRegistry): validate  meta-info

* feat(ExposedComponentsRegistry): validate meta-info

* feat(usePluginComponent): add meta-info validation

* feat(usePluginComponents): add meta-info validation

* feat(usePluginLinks): add meta-info validation

* fix: only validate meta-info in registries if dev mode is enabled

* tests: add unit tests for the restrictions functionality

* tests: fix Go tests

* fix(tests): revert accidental changes

* fix: run goimports

* fix: api tests

* add nested app so that meta data can bested e2e tested

* refactor(types): extract the ExtensionInfo into a separate type

* refactor(extensions/utils): use Array.prototype.some() instead of .find()

* refactor(usePluginLinks): update warning message

* feat(usePluginExtensions()): validate plugin meta-info

* Wip

* fix(e2e): E2E tests for extensions

* fix(extensions): allow multiple "/" slashes in the extension point id

* fix(extensions/validators): stop validating the plugin id pattern

---------

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2024-10-04 08:41:26 +02:00
..
auth Schemas: Refactor plugin's metadata (#83696) 2024-03-07 11:09:19 +01:00
backendplugin Plugins: Add state logs for plugin client retrieval (#93630) 2024-09-24 15:55:02 +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 Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429) 2024-10-04 08:41:26 +02: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: Use handler middleware from the SDK (#93445) 2024-09-30 16:33:15 +02: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 Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429) 2024-10-04 08:41:26 +02:00
plugins_test.go Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429) 2024-10-04 08:41:26 +02:00
plugins.go Plugin Extensions: Require meta-data to be defined in plugin.json during development mode (#93429) 2024-10-04 08:41:26 +02:00
test_utils.go Plugins: Add support for fetching plugin includes from plugin CDN (#91476) 2024-08-21 09:46:41 +01:00