Commit graph

43384 commits

Author SHA1 Message Date
Stacey Gammon 0254ff06b5
Support owner and description attributes inside the Manifest file, use in API docs (#101786)
* Support owner and description in manifest file, add to mdx output for each plugin

* Update parse_kibana_platform_plugin.ts

* edit a couple kibana.jsons

* Update write_plugin_mdx_docs.ts

* update api docs

* Update core server manifest plugin types

* update core docs

* Fix type_check failure
2021-06-09 16:18:21 -04:00
Joey F. Poon 8cf6112999
[Security Solution] fix security empty overview links (#101536) 2021-06-09 15:06:44 -05:00
Frank Hassanabad 8c03ccf1f0
Unskips migration tests now that elastic search is fixed (#101682)
## Summary

Unskips signal migration tests now that elastic search is fixed get alias bug

ES ticket about get alias bug:
https://github.com/elastic/elasticsearch/pull/72953

Tickets related that should be fixed now:
https://github.com/elastic/kibana/issues/99915
https://github.com/elastic/kibana/issues/100305

### Checklist

- [x] [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
2021-06-09 14:02:47 -06:00
Kyle Pollich 845e701487
Fix endpoint -> integrations onboarding link (#101804)
Fixes #101759
2021-06-09 15:58:15 -04:00
ymao1 2fd3c37fdd
[Alerting] Log warning when rules are not rescheduled due to Saved Object not found error (#101591)
* Adding warning to logs when alerting task runner encounters saved object not found and doesn't reschedule rule

* Adding space id to warning message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 15:55:01 -04:00
Craig Chamberlain eb3842b283
Update datafeed_high_count_network_denies.json (#101681)
add a boolean OR between the two possible field values
2021-06-09 15:50:10 -04:00
Matthew Kime 3b37b777cf
[Index patterns] Field editor example app (#100524)
* add example app
2021-06-09 14:44:27 -05:00
Lisa Cawley c20815b070
[DOCS] Adding file upload to add data page (#101674) 2021-06-09 12:36:27 -07:00
Paul Tavares 4e0c889b30
[Security Solution][Endpoint] Adds Endpoint Host Isolation Status common component (#101782)
* Common component for displaying Endpoint Host Isolation status
2021-06-09 14:27:47 -04:00
Thomas Watson 21e8af00ef
Upgrade ws v7.3.1->v7.4.2 and v6.2.1->v6.2.2 (#101402) 2021-06-09 10:45:41 -07:00
Peter Pisljar 07c48a33bb
fixes embeddables migrate function (#101470) 2021-06-09 19:34:40 +02:00
Poff Poffenberger d9c8fef2f8
[Canvas] Update slow query in sample ecommerce workpad (#100714)
* Update slow query in sample ecommerce workpad

* Remove demodata use from sample ecomm workpad

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 12:29:34 -05:00
Gidi Meir Morris 03541e6196
clarify which parts of TM are experimental (#101757) 2021-06-09 17:26:03 +01:00
Dmitry Shevchenko ac2e247c5b
Add sh scripts with _bulk_action route usage examples (#101736) 2021-06-09 17:47:52 +02:00
Shahzad 96c684c4ec
[Uptime] Only register route in side nav if uptime show capability is true (#101709) 2021-06-09 17:37:26 +02:00
Lisa Cawley 75ad61ae0f
Use KIBANA_DOCS in doc link service (#101667) 2021-06-09 08:15:54 -07:00
ymao1 a12ff5d65d
[Alerting][Event log] Persisting duration information for active alerts in event log (#101387)
* WIP

* Storing start, duration and end in alert state

* Writing to event log

* Updating unit tests

* Adding unit tests

* Fixing uuid in tests

* Updating functional test

* Adding functional test

* Removing console logs

* Fixing unit tests

* PR fixes

* Removing uuid from alert information

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 11:09:05 -04:00
Tim Roes ee0efabbfc
Address design issues in Discover/Graph (#101584)
* Remove Discover panel shadow

* Fix graph issues
2021-06-09 17:03:28 +02:00
Tim Roes fe6112c255
Optimize performance for document table (#101715) 2021-06-09 16:31:09 +02:00
Nathan Reese d415357f73
Change file data visualizer links to point to new location in home application (#101393)
* Link to home file data visualizer

* remove unused import

* i18n cleanup

* remove unused import from EmptyState

* use const

* remove ml functional test cases checking for ml_file_data_visualizer

* more clean-up of ml_file_data_visualizer

* jest snapshot and nav to home page in no_ml_access tests

* revert change to functional test dual_privileges_all at everything_space

* revert another change to security_and_spaces/tests/catalogue.ts

* revert changes to x-pack/test/ui_capabilities/security_only/tests/catalogue.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 08:30:40 -06:00
Alejandro Fernández Gómez cd8cf46ad1
[Fleet] Tighten policy permissions, take II (#97366)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 16:11:15 +02:00
Dima Arnautov 97b952b0e1
[ML] Add debounce to the severity control update (#101581) 2021-06-09 16:08:08 +02:00
Kyle Pollich 58eb0d40e9
[Fleet] Fix routing issues with getPath and history.push (#101658)
* Fix getPath usage in Fleet app

* Fix pathname in failing test
2021-06-09 10:07:29 -04:00
Dario Gieselaar 520d1e8c04
[APM] Add link-to/transaction route (#101731) 2021-06-09 15:42:05 +02:00
Anton Dosov edc5251433
[Index Patterns] Runtime fields CRUD REST API (#101164)
Part of index pattern REST API
2021-06-09 09:00:39 -04:00
Yulia Čech fb88c99524
[ILM] Refactor types and fix missing aria labels (#101518)
* Refactor phase types (mostly moving imports)

* Refactor phase types (mostly moving imports)

* Renamed a type for consistency and replaced more hard coded strings with types

* Fixed remaining references to the deleted MinAgePhase
2021-06-09 14:42:56 +02:00
Marco Liberati e3c3b6f334
[Lens] New summary row feature for datatable (#101075)
*  New summary row feature for datatable

*  Allow empty strings behind flag + tests

* 🐛 Address the transition problem + refactor

*  Add some unit tests

*  Add first functional tests

* 👌 first feedback addressed

*  Make it handle numeric array values

* 📝 Improved message

*  Fix functional test

* 🔥 Remove warning message for last value

* 🚨 Remove unused import

* 🐛 Fix a bug with last value

* 👌 Integrated feedback

* 💄 Migrated to combobox

*  Fix unit tests + restore right data-test-id

* 🏷️ Fix type issue

* 👌 Address all issues reported

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 14:27:49 +02:00
David Sánchez d90285f718
Blocks save event filter with a white space name (#101599) 2021-06-09 14:20:43 +02:00
Stacey Gammon 7604fd7c80
Improve security server types (#101661)
* Remove RecursiveReadonly wrapper on public API items

* Remove Pick and export some types that are part of the public API

* Udpate api docs

* Export API items that are part of the public API

* Add extra comments

* update api docs
2021-06-09 14:01:48 +02:00
Søren Louv-Jansen 8b555c7f12
[APM] Replace side nav with tabs on Settings page (#101460)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2021-06-09 07:57:42 -04:00
Søren Louv-Jansen d3ce128556
[APM] Only register items in side nav if user has permissions to see app (#101707) 2021-06-09 06:27:53 -04:00
David Sánchez e94a34df30
[Security solution][Endpoint] Add back button when to the event filters list (#101280)
* Add back button when to the event filters list. Isolated back to external app button to be used as generic component

* Adds unit tests for back button

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 12:11:56 +02:00
Dmitry Shevchenko 16e66b82b0
Implement "select all" rules feature (#100554) 2021-06-09 11:32:45 +02:00
Dima Arnautov 52d62ceec5
[ML] Remove script fields from the Anomaly detection alerting rule executor (#101607)
* [ML] remove script fields

* [ML] fix initial score
2021-06-09 11:00:05 +02:00
David Sánchez abaac4c6c7
[Security solutions][Endpoint] Update event filtering texts (#101563)
* Changes multilang for add endpoint event filter action on events tab

* Changes more multilangs and display name error only when needed

* Changes variable names and aria labels to be consistent with namings

* Fixes unit test due multilang changes
2021-06-09 10:13:55 +02:00
Constance 12986fb8fc
[Enterprise Search] Mocks/tests tech debt - avoid hungry mocking (#101107)
* Move enzyme & misc test helpers out of __mocks__/ and into new test_helpers/

They're not technically mocks since nothing is being mocked, so we should move them into a test_helpers folder for specificity & organization

* Move React Router mocks into its own separate folder/import

This was part of the initial feedback, that it was unclear why importing something for Kea in __mocks__/index.ts was mocking react router along for the ride. Separating this out makes things clearer and imports more explicit

+ add some handy new mock useX jest.fn()s helpers, so we're not doing `useParams() as jest.Mock` errywhere

* Move Kea & logic mocks/helpers into kea_logic subfolder
- for organization

NOTE: It can't be a plain kea/ folder because then Jest automatically mocks the `kea` module itself kea 🤦

* Fix type failures

- Caused by switch from any to unknown (changed back to any + added a .test_helper suffix exclusion for any)

* Fix Enterprise Search tests/imports

- I checked all application folders but this one, whoops

* PR feedback: comment copy

* Update tests/files added since PR open with new import locations

* Fix misc react router typing

- null not being type-able as a boolean
- forgot to remove various useParam imports after adding mockUseParams
+ misc unused kea import, probably added while debugging kea mocks
2021-06-08 21:36:06 -07:00
Tyler Smalley c225aaaaa5 [FTR] Updates esArchive paths
PR's merged after #101345

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 21:10:36 -07:00
Tyler Smalley aa8f7f3af2 [FTR] Updates esArchive paths
PR's merged after #101345

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 21:06:50 -07:00
Frank Hassanabad 4021576436
[Security Solution][Detection Engine] Adds runtime field tests (#101664)
## Summary

Adds runtime field tests with skips around the tests that we do not support just yet.

* Adds tests around corner cases involving ".", "..", ".foo", "foo.", etc...
* Adds tests around overriding values from the runtime fields within the source document
* Adds tests around ambiguity for when we override an array in a runtime field
* Fixes minor wording around previous tests
* Fixes one line string when we do testing in one area

### Checklist

- [x] [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
2021-06-08 17:31:54 -06:00
Alexander Wert 6c02081ed7
Added APM PHP agent to the list of agent names (#101062)
* Added APM PHP agent to the list of agent names to include it into the agent telemetry collection

* put php label into alphabetical order

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 01:13:47 +02:00
Brian Seeders e2d75c2b47
[CI] Restore old version_info behavior when .git directory is present (#101642) 2021-06-08 19:03:32 -04:00
Nicolas Chaulet 8c2c83cb7d
[Fleet] Add fleet server telemetry (#101400) 2021-06-08 18:55:48 -04:00
Oliver Gupte ff0349d048
[APM] Syncs agent config settings to APM Fleet policies (#100744)
* [APM] Syncs agent config settings to APM Fleet policies (#95501)

* fixes eslint issues

* fixes malformed line comment

* - consolidated logic that applies agent configurations to package policy objects
- update package policy agent_configs to include etag, agent.name, and change settings -> config

* Synchronizes agent configs whenever configuration is deleted.

* PR feedback

* nest agent_config within `apm-server` in the package policy input

* nests agent_config under the requried 'value' property of config['apm-server']
in order to pass validation checks

* - externalizes getApmPackagePolicies for reusability
- parallelizes operations for improved performance

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 18:52:49 -04:00
Spencer f466ebf1a3
[esArchiver] drop support for --dir, use repo-relative paths instead (#101345)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 17:37:42 -04:00
spalger 686ade7808 Revert "[xpack/test] restore incremental: false in ts project"
This reverts commit 3c68a0c810.
2021-06-08 14:26:26 -07:00
Kevin Logan 8699803255
[Security Solution] Remove Host Isolation feature flag (#101655) 2021-06-08 17:17:19 -04:00
spalger 3c68a0c810 [xpack/test] restore incremental: false in ts project 2021-06-08 13:30:42 -07:00
gchaps 87dde4cb2d
[DOCS] Adds link to video landing page (#101413) 2021-06-08 13:17:59 -07:00
Quynh Nguyen 65b8dda157
[ML] Move Index Data Visualizer into separate plugin (Part 1) (#100922)
* [ML] Add index visualizer

* [ML] Readd support for global state

* [ML] Add time buckets & fix dependencies

* [ML] Working ver

* [ML] Add back and boolean support

* [ML] Remove old files inside ml

* [ML] Rename files

* [ML] Move field type icon

* [ML] Create new folder structure

* [ML] Organize index_data_visualizer

* [ML] Move types into index_data_visualizer folder

* [ML] Move more files into file_data_visualizer

* [ML] Move more files into index_data_visualizer

* [ML] Add new data visualizer model

* [ML] Remove getVisualizerFieldStats which is not used by dv

* [ML] Delete redundant folder

* [ML] Copy old data visualizer routes to new plugin

* [ML] Remove old routes

* [ML] Disable for ml job cards tests for now

* [ML] Remove todos

* [ML] Move the toast error to the UI component

* [ML] Fix map styling

* [ML] Add runtime_mappings for internal/file_upload/time_field_range

* [ML] Move routes into folder

* [ML] Update permissions

* [ML] Update texts

* [ML] Update schemas import and api get_field_stats

* [ML] Reorg folders into common

* [ML] Update types & tests

* [ML] Update internal/data_visualizer permissions and action panel tests

* [ML] Update imports after #100863

* [ML] Fix CI

* [ML] Rename folder from file_data_visualizer to data_visualizer

* [ML] Rename i18n ids

* [ML] Update fileDataVisualizer -> dataVisualizer dependency name in ml plugin

* [ML] Remove ml prefix in data test subjs

* [ML] Fix settings and docs

* [ML] Update plugin description

* [ML] Remove mlContext dependency completely

* [ML] Set query to optional

* Revert "[ML] Update plugin description"

This reverts commit 4ab1a25c

* [ML] Update plugins list docs

* [ML] Fix types and i18n

* [ML] Revert ml data test subj/class name changes

* [ML] Split up data visualizer model, remove Logger

* [ML] Remove empty file and indexPatternFieldEditor

* [ML] Move imports of file_upload

* [ML] Update plugin dependencies

* Re-add missing data_visualizer.json

* Remove capabilities in data_visualizer

* Fix test subjs

* Update ownership for data_visualizer and file_upload code to be ml

* Update estypes after 98266

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 14:50:14 -05:00
Stacey Gammon 8aa370ba3b
Improve security plugin return types (#101492)
* Add explicit security types

* Remove sessionTimeout, seems unused

* add comments

* Add comments and fix test since removing the unused APIs

* remove unused import

* wording cleanup

* Export some types that are part of the public API but not exported

* more improvements for api docs

* update security docs

* Update x-pack/plugins/security/public/nav_control/nav_control_service.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/nav_control/nav_control_service.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/plugin.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/plugin.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* remove unneccessary readonly prefix

* Update all api docs

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-06-08 14:05:14 -04:00