grafana/docs/sources/developers/plugins
Marcus Andersson 1cfd3f81fb
Plugins: Support for link extensions (#61663)
* added extensions to plugin.json and exposing it via frontend settings.

* added extensions to the plugin.json schema.

* changing the extensions in frontend settings to a map instead of an array.

* wip

* feat(pluginregistry): begin wiring up registry

* feat(pluginextensions): prevent duplicate links and clean up

* added test case for link extensions.

* added tests and implemented the getPluginLink function.

* wip

* feat(pluginextensions): expose plugin extension registry

* fix(pluginextensions): appease the typescript gods post rename

* renamed file and will throw error if trying to call setExtensionsRegistry if trying to call it twice.

* added reafactorings.

* fixed failing test.

* minor refactorings to make sure we only include extensions if the app is enabled.

* fixed some nits.

* Update public/app/features/plugins/extensions/registry.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packages/grafana-runtime/src/services/pluginExtensions/registry.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packages/grafana-runtime/src/services/pluginExtensions/registry.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update public/app/features/plugins/extensions/registry.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Moved types for extensions from data to runtime.

* added a small example on how you could consume link extensions.

* renamed after feedback from levi.

* updated the plugindef.cue.

* using the generated plugin def.

* added tests for apps and extensions.

* fixed linting issues.

* wip

* wip

* wip

* wip

* test(extensions): fix up failing tests

* feat(extensions): freeze registry extension arrays, include type in registry items

* added restrictions in the pugindef cue schema.

* wip

* added required fields.

* added key to uniquely identify each item.

* test(pluginextensions): align tests with implementation

* chore(schema): refresh reference.md

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-02-07 17:20:05 +01:00
..
backend Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
legacy Docs: Removing outdated plugin_dev doc (#60849) 2023-01-02 15:20:13 +01:00
_index.md Docs: Fix 404 links in build a plugin page (#63006) 2023-02-07 12:01:44 +01:00
add-anonymous-usage-reporting.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
add-authentication-for-data-source-plugins.md Docs: fix typo (#63032) 2023-02-07 15:51:18 +01:00
add-query-editor-help.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
add-support-for-annotations.md Replace ambiguous relrefs with partial URIs to prevent 404s (#62468) 2023-01-30 12:48:12 +00:00
add-support-for-explore-queries.md Replace ambiguous relrefs with partial URIs to prevent 404s (#62468) 2023-01-30 12:48:12 +00:00
add-support-for-variables.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
build-a-logs-data-source-plugin.md Replace ambiguous relrefs with partial URIs to prevent 404s (#62468) 2023-01-30 12:48:12 +00:00
build-a-streaming-data-source-plugin.md Replace ambiguous relrefs with partial URIs to prevent 404s (#62468) 2023-01-30 12:48:12 +00:00
custom-panel-option-editors.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
data-frames.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
development-with-local-grafana.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
error-handling.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
metadata.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
metadata.md.tpl Docs: Replace next with latest in aliases (#33054) 2021-04-15 23:08:58 +02:00
migration-guide.md Plugins: Update migration guide for 9.4/forwarded headers (#62505) 2023-01-31 10:33:30 +01:00
plugin-spellcheck.md Add plugin spellcheck docs (#60512) 2022-12-19 15:59:34 +01:00
plugin.schema.json Plugins: Support for link extensions (#61663) 2023-02-07 17:20:05 +01:00
publish-a-plugin.md Docs: Update publish a plugin FAQ to cover more common questions (#62001) 2023-01-25 08:19:32 +00:00
publishing-and-signing-criteria.md Linking criteria and adding file and env variables access (#61830) 2023-01-24 07:37:56 +00:00
sign-a-plugin.md Replace ambiguous relrefs with partial URIs to prevent 404s (#62468) 2023-01-30 12:48:12 +00:00
working-with-data-frames.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00