kibana/examples
Quynh Nguyen (Quinn) a5d0321f25
[ES|QL] Add support for client-side INLINESTATS validation (#189827)
## Summary

Addresses https://github.com/elastic/kibana/issues/189356. This PR adds
support for client-side INLINESTATS validation in the text based editor.
Changes include:
- Add INLINESTATS context in AST package
- Update function definitions to include INLINESTATS
- Hide INLINESTATS from list of suggestions (which we will revert after
command is merged in tech preview)

Before:

![image](https://github.com/user-attachments/assets/18d903ea-5fc9-420f-9c50-d83eb1e40f6c)

After: 


https://github.com/user-attachments/assets/4723735d-ab40-49c3-a1d9-51482c6fb441



### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-08-08 10:51:05 -05:00
..
bfetch_explorer [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
content_management_examples [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
controls_example [control group] apply selections on reset (#189830) 2024-08-08 07:50:57 -06:00
data_view_field_editor_example Upgrade EUI to v94.1.0 (major EuiTable refactors) (#180514) 2024-04-19 00:05:48 +01:00
developer_examples [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
discover_customization_examples [EuiProvider] Fix Data-Discover code (#183874) 2024-05-22 09:57:26 -07:00
embeddable_examples Minimize shared-common everywhere (#188606) 2024-07-29 12:47:46 -06:00
error_boundary [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
eso_model_version_example Replace Encrypted Saved Object AAD exclude list with include list (#167705) 2024-03-08 11:15:02 -05:00
esql_ast_inspector [ES|QL] Add support for client-side INLINESTATS validation (#189827) 2024-08-08 10:51:05 -05:00
esql_validation_example [ES|QL] Stronger typing for ESQL field interface (#189941) 2024-08-08 08:11:43 -05:00
expressions_explorer [EuiProvider] Fix Gis-Presentation-Visualization code (#183875) 2024-05-22 13:28:36 -07:00
feature_control_examples Improve features plugin's contract type names (#187944) 2024-07-17 15:33:32 +01:00
field_formats_example Upgrade EUI to v94.1.0 (major EuiTable refactors) (#180514) 2024-04-19 00:05:48 +01:00
files_example Upgrade EUI to v94.1.0 (major EuiTable refactors) (#180514) 2024-04-19 00:05:48 +01:00
guided_onboarding_example Update codeowners file (#183552) 2024-05-22 08:19:50 -04:00
hello_world [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
locator_examples [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
locator_explorer [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
partial_results_example Upgrade EUI to v94.1.0 (major EuiTable refactors) (#180514) 2024-04-19 00:05:48 +01:00
portable_dashboards_example [Embeddables Rebuild] Fix runtime state types. (#186194) 2024-06-19 10:05:27 -04:00
preboot_example async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
resizable_layout_examples [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
response_stream [Move @kbn/config-schema to server] examples/response_stream (#189520) 2024-07-30 20:57:37 +02:00
routing_example [EuiProvider] Fix Kibana-Core code (#183873) 2024-05-23 13:19:40 -07:00
screenshot_mode_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
search_examples [EuiProvider] Fix Data-Discover code (#183874) 2024-05-22 09:57:26 -07:00
share_examples Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
state_containers_examples [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
ui_action_examples [SharedUX] Remove usage of deprecated React rendering utilities (#180516) 2024-04-17 07:52:41 -07:00
ui_actions_explorer [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
unified_doc_viewer [UnifiedDocViewer] Move Discover doc viewer into plugin/package (#162847) 2023-08-31 11:46:59 -07:00
unified_field_list_examples [kbn-dnd-package] Divide draggable and droppable (#177282) 2024-03-21 14:30:14 +01:00
user_profile_examples Improve features plugin's contract type names (#187944) 2024-07-17 15:33:32 +01:00
v8_profiler_examples async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07: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
----