kibana/examples
Nathan Reese d3b8955f0b
[8.x] [uiActions] make trigger action registry async (#205512) (#206480)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[uiActions] make trigger action registry async
(#205512)](https://github.com/elastic/kibana/pull/205512)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-01-13T16:57:34Z","message":"[uiActions]
make trigger action registry async (#205512)\n\nCloses
https://github.com/elastic/kibana/issues/191642, part
of\r\nhttps://github.com/elastic/kibana/pull/205512\r\n\r\nPR makes the
following changes to uiActions API.\r\n* Deprecates `registerAction` and
`addTriggerAction` and replaces them\r\nwith `registerActionAsync` and
`addTriggerActionAsync`\r\n* Makes all registry consumption methods
async, such as `getAction`,\r\n`getTriggerActions` and
`getFrequentlyChangingActionsForTrigger`\r\n\r\nPR updates
presentation_panel plugin to use `registerActionAsync`. With\r\nactions
behind async import, page load bundle size has been reduced
by\r\n21.1KB.\r\n\r\n<img width=\"500\" alt=\"Screenshot 2025-01-08 at 2
14
23 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/34a2cae9-dc5e-429b-bbdb-ffd9dfe1cce3\"\r\n/>\r\n\r\nAlso,
async exports are [contained in a single
file\r\n`panel_module`](https://github.com/elastic/kibana/issues/206117).
This\r\nresults in dashboard only loading one
`presentationPanel.chunk`.\r\n\r\n<img width=\"500\" alt=\"Screenshot
2025-01-08 at 2 15
02 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/e083b852-b50d-4fa7-8ebd-e2f56f85e998\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1bd8c97982146a4643d6eca1e21b525a5c8d456f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","v9.0.0","backport:version","v8.18.0"],"number":205512,"url":"https://github.com/elastic/kibana/pull/205512","mergeCommit":{"message":"[uiActions]
make trigger action registry async (#205512)\n\nCloses
https://github.com/elastic/kibana/issues/191642, part
of\r\nhttps://github.com/elastic/kibana/pull/205512\r\n\r\nPR makes the
following changes to uiActions API.\r\n* Deprecates `registerAction` and
`addTriggerAction` and replaces them\r\nwith `registerActionAsync` and
`addTriggerActionAsync`\r\n* Makes all registry consumption methods
async, such as `getAction`,\r\n`getTriggerActions` and
`getFrequentlyChangingActionsForTrigger`\r\n\r\nPR updates
presentation_panel plugin to use `registerActionAsync`. With\r\nactions
behind async import, page load bundle size has been reduced
by\r\n21.1KB.\r\n\r\n<img width=\"500\" alt=\"Screenshot 2025-01-08 at 2
14
23 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/34a2cae9-dc5e-429b-bbdb-ffd9dfe1cce3\"\r\n/>\r\n\r\nAlso,
async exports are [contained in a single
file\r\n`panel_module`](https://github.com/elastic/kibana/issues/206117).
This\r\nresults in dashboard only loading one
`presentationPanel.chunk`.\r\n\r\n<img width=\"500\" alt=\"Screenshot
2025-01-08 at 2 15
02 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/e083b852-b50d-4fa7-8ebd-e2f56f85e998\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1bd8c97982146a4643d6eca1e21b525a5c8d456f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205512","number":205512,"mergeCommit":{"message":"[uiActions]
make trigger action registry async (#205512)\n\nCloses
https://github.com/elastic/kibana/issues/191642, part
of\r\nhttps://github.com/elastic/kibana/pull/205512\r\n\r\nPR makes the
following changes to uiActions API.\r\n* Deprecates `registerAction` and
`addTriggerAction` and replaces them\r\nwith `registerActionAsync` and
`addTriggerActionAsync`\r\n* Makes all registry consumption methods
async, such as `getAction`,\r\n`getTriggerActions` and
`getFrequentlyChangingActionsForTrigger`\r\n\r\nPR updates
presentation_panel plugin to use `registerActionAsync`. With\r\nactions
behind async import, page load bundle size has been reduced
by\r\n21.1KB.\r\n\r\n<img width=\"500\" alt=\"Screenshot 2025-01-08 at 2
14
23 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/34a2cae9-dc5e-429b-bbdb-ffd9dfe1cce3\"\r\n/>\r\n\r\nAlso,
async exports are [contained in a single
file\r\n`panel_module`](https://github.com/elastic/kibana/issues/206117).
This\r\nresults in dashboard only loading one
`presentationPanel.chunk`.\r\n\r\n<img width=\"500\" alt=\"Screenshot
2025-01-08 at 2 15
02 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/e083b852-b50d-4fa7-8ebd-e2f56f85e998\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"1bd8c97982146a4643d6eca1e21b525a5c8d456f"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2025-01-13 18:53:38 +00:00
..
bfetch_explorer Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
content_management_examples [8.x] [Discover] Rename Saved Search to Discover Session (#202217) (#204818) 2024-12-19 21:38:57 +11:00
controls_example [8.x] [Embeddables Rebuild] Make Serialize Function Synchronous (#203662) (#204470) 2024-12-17 12:33:00 -07:00
data_view_field_editor_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
developer_examples [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
discover_customization_examples [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
embeddable_examples [8.x] [uiActions] make trigger action registry async (#205512) (#206480) 2025-01-13 18:53:38 +00:00
error_boundary [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
eso_model_version_example [8.x] More strict plugin type definitions (#205232) (#205778) 2025-01-07 17:32:59 +00:00
esql_ast_inspector [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
esql_validation_example [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-esql (#202722) (#203390) 2024-12-09 10:20:46 -06:00
expressions_explorer [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
feature_control_examples [8.x] Added scope field to features config. (#191634) (#193389) 2024-09-19 10:42:43 -05:00
feature_flags_example [8.x] [Feature Flags Example Plugin] Change ctx provider (#201097) (#201356) 2024-11-22 14:57:17 +01:00
field_formats_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
files_example [8.x] [Authz] Migrate outstanding SharedUX routes with access tags (#206260) (#206435) 2025-01-13 15:32:00 +00:00
grid_example [8.x] SKA: Categorise remaining packages (#205875) (#205973) 2025-01-08 23:32:22 +00:00
guided_onboarding_example [8.x] Sustainable Kibana Architecture: Move plugins owned by @elastic/appex-sharedux (#204959) (#205508) 2025-01-05 19:48:48 +00:00
hello_world Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
locator_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
locator_explorer Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
partial_results_example [8.x] Upgrade EUI to v98.2.1-borealis.1 (#204783) 2025-01-08 09:59:50 +00:00
portable_dashboards_example [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
preboot_example Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
resizable_layout_examples [8.x] Preparation for High Contrast Mode, Analytics Experience domains (#202608) (#204120) 2024-12-12 15:08:55 -06:00
response_stream [8.x] [ML] AIOps: Log Rate Analysis embeddable (#197943) (#198963) 2024-11-05 10:36:04 -06:00
routing_example [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
screenshot_mode_example Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
search_examples [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-visualizations (#202754) (#205974) 2025-01-13 10:53:37 +00:00
share_examples [8.x] [Reporting] fix dashboard &quot;Copy Post URL&quot; action (#192530) (#195334) 2024-10-08 03:44:43 +02:00
state_containers_examples [8.x] Sustainable Kibana Architecture: Move plugins owned by @elastic/appex-sharedux (#204959) (#205508) 2025-01-05 19:48:48 +00:00
ui_action_examples [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
ui_actions_explorer [8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) (#203147) 2024-12-06 10:02:27 +01:00
unified_doc_viewer [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-data-discovery (#205267) 2024-12-30 13:03:12 -06:00
unified_field_list_examples [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-data-discovery (#205267) 2024-12-30 13:03:12 -06:00
user_profile_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
v8_profiler_examples Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.asciidoc Adds run without basepath configured to examples readme (#173086) 2023-12-12 11:22:02 -07:00

[[example-plugins]]
== Example plugins

This folder contains example plugins.  To run the plugins in this folder, use the `--run-examples` flag (without a basepath), via

[source,bash]
----
yarn start --run-examples
----