* Add link to Maps docs in Kibana getting started with sample data
* Update docs/getting-started/add-sample-data.asciidoc
Co-Authored-By: nreese <reese.nathan@gmail.com>
* [Maps] getting started documentation
* [DOCS] Edits for Maps Getting Started
* [DOCS] Incorporates review comments
* [DOCS] Rewrite section on sample data
* [DOCS] Adds link to add sample data page
Backports the following commits to 6.7:
- [Infra UI] Adapt settings ui to saved object version type change (#30082) (#29622)
Caused by backport of #29906 to `6.x`.
* [dev/run] typescriptify the dev/run helper (#32705)
Simple typescript conversion of the `src/dev/run` helpers.
* [ts] add script to verify that all ts is in a project (#32727)
Based on #32705
We currently have TypeScript code that was backported to 7.0, which was backported without issue because it falls outside of any TypeScript projects in 7.0. This means that the pre-commit hooks break on changes to these files, and that they are not getting type checked by the type_check script. To fix this we need to verify that every typescript file in the repository is covered by a tsconfig.json file as part of CI.
* select all ts files from tsconfig.json file
* [intepreter][Canvas] Dedupe server functions in batched requests (#32712)
* [intepreter][Canvas] Dedupe server functions in batched requests
* Add and correct tests
* Update interpreter.test.js
Fix merge error
* Delete batched_fetch.test.js
This file was not present in the branch and is failing.
* [7.0] Updates EUI to include date picker types (#31937)
* Fixed a simple argument bug and removed infra date picker EUI types
* Fixes for EUI date picker types
* Updates EUI to 6.10.4 to bring in date picker types, adds react-datepicker types as a necessary peer dep
* Updates moment imports to import from moment-timezone to avoid type collisions
* Syncs version for react-datepicker types between x-pack and kibana root
* Fixes query bar type issue with eui super date picker
* Add definition for type filter in addition to scheme.
* Remove scheme from filter bar.
* Update ES queries to return ICMP counts.
* Update API tests for new histogram size. Add tests for ICMP data.
* Improve code quality for server function.
* Remove unneeded ICMP-specific code.
* Remove unneeded ICMP code from error list query.
* Add correct curve to monitor chart.
* Update ICMP docs and fix broken API tests.
* Add filter bar icmp functional test.
* Update filter bar UI test to ensure that ICMP monitors are supported.
## Summary
(closes#32512, closes#32508)
This fixes a bug where element stats was causing a failure due to not every element being an `expressionRenderable` all the time... when first added, `TimeFilter` is `expressionContext` and should be considered `pending`.
This PR also fixes an issue where `resolvedArgs` was not being reset between workpad loads, causing element stats to be compounded.
Co-authored-by: Spencer <email@spalger.com>
- This adds more thorough error handling to retrieving annotations from the server to avoid breaking Anomaly Explorer when there's a problem retrieving annotations. The UI will silently fail and hide the annotations table if for whatever reasons annotations cannot be retrieved for the selected jobs (this could be permissions or setup related if e.g. the annotations feature index/aliases are not present). This is now the same behavior like in Single Metric Viewer. The browser console will still output an error message. This fixes an error scenario where Anomaly Explorer would fail to load if a user upgraded to 6.6 because the backend task wasn't run yet to create the annotation index/aliases.
- Disables annotations feature in Single Metric Viewer if annotations fail to load.
- Use componentDidUpdate and an update check instead of deprecated componentWillUpdate for updating the annotations table in jobs management.
* Revert "[Infra UI] Clean up Docker and Kubernetes fields for ECS (#31175)"
This reverts commit cb3dad1317.
* Revert "[Infra UI] Fixing group by labels by fixing the field names (post ECS migration) (#30416) (#31012)"
This reverts commit 6bd74e0abd.
* Revert "[Infra UI] ECS Migration (#28205) (#29965)"
This reverts commit fe9748583e.
* Fixing tests
* Fixing tests
* Adding test data for docker and some basic sanity checks to ensure ids and names work correctly with real data
In an effort to remove the workpad renaming lag in https://github.com/elastic/kibana/issues/25070, I started hunting down and fixing re-renders that happened with the name change.
I was hoping this PR would fix the lag, but I've shifted to some other performance issues that have a much larger impact, so this is just a bunch of re-rendering fixes, which come with some performance gains. Here's the breakdown:
- `Workpad`, `WorkpadHeader`, and `FullscreenControl` would always re-render because the hotkey handler function was always re-created
- `Workpad` would re-render when the workpad's name changed
- We were passing the whole workpad object into the component, so it re-rendered on all sorts of changes
- Page title updating moved to middleware so the component doesn't need that value
- `AssetManager` would always re-render if the parent re-rendered because it always created a new state value in `mapStateToProps`
- make `Workpad` and `Toolbar` pure, they take no props and this helps stop some re-rendering
The previous default was an empty string, but empty strings are not valid in the expression. The code ends up using "left" or "top" (depending on the axis), so defaulting to either isn't really a change.
This fixes the following valid expression:
```
demodata | pointseries x=@timestamp y="mean(price)" | plot yaxis={axisConfig max=120}
```
Previously this would fail because the `position` default is invalid unless you specified a value.
<img width="617" alt="screenshot 2019-03-01 12 11 47" src="https://user-images.githubusercontent.com/404731/53660475-33104a80-3c1b-11e9-9a4c-a93116598e28.png">
Now it works as expected:
<img width="536" alt="screenshot 2019-03-01 12 11 03" src="https://user-images.githubusercontent.com/404731/53660440-212ea780-3c1b-11e9-8f4f-7d83a1009fd0.png">