Commit graph

54706 commits

Author SHA1 Message Date
Jonathan Budzenski
089398b995
Bump stylelint to ^14 (#136693)
* wip

* bump

* remove removed rule

* add custom syntax

* wip

* cleanup

* fix todo from postcss upgrade
2022-07-20 10:11:00 -05:00
Kurt
e22e3a52b5
Adding deprecation warning for Interactive Users using ApiKeys (#136422)
* Adding deprecation warning for Interactive Users using ApiKeys

* Fixing unit test verbiage

* Update docs/user/security/authentication/index.asciidoc

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

* Update docs/user/security/api-keys/index.asciidoc

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

* Changing capitalization on 'keys' to avoid confusion with the UI API Keys

* Update docs/user/security/api-keys/index.asciidoc

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

* Update docs/user/security/authentication/index.asciidoc

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

* Changing the logging message and unit test descriptions based on PR review feedback

* Update x-pack/plugins/security/server/routes/analytics/authentication_type.test.ts

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Update x-pack/plugins/security/server/routes/analytics/authentication_type.ts

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Update x-pack/plugins/security/server/routes/analytics/authentication_type.ts

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Removing unnecessary whitespace

* Fixing spelling in unit test assertion

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2022-07-20 10:52:46 -04:00
Justin Kambic
26cb379a3b
Use proper header nesting. (#136559) 2022-07-20 10:30:08 -04:00
Or Ouziel
f8bc451984
[Cloud Posture] add route handler context (#134774) 2022-07-20 17:21:13 +03:00
Nick Peihl
a0df571b2c
[Maps] Add Layer types and settings UI counters (#136306)
* Layer views telemetry with ui counters

* Add telemetry for layers when opening map
2022-07-20 07:08:20 -07:00
Michael Dokolin
816264d5c4
[Reporting] Optimize images buffers handling on PDF generation (#136537)
* Bump `pdfmake` version
* Update PDF builder worker to reuse the existing image buffers
2022-07-20 16:04:41 +02:00
Nicolas Chaulet
030ff82461
[Fleet] Use same action_id for all batches in an uprade (#136663) 2022-07-20 09:31:32 -04:00
Nicolas Chaulet
e6711257ce
[Fleet] Fix edit component template without fleet datastream (#136686) 2022-07-20 09:30:36 -04:00
Dmitry Tomashevich
0c78f8a439
[Discover] Fix flattening of _source fields of objects (#136473)
- when fetching _source nested objects like obj.rootKey.subkey1, object.rootKey.subkey2 were not flattened correctly
2022-07-20 14:42:34 +02:00
Carlos Delgado
c43c8276bc
[Enterprise Search] Do not include precision in the search request when precision tuning is not enabled for an Engine (#136670) 2022-07-20 13:33:08 +02:00
Kurt
2f732ae0c3
Adding check to show/hide Avatar form based on whether the user is a … (#135743)
* Adding check to show/hide Avatar form based on whether the user is a cloud user or not

* Adding tests to verify the avatar doesnt show up in the UserProfile if the AuthorizedUser is a cloud user

* Changing the name of the link to 'Edit Profile' and making it available only for non-cloud users

* Adding/Updating unit tests and fixing translation files

* Removing unused values from FormattedText and related tests

* Updating unit test to work with merge from main

* Updating link to read Edit Profile to match wireframes per PR review

* Reverting changes to translation files and changing the cloud Edit Profile link and unit tests

* Changing capitalization of 'profile' so it follows the naming convention

* Changing nav menu logic to only render the default Edit Profile link if there is no custom Edit Profile link passed in by another plugin

* Updating logic to display custom nav links if user is a cloud user and related unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-20 07:32:14 -04:00
Byron Hulcher
46697d5ecd
Set crawler default schedule to 24 hours (#136668) 2022-07-20 13:18:43 +02:00
Byron Hulcher
aec5dc9eaf
[Enterprise Search] Remove last updated stat card from Index Detail: Overview in Content app (#136666)
* Remove last updated box from index overview

* Clean-up overview page
2022-07-20 07:14:47 -04:00
Katerina Patticha
f30cfc1cd6
[APM] Adding tech preview on Alert Tab feature (#136615)
* [APM] Adding tech preview on Alert Tab feature

* Display the icon on the right side
2022-07-20 11:44:26 +02:00
Walter Rafelsberger
092fb354ec
[ML] Explain log rate spikes: Add field histograms to analysis result. (#136295)
- Extends the analysis API to return histogram data.
- Adds a column with MiniHistogram components to the analysis results table.
- Moves/consolidates fetchHistogramsForFields to @kbn/ml-agg-utils (also used in Data Visualizer and Data Grid Mini Histograms).
- So far fetchHistogramsForFields auto-identified the necessary interval and min/max. To be able to generate histogram data for the log rate spikes charts an options was added to use that information up front for the data to be fetched. This allows the buckets for the chart data for the overall (green bars) and the field/value-filtered (orange bars) histogram to have the exact same buckets.
2022-07-20 11:44:19 +02:00
Pierre Gayvallet
5aad18fa35
Split core's server-side integration tests into multiple suites (#136539)
* move the integration test files

* create the jest config files

* fix imports

* alright.

* move remaining integration tests

* fix archive path
2022-07-20 11:24:33 +02:00
Or Ouziel
927770c157
[Cloud Posture] use benchmark id in rule config updates (#136270) 2022-07-20 11:56:14 +03:00
Cristina Amico
8c239088e0
[Fleet] Enforce unique names on download binary sources (#136648)
* [Fleet] Enforce unique names on download binary sources

* Add new SO to plugin.ts for privileges handling
2022-07-20 10:29:06 +02:00
Pierre Gayvallet
3508350446
Migrate server-side ES domain to packages (#136297)
* create es types package

* start moving client types to @kbn/core-elasticsearch-server

* move ElasticsearchClientConfig to package

* start adapting usages

* start fixing imports

* fix more imports

* just a bit more

* move service types

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix more internal types

* move retry call cluster helpers outside of client package

* move client code and mocks to packages

* fix imports

* adapt external usages

* adapt more external usages

* adapt more external usages 2

* fix mocked module

* create empty domain packages

* more external usages fix

* move ALL the things (again)

* mock external import fix

* fix tests, add test dependencies

* fix some internal usages

* fix more internal usages

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix cli_setup usage

* desperate times force desperate decisions

* fix misc stuff

* update snapshots (?!)

* fix mocked package

* self review

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-20 10:07:48 +02:00
Julia Rechkunova
42f2bc28c7
[Discover] Fix visibility of saved search grids when one of them is in fullscreen mode (#136198) 2022-07-20 09:27:22 +02:00
Julia Bardi
1716b71051
wrapping long tags on agent details page (#136656) 2022-07-20 09:14:50 +02:00
Yaroslav Kuznietsov
049da5ab54
[Dashboard] Fixes Close drilldown flyouts when navigating to dashboard landing page. (#136556) 2022-07-20 09:08:46 +03:00
Yaroslav Kuznietsov
1055b7eea1
[Dashboard] [Canvas] Added await isEditable handling. (#136607)
* Added await for `isEditable` in top_nav EditorMenu.

* Added await for `isEditable` in top_nav EditorMenu at Canvas.
2022-07-20 09:07:14 +03:00
John Dorlus
c652cb4424
Migrate dashboard tests to use UI settings (#136585)
* Updated test to use uiSettings.

* Unskipped embeddable rendering testg.

* Removed timepicker reference that is unused.

* Removed comment of flaky test.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-20 01:03:34 -04:00
Kibana Machine
9db0728650
[api-docs] Daily api_docs build (#136701) 2022-07-20 14:16:45 +09:30
Marshall Main
aaa3107dbc
[Security Solution][Alerts] Detection engine wildcard exceptions (#136147)
* Implement wildcard exceptions for detection rules

* Fix index pattern retrieval on edit exceptions flyout

* Fix API integration test logic

* Fix entry_renderer linting

* Remove bad fix idea

* Add 'does not match' operator to UI

* Fix test

* Add unit tests

* Add wildcard exceptions to list of DE exception operators

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 15:03:47 -07:00
Tim Sullivan
17b7cd75c7
[Reporting] Unskip flaky png visual match test again (#136483)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-20 00:00:37 +02:00
Tim Sullivan
a2c3323162
[Data Views] Remove remaining "any" usage (#136343)
* fix some any

* remove some any

* fix some any in saved_objects_client_wrapper

* fix some any in common/types

* remove some any from flattenHit and getFields*

* fix more any

* remove "any" in code comments

* fix types

* test commit

* fix ts

* fix types

* remove more any

* simplify / comment

* more simplification

* fix test

* export public APIs

* add fixme comment

* cleanup

* improve documentation and types for RollupIndexCapability

* simplify shortenDottedString

* fix jest test

* use AggregationRestrictions

* fix downstream types

* simplify

* add comments for public api items

* add ts-expect-error in lens integration toJSON

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-07-19 13:28:21 -07:00
Corey Robertson
f128db1d30
[Canvas] Switch from style-it to emotion (#114393)
* Switch from style-it to emotion and remove style-it library

Co-authored-by: spalger <spencer@elastic.co>
Co-authored-by: Devon A Thomson <devon.thomson@elastic.co>
2022-07-19 16:19:33 -04:00
Tiago Costa
5644e20478
skip flaky suite (#136679) 2022-07-19 21:08:27 +01:00
Cauê Marcondes
bca30a8e6e
[APM] Breadcrumbs not updating from service jump on service map (#136144)
* invalidating useEffect to update breadcrumbs

* removing useEffect

* removing callback function

* adding callback

* adding usEffect

* fixing

* adding fnDeps param

* addressing pr comments

* addressing pr comments
2022-07-19 15:57:38 -04:00
Tiago Costa
8c844d8b49
skip flaky suite (#136152) 2022-07-19 20:25:27 +01:00
Angela Chuang
5fd5b272a1
Refactoring network TLS to use useSearchStrategy (#136187)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 20:12:23 +01:00
Jonathan Budzenski
88d64408c9
Bump postcss to ^8 (#136303)
* Bump postcss to ^8

* fixes

* fix config path

* fix path

* cleanup
2022-07-19 14:06:20 -05:00
Angela Chuang
4a06e45c2d
Refactoring overview network to use useSearchStrategy (#136212)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 19:29:32 +01:00
Kyle Pollich
f8629436fd
[Fleet] Fleet Server flyout fixes (#136566)
* Go to Fleet mode when continue enrolling is selected

Fixes #136080

* Fix max width in Fleet Server flyout

Fixes #136079

* Use fleet mode when fleet server ready, standalone mode otherwise per PR feedback
2022-07-19 11:14:51 -07:00
Cristina Amico
ef3213a34e
[Fleet] Use checkmark icon in download sources table to indicate default entry (#136660) 2022-07-19 10:14:12 -07:00
renovate[bot]
d5c41569cd
Update dependency elastic-apm-node to ^3.37.0 (#136657)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-19 09:55:07 -07:00
Shahzad
623365765a
[User Experience App] Fix kibana context usage (#136611) 2022-07-19 18:38:05 +02:00
Angela Chuang
17cf8108ef
Refactoring network users to use useSearchStrategy (#136204)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 17:33:13 +01:00
Jiawei Wu
09872f071c
[RAM] Refactor: move shareable component sandbox to its own plugin (#134611)
* Move shareable component sandbox to its own plugin

* Add newline and fix test

* disable lint for no-default-export on example tests

* Fix lint

* Address feedback

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 09:30:11 -07:00
Walter Rafelsberger
b264dbcb0a
[ML] Explain log rate spikes: Fix hooks caching. (#136645)
Fixes issues where hooks would return stale data (index pattern, time ranges, total docs etc.).
2022-07-19 18:17:38 +02:00
Hannah Mudge
b31b076b07
[Dashboard] Fix z-index of embPanel__header--floater (#136463)
* Remove panel wrapper element

* Fix functional tests to work without wrapper

* Remove duplicated code

* Re-add classes to right-justify in view mode

* Apply high z-index to children of floating header rather than parent
2022-07-19 18:15:31 +02:00
Julia Bardi
68cb7fb680
[Fleet] skip loading agents when in progress (#136624)
* skip loading agents when in progress

* added unit test

* added comment
2022-07-19 09:11:49 -07:00
Tiago Costa
302bd423f3
chore(NA): eslint rule for disallowing naked eslint-disable (#136408)
* chore(NA): eslint rule for disallowing naked eslint-disable

* chore(NA): export new rule and update docs

* chore(NA): creation of rule in ts

* chore(NA): new corrected rule in ts

* refact(NA): remove old logic from older plugin

* docs(NA): update documentation

* docs(NA): update documentation

* docs(NA): update documentation

* refact(NA): include edge cases for better locating errors

* chore(NA): changed regex name

* docs(NA): correct name rule on docs

* refact(NA): use dedent in the template literals

* refact(NA): check for undefined

* fix(NA): introduces support for eslint-disable-line

* chore(NA): fix extra space

* test(NA): created more test cases

* chore(NA): rename plugin to eslint-plugin-disable

* docs(NA): update nav and operations landing page ids for eslint rule

* test(NA): use messageIds on test

* chore(NA): complete naked eslint disables with specific rules

* chore(NA): specific rules for a few naked eslint disable

* chore(NA): add focused eslint disable on big reindex_operation_with_large_error_message.ts file

* chore(NA): changes according PR feedback

* chore(NA): include specific eslint rules on latest naked eslint disable

* chore(NA): missing eslint disable specific rule

* fix(NA): remove comment for js annotator

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

* chore(NA): re add eslint focused disable rule to x-pack/plugins/osquery/cypress/support/coverage.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 17:11:04 +01:00
Paul Tavares
1aef76b7e2
[Security Solution][Endpoint] Enable Response Action feature flag by default (#136641) 2022-07-19 09:06:12 -07:00
Michael Dokolin
b16577e3f1
[Embeddable] Add storybook stories for the embeddable components (#135904)
* Update embeddable panel not to require actions getter
* Add embeddable panel stories
* Add embeddable root stories
* Add error embeddable stories
2022-07-19 17:52:19 +02:00
Aurélien FOUCRET
8fa849d243
[BYOEI][Nested objects] Search result settings UI (#136599)
* - Filters out nested objects
- Uses AdvancedSchema instead of Schema in ResultSettingsLogic

* Disable snippet on nested object subfields.

* Refactor the way valid fields are filtered.

* Code cleaning.

* Adding some tests.

* Lint fixes.

* Style fix.

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 17:43:38 +02:00
Alexey Antonov
9a1f447114
[Lens] Vis types based on elastic-charts do not re-render after erroring out once (#136478)
* [Lens] Vis types based on elastic-charts do not re-render after erroring out once

Closes: #136416

* update fix

* fix PR comments

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 08:30:30 -07:00
Søren Louv-Jansen
a5a9be439a
Bump backport v8.9.2 (#136620) 2022-07-19 10:29:55 -05:00