Commit graph

41677 commits

Author SHA1 Message Date
Pierre Gayvallet ddac0e9501
add per space configuration to custom header banner (#94449)
* restore the banners ui settings

* fix banner init logic

* fix unit tests

* update telemetry schema

* add basic server-side plugin tests

* add FTR tests for banners plugin

* use keyword for sensitive setting

* update snapshots

* setting name consistency with configuration properties

* fix setting names in telemetry files

* open banner links in new tab

* add config.disableSpaceBanners property

* fix types

* add descriptions to banner settings

* change label and value header->top

* finishing header->top replacement

* doc nits

* add banners section to advanced options doc

* feedback on advanced options doc

* adapt deprecation to new format
2021-03-31 10:57:06 +02:00
Yulia Čech ae1014bdd8
[ILM] Integer validator for timing and rollover fields (#95438)
* Added decimals validation for phase timing field and rollover age and docs number fields

* Refactored min age field validator

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 10:45:15 +02:00
István Zoltán Szabó e5e68ecff1
[ML] Clarifies label vs class terminology in DFA UI text. (#95770) 2021-03-31 10:17:35 +02:00
Bryan Clement e365396810
[Asset Management] Osquery agent picker (#94541)
* first pass of osquery host picker

* passes type checking and linting

* reworked everything

* fixed the policy query and pill colors

* fix i18n test failures

* refactor server side logic

* more clean up

* address pr comments

* fix types, await the parsed agents on the server side

* primitive is spelled with an i

* agents come in as list rather than agents

* added more helpers tests, added some edge case guarding

* unwrap agents off response in useAllAgents

* used proper types for aggregations

* translations for more ui text

* fix linting errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 04:13:19 -04:00
Jean-Louis Leysens 97c96104b9
[Ingest pipelines] Prepare processors editor for EUI v8 (Amsterdam theme) (#95310)
* remove shadows from eui panel at all levels

* added "hasBorder" to support nested panels

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 10:06:19 +02:00
Tiago Costa 50313f75f6
chore(NA): enable preserve symlinks for ts without breaking packages development (#95433)
* chore(NA): move elastic-datemath into a ts package

* chore(NA): finish elastic-datemath

* chore(NA): finish elastic-datemath

* chore(NA): source folder for elastic-datemath

* chore(NA): add source-maps ace, analytics, apm-config-loader and apm-utils packages

* chore(NA): add sourcemaps to packages on typescript

* chore(NA): move test fixtures within source

* chore(NA): correct exclusions on packages

* chore(NA): correct package.json on all packages

* chore(NA): correct package.json on all packages

* chore(NA): complete kbn pm

* chore(NA): default export on elastic-datemath

* chore(NA): include logs on kbn-logging

* chore(NA): update bundle ref module to last code used in the webpack upstream

* chore(NA): update bundle ref module to last code used in the webpack upstream - refactored

* chore(NA): remove override method for exportsArgument

* fix(NA): typechecking problems by use @internal at javascript import sources on kbn-test package

* fix(NA): typescript projects check

* fix(NA): run optimizer integration tests from source

* chore(NA): fix usage from target for kbn optimizer

* chore(NA): path on tsconfig

* chore(NA): move tsignore into ts-expect-error

* chore(NA): include souce maps on kbn cli dev

* chore(NA): include souce maps on kbn-crypto, kbn-server-http-tools and kbn-telemetry-tools

* chore(NA): add issue links into the ts-expect-error comments
2021-03-31 00:02:22 +01:00
Spencer c35ef75dbb
[cli-dev-mode] complete shutdown once devServer stops gracefully (#95822)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 15:57:10 -07:00
Tyler Smalley 46c93b16bb
[Github] Add automation for needs-team label (#95728)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-03-30 15:51:23 -07:00
Spencer 2010f4eba1
[cli-dev-mode/optimizer] omit pageLoadAssetSizeLimit from cache (#95826)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-30 18:08:12 -04:00
Quynh Nguyen cd4483f391
[ML] Fix runtime type import from data/common (#95841) 2021-03-30 16:58:31 -05:00
Jason Stoltzfus 80a19a86d7
[App Search] Result settings form (#95462) 2021-03-30 17:07:16 -04:00
Kaarina Tungseth 6ee85e8835
[DOCS] Adds release-note:feature label (#91734)
* [DOCS] Adds release-note:feature label

* Update docs/developer/contributing/index.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/developer/contributing/index.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/developer/contributing/index.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-03-30 15:33:45 -05:00
Quynh Nguyen a1bc9a57bd
[ML] Fix Anomaly Detection wizard full time range chart blank with saved search containing runtime fields (#95700)
* [ML] Fix AD wizard full time range chart broken with saved search

* [ML] Update runtimeMappingsSchema to be its own thing for better reuse

* [ML] Remove undefined check
2021-03-30 14:35:23 -05:00
Bryan Clement d6370f4e51
updated osquery autocomplete to v4.7.0 schema (#95741)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 12:09:23 -07:00
Kevin Logan 9c21f41da9
add linux and mac diagnostics switches (#95819)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 14:52:02 -04:00
Constance 53d4fa7052
[App Search] API logs: Server route + ApiLogsLogic + useEffects (#95732)
* Set up API route

* Set up API types

* Set up date util needed by filters dates

* Add ApiLogsLogic

* Update ApiLogs and EngineOverview views with polling behavior

* Add API type notes - maybe serves as a TODO to clean up our API data some day
2021-03-30 14:35:54 -04:00
Devon Thomson 738425932f
added submit to customize panel modal so that enter button works (#95704) 2021-03-30 14:26:03 -04:00
Angela Chuang f21417660a
[SecuritySolution] Reorganize files for timeline / notes / pinnedEvents (#94358)
* re-organize files

* fix unit tests

* fix unit test

* fix types

* fix types

* fix unit test

* reorganize files

* update dependency

* fix unit test

* rename filders

* unit test

* update prepackaged timelines path

* fix integration tests

* check if lastSeen is an array

* rename Note to Notes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 14:20:46 -04:00
Pierre Gayvallet 34b021c4fe
use correct config prefix for server config (#95792) 2021-03-30 18:43:59 +02:00
Diana Derevyankina 78b16fd5d3
[TSVB] Show an indicator when using Last Value mode (#91977)
* [TSVB] Show an indicator when using Last Value mode

* Extended some TSVB types, remove unused translations and do some refactoring

* Fix some functional tests and label displaying for Last value

* Fix some functional tests and label displaying for Last value

* Refactor data_time_range_mode_label and change some types

* fix CI

* Refactor timeseries_visualization seriesData

* Remove unused re export

* Replace "href" prop with "onClick" in EuiLink and refactor tooltip content

* Change link to text and add pointer style to it

* FIx import in kibana_framework_adapter

* Remove label for entire time range mode and add an icon for last value mode label

* Add action to show last value label for TSVB embeddables

* Fix TimeseriesVisParams import

* Revert "Add action to show last value label for TSVB embeddables"

This reverts commit 15f16d6f72.

* Put the "Last value" badge on the top of visualization and add an option to hide it

* Fix failing _tsvb_markdown test and refactor timeseries_visualization

* Move I18nProvider frim timeseries_visualization to timeseries_vis_renderer

* Add condition to hide gear button when entire time range mode is enabled, fix gauge scroll issue

* Change text in the popover, add condition to indicator if series data is empty, create migration script to hide last value label for previously created visualizations and a test for that

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 19:41:52 +03:00
Ahmad Bamieh a67aa97989
[Core] create deprecations service (#94845)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 19:20:23 +03:00
Joe Reuter ceb4c9a160
do not re-render embeddable so often (#95653) 2021-03-30 18:01:41 +02:00
Shahzad a154d92d6f
update mock and types (#95771) 2021-03-30 17:51:52 +02:00
Paul Tavares c8bc57257b
[FLEET][Artifacts] Use artifact information to generate a unique ID when creating a new Artifact (#95705)
* Change id generation for artifact create
2021-03-30 11:50:54 -04:00
Aleksandr Maus 1bfa719d29
Disable indexing for .fleet-agents action_seq_no field (#95584)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 11:40:07 -04:00
Christiane (Tina) Heiligers d29abdfa15
[DOCS] Adds user-facing docs for the new KP logging configuration (#94993)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-03-30 07:54:15 -07:00
renovate[bot] 47761eed5d
Update vega related modules (master) (#92651)
* Update vega and vega-lite

* Update specs for vega-lite

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-03-30 17:27:33 +03:00
David Sánchez 1f033f3786
[Security Solution] User can filter Trusted Applications by Hash, Path, Signer, or Trusted App name (#95532)
* Allows filter param. Empty by default

* Uses KQL for filter from Ui

* Adds search bar to dispatch trusted apps search. Fixes some type errors. Added filter into the list View state

* Fix tests and added a new one. Also split query on array to improve readability

* Decouple query parser to be used outside the middleware

* Reuse code using a map

* Filter by term using wildcards. Updates test

* Adds useCallback to memoize function
2021-03-30 16:09:34 +02:00
Jonathan Budzenski 36e567b858
[optimizer] Compress sass assets in production (#94846)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 09:06:27 -05:00
Nathan Reese 81b46931f8
[file_upload] add has_import_permission route (#95190)
* [file_upload] add has_import_permission route

* remove ml hasImportPermissions

* fix tsconfig path

* tslint

* review feedback

* make pipeline check optional since geojson upload does not use pipeline

* ts cleanup

* make geojson permission failure message actionable

* revert privilege change in functional test

* add global_index_pattern_management_all permission to functional test

* rename hasPipeline to checkHasManagePipeline

* add api integration test

* tslint

* revert change to es_search_source

* simpilify error message when users can't create index pattern

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 07:48:07 -06:00
Shahzad 9d8a2f183e
[Lens] Expose events from lens for lens embeddable (#94670)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 15:19:35 +02:00
Scotty Bollinger c6b37dec70
[Workplace Search] Add download diagnostics button to source settings (#95726)
* Add routes

* Add button to UI
2021-03-30 10:07:58 -03:00
Tiago Costa 01bf004193
skip flaky suite (#95707) 2021-03-30 14:01:07 +01:00
Mike Côté 3abb79a179
Create new alerting HTTP APIs that use the new terminology (#93977)
* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Create new rule HTTP APIs (#93980)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Add necessary files

* Create rule route

* Get rule API

* Update rule API

* Delete rule route

* Aggregate rules API

* Disable rule API

* Enable rule API

* Find rules API

* Fix Update API

* Get rule alert summary API

* Get rule state API

* Health API

* Rule types API

* Mute all API

* Mute alert API

* Unmute all API

* Unmute alert route

* Update API key API

* corrected tpye by making it much more complicated

* removed unneeded cocde

* Fixes

* Add back health route

* mutedInstanceIds -> mutedAlertIds

* lastRun -> last_run

* alert_type_state -> rule_type_state & alert_instances -> alerts

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* Create docs for new rule HTTP APIs, deprecate old docs (#94745)

* Create docs for new APIs, deprecate old docs

* Remove connector_type_id

* Update docs

* Add link to legacy APIs from rules API docs

* Remove connector_type_id references

* [DOCS] Add legacy APIs to index.asciidoc

* Fix camel case

Co-authored-by: lcawl <lcawley@elastic.co>

* Make alerting tests use new rules APIs (#95159)

* Make API integration tests use new HTTP APIs

* Fix end to end tests

* Fix test failures

* Fix more test failures

* Rename some files

* Add tests for legacy APIs (#95333)

* Initial commit (#95457)

* Move some new alerting APIs to /internal (#95461)

* Initial commit

* Update README.md

* Use internal API

* Merge deprecated warning w/ alternative solution

* Update API docs

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2021-03-30 08:27:28 -04:00
Liza Katz b58dd3efe8
[Sessions] Extract search abort controllers logic into a separate class (#95688)
* simplify abort controller logic and extract it into a class

* docs

* delete unused tests

* code review

* code review

* code review
2021-03-30 15:24:30 +03:00
Robert Oskamp 907b5c860d
Update CODEOWNERS for ml-ui (#95773) 2021-03-30 13:40:31 +02:00
Pierre Gayvallet 265cc76247
Remove core->cli dependency (#95145)
* extract http_tools to package

* fix readme

* start moving stuff

* cleaning up `isDevCliParent`

* choose bootstrap script

* fix bootstrap script logic

* fix watch paths logic

* import REPO_ROOT from correct package

* create the @kbn/crypto package

* update core's `dev` config

* only export bootstrap function

* extract sslConfig to http-tools package

* fix core types

* fix optimizer tests

* fix cli_dev_mode tests

* fix basePath proxy tests

* update generated doc

* fix unit tests

* create @kbn/dev-cli-mode package

* remove useless comment

* self-review NITS

* update CODEOWNERS file

* add devOnly flag

* use variable for DEV_MODE_PATH

* review comments

* fix logger/log adapter

* fix log calls in base path proxy server

* address some review comments

* rename @kbn/http-tools to @kbn/server-http-tools

* more review comments

* move test to correct file

* add comment on getBootstrapScript

* fix lint

* lint

* add cli-dev-mode to eslint dev packages

* review comments

* update yarn.lock

* Revert "[ci] skip building ts refs when not necessary (#95739)"

This reverts commit e46a74f7
2021-03-30 13:39:32 +02:00
Byron Hulcher e91d0d4a76
[App Search] Add a Sample Engine CTA panel to the engines table when empty (#94647)
* Added new onboarding complete route for App Search

* Allow responses without JSON bodies in Enterprise Search

* New SampleEngineCreationCtaLogic

* New SampleEngineCreationCta component

* Add SampleEngineCreationCTA to engines EmptyState

* Improve SampleEngineCreationCta

* Fix spelling error in Enterprise Search request handler test

* Improve SampleEngineCreationCtaLogic

* Fix types

* Fix tests after origin/master merge

* Turns out I 'fixed' my tests by removing this test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 06:49:02 -04:00
Mikhail Shustov 5b6927863a
Better error serialization for error provided to HTTP response factory (#95671)
* pass error reason for ES responses provided in HTTP response body

* add a test

* ML: update functional tests when index does not exist

* transform: fix integration test for error message
2021-03-30 12:46:17 +02:00
Matthias Wilhelm 58a6757d7d
[Discover] Improve sidebar rendering for large field lists (#95038)
* 50 fields are rendered initially, more fields are rendered while user is scrolling

* This is a big performance improvement when there are lots of fields to render
2021-03-30 12:31:16 +02:00
Rudolf Meijering 11f84bb61b
More detailed instructions for deleting corrupt saved object documents (#95046)
* More detailed instructions for deleting corrupt saved object documents

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>

Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>
2021-03-30 12:28:56 +02:00
Angela Chuang 643760dfec
[SecuritySolution] Unskip uncommon_processes·ts (#95343)
* wrap with retry

* wrap with retry

* wrap tests with retry

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 11:20:52 +01:00
David Sánchez 41e247f29f
Fix unit test. Get rid of snapshots and use query element instead (#95656) 2021-03-30 12:12:33 +02:00
Alejandro Fernández Gómez 9931b8bc1d
[Fleet] Expose permissions as part of the agent policy (#94591) 2021-03-30 11:46:41 +02:00
Mikhail Shustov f7caefd13a
export type and runtme code separation (#95320)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 05:09:41 -04:00
Pierre Gayvallet cd703c0c89
Revert "[ci] skip building ts refs when not necessary (#95739)" (#95746)
This reverts commit e46a74f7
2021-03-30 01:56:29 -07:00
Robert Oskamp 3e4af77d5a
[ML] Functional tests - stabilize anomaly explorer tests for slow network (#95628)
This PR stabilizes the ML anomaly explorer functional tests for slow network environments.
2021-03-30 10:51:00 +02:00
Spencer e46a74f757
[ci] skip building ts refs when not necessary (#95739)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-30 00:52:13 -04:00
Tiago Costa edbb989dec
skip flaky suite (#95642) 2021-03-30 03:38:57 +01:00
James Rucker 4c89da2b45
[Workplace Search] Send kibana_host when calling /reauth_prepare (#95529)
* WIP almost there?

* Fix server route validation

* fix account route

* Fix test expectations

Co-authored-by: scottybollinger <scotty.bollinger@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 21:49:16 -04:00