kibana/test/examples
Nathan Reese 4b2728806a
Update incomplete data messaging (#169578)
Closes https://github.com/elastic/kibana/issues/167906

PR breaks monolith component `<SearchResponseWarnings/>` into 3 separate
components: `<SearchResponseWarningsBadge/>`,
`<SearchResponseWarningsCallout/>`, and
`<SearchResponseWarningsEmptyPrompt/>`. These components are designed to
display a single messages when provided warnings from multiple requests
and display better messaging around partial results. PR also removes
`message` from `SearchResponseWarning` type.

Collaborated with @gchaps on copy.

### Test setup
1. install sample web logs data set
2. install sample flights data set
3. Create data view.
    1. Set **Index pattern** to `kibana_sample_data*`
    2. Set **Time field** to `timestamp`
4. Open discover
5. Select **kibana_sample_data*** data view
6. set time range to last 24 hours
7. Add filter
    ```
    {
      "error_query": {
        "indices": [
          {
            "error_type": "exception",
            "message": "shard failure message 123",
            "name": "kibana_sample_data_logs",
            "shard_ids": [
              0
            ]
          }
        ]
      }
    }
    ```
8) save search as **kibana_sample_data***

#### Search response warnings callout
1. Open saved search created in test setup
<img width="500" alt="Screenshot 2023-10-24 at 8 49 19 AM"
src="867cff58-c201-4a6b-b049-7136b43d053f">
2. Click "expand" icon on left of first row in documents table
3. Click "Surrounding documents"
4. Re-enable "kibana_sample_data_logs failure" filter
<img width="500" alt="Screenshot 2023-10-24 at 8 51 22 AM"
src="a50cf033-64de-4909-a47d-6ee07bb915ea">

#### Search response warnings empty prompt
1. Open saved search created in test setup
2. Add filter `DistanceKilometers is -1`
<img width="500" alt="Screenshot 2023-10-24 at 8 44 13 AM"
src="e3ae0fac-8bda-4cad-b079-8ace4e01b786">

#### Search response warnings badge
1. create new dashboard
2. add saved search created during test setup
<img width="500" alt="Screenshot 2023-10-26 at 9 15 21 AM"
src="0066e3e2-953b-4631-a7aa-f389f7e6dbfc">


#### Search response warnings toast
1. create new table aggregation visualization
2. Use saved search created during test setup as source
<img width="500" alt="Screenshot 2023-10-24 at 2 59 41 PM"
src="58aab97e-71d9-49d9-bd67-73484ec54751">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-27 13:20:00 -06:00
..
bfetch_explorer [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
content_management Make SavedObjectFinder backward compatible (#162904) 2023-08-08 13:10:29 +02:00
data_view_field_editor_example [Data views] Add pre-configuration options to runtime field editor fly-out (#136769) 2022-07-22 10:30:01 -07:00
discover_customization_examples [Logs+] Add Filter Control Customization Point (#162013) 2023-08-02 10:35:27 +01:00
embeddables Clean up saved object based embeddable examples (#162987) 2023-08-03 03:14:36 -07:00
expressions_explorer [Expressions] Unskip test (#157962) 2023-05-17 14:51:30 +01:00
field_formats [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
hello_world [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
partial_results [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
response_stream [ML] Explain log rate spikes: Move API stream demos to Kibana examples. (#132590) 2022-05-24 16:59:31 +02:00
routing [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
search Update incomplete data messaging (#169578) 2023-10-27 13:20:00 -06:00
state_sync [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
ui_actions [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
unified_field_list_examples [Discover] Unskip field popover flaky tests (#165641) 2023-09-07 00:02:12 -07:00
config.js [Discover] Implement Discover customization framework (#158603) 2023-06-14 15:09:13 -03:00
README.md Add top level examples folder and command to run, --run-examples. (#52027) 2019-12-10 18:02:03 -05:00

Example plugin functional tests

This folder contains functional tests for the example plugins.

Run the test

To run these tests during development you can use the following commands:

# Start the test server (can continue running)
node scripts/functional_tests_server.js --config test/examples/config.js
# Start a test run
node scripts/functional_test_runner.js --config test/examples/config.js

Run Kibana with a test plugin

In case you want to start Kibana with the example plugins, you can just run:

yarn start --run-examples