Commit graph

37712 commits

Author SHA1 Message Date
Chris Roberson 7c7dc5fdda
Fix more sorts by adding unmapped_type (#85837) (#86666)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 14:14:19 -05:00
Brian Seeders aa28c4136e
[CI] TeamCity updates (#85843) (#86589) 2020-12-21 14:05:59 -05:00
Wylie Conlon 0f77d66489
[Lens] Refactor param editor to use layers (#86499) (#86656)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 13:57:14 -05:00
Walter Rafelsberger 0c872a70a3
[ML] Data Frame Analytics: Scatterplot Matrix Fixes (#86357) (#86648)
- use ml API service from the Kibana context
- adds jest tests for the Vega Lite Spec generator
- fix chart layout overflow with too many fields selected
2020-12-21 19:55:25 +01:00
ymao1 6d657c2763
[Alerting] Updating wording on "Notify" dropdown (#86453) (#86650)
* Updating wording

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 13:46:49 -05:00
Paul Tavares 4acded556c
Added docs for fleet UI extensions (#86654) (#86665) 2020-12-21 13:04:04 -05:00
Jonathan Budzenski 3d925d06b9 skip histogram brushing, #86602 2020-12-21 11:27:13 -06:00
Joe Reuter a4e99754a4
fix time scaling bugs (#86444) (#86643) 2020-12-21 17:51:24 +01:00
Joe Reuter 884246e421
[Lens] Make sure Lens does not reload unnecessarily (#86092) (#86641) 2020-12-21 17:14:26 +01:00
Thom Heymann 702e795efe
Fix ECS HTTP scheme and improve docs (#86612) (#86632) 2020-12-21 15:46:31 +00:00
Madison Caldwell 1aeb6eda5a
[Security Solution][Detections][Threshold Rules] Threshold Rule Bug Fixes (#84918) (#86606)
* Move threshold dupe detection logic to its own function

* Minor fixup

* Refactor and remove property injection for threshold signals

* Only show aggregatable fields for threshold rule grouping

* Add threshold rule kql filter to timeline

* Remove outdated getThresholdSignalQueryFields tests

* Filter aggregatable fields on client

* Revert "Only show aggregatable fields for threshold rule grouping"

This reverts commit 539fa49cc9.

* Fix bug with incorrect calculation of threshold signal dupes when no threshold field present

* Revert "Add threshold rule kql filter to timeline"

This reverts commit 64823744a3.

* Add test skeleton

* Finish tests

* Address comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 10:45:18 -05:00
James Gowdy b8f7eaf093
[ML] Fixing endpoint schema for can_delete_job endpoint (#86436) (#86636)
* [ML] Fixing endpoint schema for can_delete_job endpoint

* changing get to post in docs

* renaming canUntag

* fixing typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:29:09 +00:00
Marco Liberati 27fdae0334
[7.x] [Dashboard] Change filename fallback for no title panels to "untitled" (#86110) (#86346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:05:51 +01:00
Cauê Marcondes efb8e38040
[APM] Bug: Service overview: Link to Transactions list from the Overview page is broken (#86447) (#86629)
* fixing link and refactoring some stuff

* addressing pr comments
2020-12-21 14:56:59 +01:00
Jason Stoltzfus 90b2e54f8b
[App Search] Updates to results on the documents view (#86181) (#86558) 2020-12-21 08:56:39 -05:00
Daniil 8f5aa004a9
Fix request with disabled aggregation (#85696) (#86626)
* Fix request with disabled aggregation

* Update unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 16:38:56 +03:00
Thom Heymann 20d9ae2c50
Add audit events for spaces (#86343) (#86620)
* Add audit events for spaces

* fix eslint error
2020-12-21 12:36:24 +00:00
Marco Liberati b1bc258123
[7.x] [Lens] Document the "Other" entry in data summaries in Kibana guide (#85575) (#86345)
* 📝 Address Other entry in data summaries

* 👌 Integrated feedback from review

* 📝 Add not about going beyong 100% with array values

* 👌 Improved documentation for summaries

* 👌 Improved documentation for data summaries covering discussed aspects by type and hardcoded stat values

* Update docs/user/dashboard/dashboard.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/user/dashboard/dashboard.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/user/dashboard/dashboard.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2020-12-21 10:04:29 +01:00
Luke Elmers 620f5326ca
App Services: Remove remaining uiActions, expressions, data, embeddable circular dependencies. (#82791) (#86608)
* Move applyFilter, selectRange, valueClick triggers to data/embeddables.

* Update imports.

* Remove embeddable references to non-existent data plugin dependency.

* remove data mocks from embeddable

* Remove query, filters, timeRange from EmbeddableInput and move to apps.

* Remove data plugin imports from embeddable test samples.

* Remove circular dependencies caused by expressions renderer handlers.

* Update circular deps allowList.

* Remove data dependency on embeddable.

* Revert accidental data plugin change.

* Fix new circular deps issues.

* Update generated docs.

* Fix type errors in vis_type_xy

* Fix inspector data table.
2020-12-20 15:53:54 -07:00
Yuliia Naumenko 4737c73abb
Removed a possibility to define two different names for Alert types on API and UI level. (#86236) (#86605)
* Removed a possibility to define two different names for Alert types on API and UI level

* fixed typechecks

* fixed typechecks

* fixed due to comments

* fixed typechecks

* fixed jest tests

* fixed typechecks
2020-12-20 14:36:12 -08:00
Thomas Watson 5db8193600
Bump Node.js from version 14.15.2 to 14.15.3 (#86593) (#86603) 2020-12-20 18:07:22 +01:00
Matthew Kime 15ab9c8257
[index patterns] Fleep app - Keep saved object field list until field caps provides fields (#85370) (#86600) 2020-12-20 10:39:06 -06:00
Thomas Watson 777c80d8a0
Upgrade to hapi version 20 (#85406) (#86592) 2020-12-20 10:20:57 +01:00
Xavier Mouligneau c539510dd9
[Security Solutions] fix timeline tabs + layout (#86581) (#86595)
* fix timeline tabs + fix screenreader

* review

* fix jest tests
2020-12-19 20:59:52 -05:00
Devon Thomson 09e9b03dc4
Fixed duplication of create new modal (#86489) (#86536) 2020-12-19 14:42:20 -05:00
Candace Park 4d4dd32992
[Security Solution][Endpoint][Admin] Disables malware checkbox when switch is off and can now save in detect mode (#86402) (#86509) 2020-12-19 12:56:42 -05:00
igoristic dcc7393b87
[7.x] [Monitoring][Alerting] CCR read exceptions alert (#85908) (#86583)
* [Monitoring][Alerting] CCR read exceptions alert (#85908)

* CCR read exceptions all branches

* cleanup

* CR feedback

* Added UI/UX to ccr/shards listing and details

* Fixed snaps

* Added reason for the exception

* Added setup mode funtionality and alert status
# Conflicts:
#	x-pack/plugins/monitoring/public/components/elasticsearch/ccr/ccr.js

* Update ccr.js

* Update ccr.test.js.snap
2020-12-19 11:15:39 -05:00
CJ Cenizal 68791e8c6d
7.11 console autocomplete definitions update (#86076) (#86590)
Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2020-12-19 06:55:35 -08:00
CJ Cenizal d8f85ecab3
[Rollup Jobs] Added autofocus to cron editor (#86324) (#86587)
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
2020-12-18 20:06:24 -08:00
Nick Partridge 86563373c5
[7.x] Create vis_type_xy plugin to replace histogram, area and line charts (#78154) (#86534) 2020-12-18 22:00:58 -06:00
Candace Park 1bcb2d4e87
[Security Solution][Endpoint][Admin] Remove spaces in custom malware message brackets (#86393) (#86582) 2020-12-18 20:39:52 -05:00
Brian Seeders 5ec653f170
Explicitly set Elasticsearch heap size during CI and local development (#86513) (#86573) 2020-12-18 19:56:24 -05:00
Brian Seeders 2ab980a9b6
[CI] Bump memory for main CI workers (#86541) (#86578) 2020-12-18 19:55:48 -05:00
Constance 9eb1ad5c4d
[App Search] Convert DocumentCreationModal to DocumentCreationFlyout (#86508) (#86542)
* Convert DocumentCreationModal to a Flyout

- Per discussion w/ Davey - it handles longer/detailed content better

* Update instances referencing DocumentCreationFlyout

* Update flyout children

- modal->flyout
- add hasBorder, set EuiTitle sizes, add flexgroup to footer buttons
2020-12-18 15:59:04 -08:00
Constance 4166446188
[App Search] Sample Engines should have access to the Crawler (#86502) (#86539)
* Remove logic preventing Crawler from being used on sample engines

* Remove check around crawler button in DocumentCreationButtons

- primarily a UI thing - ideally we always want to show 4 buttons
2020-12-18 15:58:48 -08:00
ymao1 e9083ff009
[Alerting UI] Centered loading spinners (#86186) (#86530)
* Creating shared loading spinner component

* Using section loading component where it makes sense

* Fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 18:16:06 -05:00
Rudolf Meijering 6a8726b412
[7.x] Resilient saved object migration algorithm (#78413) (#86284)
* Resilient saved object migration algorithm (#78413)

* Initial structure of migration state-action machine

* Fix type import

* Retries with exponential back off

* Use discriminated union for state type

* Either type for actions

* Test exponential retries

* TaskEither types for actions

* Fetch indices instead of aliases so we can collect all index state in one request

* Log document id if transform fails

* WIP: Legacy pre-migrations

* UPDATE_TARGET_MAPPINGS

* WIP OUTDATED_DOCUMENTS_TRANSFORM

* Narrow res types depending on control state

* OUTDATED_DOCUMENTS_TRANSFORM

* Use .kibana instead of .kibana_current

* rename control states TARGET_DOCUMENTS* -> OUTDATED_DOCUMENTS*

* WIP MARK_VERSION_INDEX_READY

* Fix and expand INIT -> * transition tests

* Add alias/index name helper functions

* Add feature flag for enabling v2 migrations

* split state_action_machine, reindex legacy indices

* Don't use a scroll search for migrating outdated documents

* model: test control state progressions

* Action integration tests

* Fix existing tests and type errors

* snapshot_in_progress_exception can only happen when closing/deleting an index

* Retry steps up to 10 times

* Update api.md documentation files

* Further actions integration tests

* Action unit tests

* Fix actions integration tests

* Rename actions to be more domain-specific

* Apply suggestions from code review

Co-authored-by: Josh Dover <me@joshdover.com>

* Review feedback: polish and flesh out inline comments

* Fix unhandled rejections in actions unit tests

* model: only delay retryable_es_client_error, reset for other left responses

* Actions unit tests

* More inline comments

* Actions: Group index settings under 'index' key

* bulkIndex -> bulkOverwriteTransformedDocuments to be more domain specific

* state_action_machine tests, fix and add additional tests

* Action integration tests: updateAndPickupMappings, searchForOutdatedDocuments

* oops: uncomment commented out code

* actions integration tests: rejection for createIndex

* update state properties: clearer names, mark all as readonly

* add state properties currentAlias, versionAlias, legacyIndex and test for invalid version scheme in index names

* Use CONSTANTS for constants :D

* Actions: Clarify behaviour and impact of acknowledged: false responses

* Use consistent vocabulary for action responses

* KibanaMigrator test for migrationsV2

* KibanaMigrator test for FATAL state and action exceptions in v2 migrations

* Fix ts error in test

* Refactor: split index file up into a file per model, next, types

* next: use partial application so we don't generate a nextActionMap on every call

* move logic from index.ts to migrations_state_action_machine.ts and test

* add test

* use `Root` to allow specifying oss mode

* Add fix and todo tests for reindexing with preMigrationScript

* Dump execution log of state transitions and responses if we hit FATAL

* add 7.3 xpack tests

* add 100k test data

* Reindex instead of cloning for migrations

* Skip 100k x-pack integration test

* MARK_VERSION_INDEX_READY_CONFLICT for dealing with different versions migrating in parallel

* Track elapsed time

* Fix tests

* Model: make exhaustiveness checks more explicit

* actions integration tests: add additional tests from CR

* migrations_state_action_machine fix flaky test

* Fix flaky integration test

* Reserve FATAL termination only for situations which we never can recover from such as later version already migrated the index

* Handle incompatible_mapping_exception caused by another instance

* Cleanup logging

* Fix/stabilize integration tests

* Add REINDEX_SOURCE_TO_TARGET_VERIFY step

* Strip tests archives of */.DS_Store and __MAC_OSX

* Task manager migrations: remove invalid kibana property when converting legacy indices

* Add disabled mappings for removed field in map saved object type

* verifyReindex action: use count API

* REINDEX_BLOCK_* to prevent lost deletes (needs tests)

* Split out 100k docs integration test so that it has it's own kibana process

* REINDEX_BLOCK_* action tests

* REINDEX_BLOCK_* model tests

* Include original error message when migration_state_machine throws

* Address some CR nits

* Fix TS errors

* Fix bugs

* Reindex then clone to prevent lost deletes

* Fix tests

Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	rfcs/text/0013_saved_object_migrations.md

* createRootWithCorePlugins support for cliArgs which wasn't backported to 7.x

* Attempt to stabilize cloneIndex integration tests (#86123)

* Attempt to stabilize cloneIndex integration tests

* Unskip test

* return resolves/rejects and add assertions counts to each test

* Await don't return expect promises

* Await don't return expect promises for other tests too

* Remove 8.0.0 integration test
2020-12-18 23:30:03 +01:00
Devon Thomson d20bb3d781
[Time to Visualize] Fix Dashboard OnAppLeave (#86193) (#86525)
Added isTransferInProgress to embeddable_state_transfer for apps to determine whether or not to show onAppLeave confirm
2020-12-18 17:21:05 -05:00
Constance 22a83606b3
[Enterprise Search] Basic DocumentCreation creation mode modal views (#86056) (#86498)
* Add ApiCodeExample modal component

- Previously lived in EngineOverview / Onboarding

* Add basic PasteJsonText component

* Add basic UploadJsonFile component

* [Refactor] Have all modal components manage their own ModalHeader & ModalFooters

- Per feedback from Casey
+ Update DocumentCreationModal to use switch

* Set basic empty/disabled validation on ModalFooter continue buttons

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/document_creation/creation_mode_components/api_code_example.tsx

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

* [PR feedback] Typescript improvements

* [PR feedback] Remove need for hasFile reducer

- by storing either 1 file or null
- which gets around the stored FileList reference not triggering a rerender/change

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 13:17:33 -08:00
Dan Panzarella 631fd9da50
[Security Solution] Correct Policy Config to current license level on fetch (#85206) (#86503) 2020-12-18 16:00:27 -05:00
Angela Chuang c82ee2ada2
[Security Solution] Fix 'disable usage data here.' link (#86452) (#86495)
* fix 'disable usage data here.' link

* update snapshot

* update link

* update mocks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 20:30:42 +00:00
Christiane (Tina) Heiligers 46dceb9314
[7.x] Migrates elasticsearch client in the kibana_usage_collector (#86406) (#86494) 2020-12-18 13:16:41 -07:00
Christiane (Tina) Heiligers 68f8cf8fa4
[7.x] Migrates elasticsearch client in the settings usage collector (#86397) (#86493) 2020-12-18 13:15:36 -07:00
Jonathan Budzenski 49c5aeb1dd [docs] Add kibana-encryption-keys (#84577)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 14:03:35 -06:00
Franಠ_ಠis Conil 70157ec607
Replaces GET verb with POST to match the rest of the documentation. (#85926)
Both the documentation and the code (including tests) mention this should be a POST request. 

Proposing the same changes that were proposed in https://github.com/elastic/kibana/pull/85790 for backports to 7.x releases.
2020-12-18 11:53:13 -08:00
Dario Gieselaar 2df32de3a9
[7.x] expectSnapshot: throw on CI when snapshot is new (#85376) (#86450) 2020-12-18 20:30:02 +01:00
Mike Côté 359ded6aae
Sort action type filters in alerts list and hide case action type (#86360) (#86465)
* Hide case action type from alert list action type filter

* Apply a sort as well
2020-12-18 14:06:33 -05:00
Mike Côté 0c53e55743
Changes alerting search bar to use EuiFieldSearch component (#85821) (#86463)
* Changes search bar to use search field specific eui component

* Update type checks

Co-authored-by: DeFazio <michael.defazio@elastic.co>
2020-12-18 14:06:21 -05:00
Mike Côté 8bdb87de08
Remove the wait_for refresh when partially updating the alert's execution status (#86316) (#86454)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 14:06:09 -05:00
Christos Nasikas f84854acf9
[7.x] [Security Solution][Case] Fix bug where selected connector is not displaying by default when creating a new case (#86111) (#86442)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 21:03:59 +02:00