Commit graph

25564 commits

Author SHA1 Message Date
Rudolf Meijering
4399d41217
Fixes #40714: Import API don't override SavedObjectClient errors (#41125) (#42753)
* Import API: Don't override SavedObjectClient errors

* Review comments: rely on default hapi error behaviour
2019-08-06 21:23:31 +02:00
gchaps
d0ff5f4826 [DOCS] Removes outdated image (#42624) 2019-08-06 12:13:00 -07:00
Corey Robertson
832214b56c
Fix autocomplete not working (#42183) (#42703) 2019-08-06 12:57:55 -05:00
Liza Katz
7123a4aa5a
Fixed error thrown in timelion opening help (#42701) 2019-08-06 19:30:06 +03:00
Poff Poffenberger
6966d0d1a9
Updating canvas layout flex basis to auto for IE11 (#42544) (#42694) 2019-08-06 10:57:36 -05:00
Rudolf Meijering
b4adf8f440
Fixes #42519 dashboard migration bug (#42520) (#42673)
* Fixes #42519 dashboard migration bug

* Tests

* Dashboard migration errors: log stack and dashboard document
2019-08-06 13:17:04 +02:00
Spencer
0740aa3670
[7.3] move vault setup into repo so all ci logic is in the rep… (#42649)
* move vault setup into repo so all ci logic is in the repo

* turns out I'm used to less strict bash...

* unset VAULT_ADDR
2019-08-05 21:25:42 -07:00
James Gowdy
7a021fde0b
[ML] Fixing ml when spaces feature is disabled (#42564) (#42588)
* [ML] Fixing ml when spaces feature is disabled

* correcting grammar in comment

* fixing typo
2019-08-05 12:43:39 +01:00
Brandon Kobel
97d6773fda
[docs][skip ci] Maps read only access (#35561) (#42554)
* Adding read only access to the maps docs

* Removing redundant x-pack label, maps is already x-pack only

* Apply suggestions from code review

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Switching to using a Note
2019-08-02 15:57:38 -07:00
Spencer
ab19a2ef3b
[7.3] [ftr/cheerio] improve cheerio types to include test subj… (#42542) 2019-08-02 15:50:25 -07:00
gchaps
9dc621abdd [DOCS] Updates images and content in Dashboard docs (#42500)
* [DOCS] Updates images and content in Dashboard docs

* [DOCS] Incorporated feedback
2019-08-02 15:10:24 -07:00
Spencer
54024807b7
[7.3] [basePathProxy] add __UNSAFE_bypassBasePath route (#4120… (#42451) 2019-08-02 13:41:40 -07:00
Tyler Smalley
b9a767e1a7
[7.3] Revert ES pinning (#42367)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-02 12:20:06 -07:00
Aaron Caldwell
562cd0af6e
[Maps][File upload] Set geojson indexed layer defaults for bounds and global (#41789) (#42533)
* Set 'map bounds' and 'global query' default to 'false' for indexed geojson layers

* Add constants file

* Clean up

* Dynamically determine whether or not to filter by map bounds based upon docCount

# Conflicts:
#	x-pack/legacy/plugins/maps/public/layers/sources/client_file_source/geojson_file_source.js
#	x-pack/legacy/plugins/maps/public/reducers/map.js
2019-08-02 11:02:46 -06:00
Dario Gieselaar
990347912b
[7.3] [APM] Add react-hooks lint rules for APM folder, fix dep… (#42182)
* [APM] Add react-hooks lint rules for APM folder, fix dependencies (#42129)

* [APM] Add react-hooks lint rules for APM folder, fix dependencies

Closes #42128.

* Validate useFetcher dependencies as well

* Add useFetcher hook; move eslint config to kibana eslint config

* Fix type errors
2019-08-02 17:33:29 +02:00
Garrett Spong
ede2e464eb
[SIEM] Adds Machine Learning section to 'Using the SIEM UI' docs (#42399) (#42522)
## Summary

Adding `Anomaly Detection with Machine Learning` section to docs for new Machine Learning features.

Example generated docs:

![image](https://user-images.githubusercontent.com/2946766/62312719-2a32d780-b44c-11e9-9967-4639eedf05d5.png)




### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [x] 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/master/packages/kbn-i18n/README.md)
- [x] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [ ] ~[Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
2019-08-02 08:50:33 -06:00
Garrett Spong
390683329a
[7.3] [SIEM] Fixes infinite loop when machine learning's create job API returns an error (#42228) (#42466)
## Summary

Fixes infinite loop when machine learning create job returns an error

https://github.com/elastic/ingest-dev/issues/616

This now will show an error toaster pop up which acts as a circuit breaker and does not continuously hit the back end if you have create job errors such as this one:

<img width="791" alt="Screen Shot 2019-07-29 at 11 22 39 PM" src="https://user-images.githubusercontent.com/1151048/62103608-293a5400-b25a-11e9-9a9d-a5af42f7e128.png">


### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

- [x] 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/master/packages/kbn-i18n/README.md)

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-08-02 07:35:46 -06:00
Garrett Spong
db2d3141c5
Changed the job to work with a dedicated index (#42297) (#42465)
## Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

### Checklist

Uses a dedicated index for job creation instead of the shared anomaly index.

Previously we used only `.ml-anomalies-shared` but this can cause a mapping clash from users who might have put different data types into that index already.

See:
https://www.elastic.co/guide/en/elastic-stack-overview/7.x/ml-mappingclash.html

This makes all creation of all SIEM jobs use a dedicated index from this point moving forward. 

For testing:

* Delete any existing jobs from your server and any test data in the ML UI:
* Go to dev tools and run: `GET /_cat/indices/.ml-anomalies-custom-*?v` and verify you do not have any custom indexes prefixed with an existing SIEM job 
* Click the "Anomaly Button" in the SIEM application to re-install the jobs
* Go to dev tools and run: `GET /_cat/indices/.ml-*?v`

Expectations are that you will see these indexes created:

```ts
health status index                                                          uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .ml-anomalies-custom-siem-api-suspicious_login_activity_ecs    7ksvxOpgQ8WOG91NA_o8Eg   1   0       1474         1905    601.8kb        601.8kb
green  open   .ml-anomalies-custom-siem-api-rare_process_windows_ecs         Q_8xC5orR-eZSlXQJvmL9w   1   0       1655          474    454.3kb        454.3kb
green  open   .ml-anomalies-custom-siem-api-rare_process_linux_ecs           k_MwtbZIRbSkQxh6lcXIKg   1   0       1845         3832        1mb            1mb
```

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

- [x] 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/master/packages/kbn-i18n/README.md)

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

~~- [ ] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~~

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-08-02 07:35:11 -06:00
Garrett Spong
7dcf815049
[SIEM] Fixes a crash when Machine Learning influencers is an undefined value (#42198) (#42464)
## Summary

Fixes a crashing bug when Machine Learning influencers is an undefined value:

https://github.com/elastic/ingest-dev/issues/611

```ts
TypeError: Cannot read property 'find' of undefined
    at getNetworkFromInfluencers (https://siem-dev-kibana.app.elstc.co/bundles/siem.bundle.js:41744:33)
    at https://siem-dev-kibana.app.elstc.co/bundles/siem.bundle.js:43012:83
    at Array.reduce (<anonymous>)
    at convertAnomaliesToNetwork (https://siem-dev-kibana.app.elstc.co/bundles/siem.bundle.js:43004:32)
    at https://siem-dev-kibana.app.elstc.co/bundles/siem.bundle.js:42830:78
    at renderWithHooks (webpack://%5Bname%5D/./node_modules/react-dom/cjs/react-dom.development.js?:12839:18)
    at updateFunctionComponent (webpack://%5Bname%5D/./node_modules/react-dom/cjs/react-dom.development.js?:14421:20)
    at beginWork (webpack://%5Bname%5D/./node_modules/react-dom/cjs/react-dom.development.js?:15431:16)
    at performUnitOfWork (webpack://%5Bname%5D/./node_modules/react-dom/cjs/react-dom.development.js?:19106:12)
    at workLoop (webpack://%5Bname%5D/./node_modules/react-dom/cjs/react-dom.development.js?:19146:24)
```

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] 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/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-08-02 07:34:33 -06:00
John Dorlus
e555582a4c
Switched order of tests so license downgrade test runs last. (#42312) (#42481)
* Added 5 second sleep to let thte page load before checking for title.

* Changed the order of the license file to last. Removed sleep because it wasn't the problem.

* Addes skip cloud tag so this test doesn't run on cloud.

* Added a comment in config to leave the license file last because it's destructive.
2019-08-01 21:33:51 +00:00
chongzhe
faf8bfa068
[Code] Add doc for 7.3 (#42392) (#42488) 2019-08-01 13:34:01 -07:00
Chandler Prall
b5fa1276ed
Correct the I18n service definition of euiStat.loadingText (#42354) (#42448)
* Correct the I18n service definition of euiStat.loadingText

* Update i18n_service snapshot
2019-08-01 12:43:28 -06:00
Aaron Caldwell
4031826dde
[Maps][File upload] File upload functional tests (#40191) (#42388)
* Add data-test-subj where needed

* Add helper functions for geojson import tests

* Add test geojson files

* Add functional tests for file upload and indexing

* Update file string names to reflect changed filenames

* Add back point & multipoint handling logic to mapping

* Update testSubjects 'getProperty' to 'getAttribute' per recent changes to master

* One more 'getProperty' -> 'getAttribute'

* Review feedback

* Remove test that no longer produces failures w/ latest es

* Move common logic to 'beforeEach'. Add function to check add layer panel closed to fix race condition

* Review feedback

* Review feedback

* Review feedback

* Review feedback
2019-08-01 08:11:31 -06:00
Walter Rafelsberger
0fcb2053ba
[ML] Fix display of progress bar. (#42158) (#42230)
Fixes the check whether to display the empty progress bar for the stopped state. (This bug would display both progress bar, the moving one and the empty one when a continuous job was started)
2019-08-01 13:27:44 +02:00
Aleh Zasypkin
837bcddfb9
[7.3] [@kbn/es] Add a predefined list of Elasticsearch secure settings to be added into keystore. Re-enable OIDC tests. (#42425) 2019-08-01 10:29:01 +02:00
Yulong
34f32f055d
[Code] bump nodegit version (#42332) (#42414) 2019-08-01 11:13:37 +08:00
CJ Cenizal
3ff6998c5a
Fix minor Console regressions introduced during EUIfication. (#41089) (#41943)
- Snakecase help_example.txt filename.
- Hide polling options when no autocomplete options are selected.
- Apply className to settings modal so its width doesn't change when the polling options are hidden.
- Only fetch changed autocomplete settings when modal is saved.
2019-07-31 15:27:32 -07:00
lcawl
326462551a [DOCS] Removes coming tag 2019-07-31 14:54:12 -07:00
Liza Katz
5b735df46e
Fix merge (#42374) 2019-08-01 00:15:32 +03:00
Liza Katz
39c9a8d73e
resolves #33156 (#41759) (#42371) 2019-07-31 22:53:47 +03:00
Jen Huang
da65af9074
[SR] Allow custom index pattern to be used instead of selectable list when choosing indices to restore (#41534) (#42320)
* Allow user to use custom input instead of selectable list

* Small copy change, fix indices toggle link

* Remove unused translation

* Adjust copy and change index pattern input to combo box

* Address PR feedback
2019-07-31 09:27:26 -07:00
Aaron Caldwell
3fe7ed3e52
[Maps][File upload] Remove geojson deep clone logic, handle on maps side (#41835) (#42294)
* Remove deep clone, just use type & geometry for features on maps end

* Remove file parser clone test

* Review feedback

* Set properties default to empty object since there's downstream modification

* Review feedback
2019-07-31 09:47:25 -06:00
spalger
7e0a615b38 revert change to uptime-guide version 2019-07-31 08:07:17 -07:00
spalger
c65d77f223 bump to 7.3.1 2019-07-31 08:04:59 -07:00
Tudor Golubenco
92b875dffe
Use valid function name in functionbeat tutorial (#39644) (#42342)
Function names cannot contain underscores.
2019-07-31 16:45:04 +03:00
Brandon Morelli
130b048500 docs: update release state (#41306) 2019-07-31 06:05:27 -07:00
Dario Gieselaar
793efbc0d0
[APM] Make sure tooltips for metric charts are synced (#42139) (#42177)
Closes #42138
2019-07-31 13:21:16 +02:00
Dmitry Lemeshko
13c1591fcf
FTR: fix testSubjects.missingOrFail (#42290) (#42322)
* [services/test_subject] fix missingOrFail

* [services/test_subjects] allowHidden option for missingOrFail

* [page_objects/dashboard_page] wait for euiTable loaded, increase timeout for loading page check
2019-07-31 11:17:31 +02:00
Luke Elmers
0b3c817f69
Add build pipeline tests for undefined data. (#42080) (#42284) 2019-07-30 14:02:41 -06:00
Catherine Liu
4e1d8d2871
[7.3] [Canvas] Fixes workpad header button overlap issue in IE… (#42272) 2019-07-30 12:31:56 -07:00
Kaarina Tungseth
cec4b75ddb
[DOCS] Kibana 7.3 Release Notes (#41798)
* [DOCS] Kibana 7.3.0 Release Notes

* Moved other enhancement to visualize

* Comments from Gail

* Comments from Raya

* Script rerun to May 20

* Comments from Gail and Thomas
2019-07-30 13:05:02 -05:00
Joel Griffith
95422263ed
Fixes an issue where headless_shell doesn't get properly closed (and … (#40924) (#42078)
* Fixes an issue where headless_shell doesn't get properly closed (and thus zombied)

* Using cURL vs wget

* Break-up the command and verify the checksum
2019-07-30 10:40:59 -07:00
Dmitry Lemeshko
a9bc033092
[DOCS] Update functional test runner doc (#41806) (#42257)
* [ftr/docs] replace leadfoot with webdriver

* [ftr/docs] more details about running tests in Firefox

* [ftr/docs] update references to ftr services

* [ftr/docs] fix links and update description

* [ftr/docs] update services information

* [ftr/docs] fix more links

* small fix

* [ftr/docs] Firefox run example

* revert link changes

* review fix

* review fixes

* add details on how to start x-pack tests

* lost fix for tags description

* Update docs/development/core/development-functional-tests.asciidoc

Co-Authored-By: Spencer <email@spalger.com>

* Update docs/development/core/development-functional-tests.asciidoc

Co-Authored-By: Spencer <email@spalger.com>
2019-07-30 19:18:33 +02:00
Jason Rhodes
c42262c990
Reverts submit on blur for infra logs query bar (#41968) (#42242) 2019-07-30 09:04:41 -04:00
István Zoltán Szabó
d8c9fedcc1 [DOCS] Updates ML/anomaly detection terms in the Kibana guide (#41965) 2019-07-30 10:09:33 +02:00
Alexey Antonov
bbbe50b3e8
[TSVB] Group by "Everything" fails to calculate data with "Overall" metrics (#42074) (#42190)
* [TSVB] Group by "Everything" fails to calculate data with "Overall" metrics

Closes: #42015

* add tests

* fix grammar

* hasPipelineAggregations -> hasSiblingPipelineAggregation
2019-07-30 00:06:56 +03:00
Alison Goryachev
45740d858a
[WATCHER] remove validation for email action body attribute (#42009) (#42181) 2019-07-29 15:58:53 -04:00
gchaps
149fc700aa [DOCS] Tags notable highlights for reuse in other docs 2019-07-29 11:18:46 -07:00
gchaps
a152889c43 [DOCS] Adds 7.3 Release Highlights (#42043)
* [DOCS] Adds 7.3 Release Highlights

* [DOCS] Removes some of the images in the Canvas highlights

* [DOCS] Updates content in 7.3 highlights
2019-07-29 10:35:08 -07:00
Gergely Kalapos
699d454c56
[APM] Update .NET Agent instructions (#42124) (#42152)
* Update src/legacy/core_plugins/kibana/server/tutorials/apm/instructions/apm_agent_instructions.js

.NET Agent:
- removed beta warning
- updated the text with the updated pacakge and `UseAllElasticApm()` method
- fixed 1 minor typo

* Update translations files
2019-07-29 17:23:44 +02:00