Commit graph

1961 commits

Author SHA1 Message Date
Jonathan Budzenski a36bab718d
[7.x] Bump lmdb-store to 1.6.6 (#109939) (#110078) 2021-08-25 13:11:40 -04:00
Kibana Machine abcf965ac3
Bump apm agent versions (#109877) (#110014)
* bump nodejs agent version

* bump APM RUM agent version

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-08-25 07:14:58 -04:00
Kibana Machine 9af96a8009
[Enterprise Search] Set up cypress-axe tests (#108465) (#109920)
* Set up cypress-axe

@see https://github.com/component-driven/cypress-axe

* DRY out Kibana axe rules into constants that Cypress can use

* Create shared & configured checkA11y command

+ fix string union type error
+ remove unnecessary tsconfig exclude

* Add Overview plugin a11y tests

* Add AS & WS placeholder a11y checks

- Mostly just re-exporting the shared command and checking for failures, I only ran this after the shared axe config settings and found no failures

* Configure our axe settings further to catch best practices

- notably heading level issues (thanks Byron for catching this!)

- however I now also need to set an ignore on a duplicate landmark violation caused by the global header (not sure why it's showing up - shouldn't it be out of context? bah)

- remove option to pass args into checkA11y - I figure it's not super likely we'll need to override axe settings per-page (vs not running it), but we can pass it custom configs or args later if needed

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-08-24 21:28:49 +00:00
Kibana Machine f57fa6da17
[ML] Update API docs generation script to comply with new docs format (#109343) (#109781)
* [ML] update deps

* [ML] fix script

* [ML] add header

* [ML] generate header

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-08-24 06:21:39 -04:00
Greg Thompson 5e5c7c3de5
[7.x] Upgrade EUI to v37.3.0 (#109157) (#109691)
* Upgrade EUI to v37.3.0 (#109157)

* eui to 37.3.0

* i18n tokens

* reinstate discover_grid_flyout test

* more i18n tokens

* snapshot updates

* fix jest failures

* update cell position pattern

* clean up pattern

* buttongroup click -> change

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

* fix bad merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 15:53:08 -04:00
Alejandro Fernández Haro a02b258fbf
[7.x] Update dependency @elastic/elasticsearch to ^7.16.0-canary.1 (#109535) 2021-08-20 16:42:25 -04:00
Kibana Machine c9c53262f0
fix(heatmap): remove duplicate legend items (#109338) (#109489)
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2021-08-20 13:31:15 -04:00
Kibana Machine d178a2163a
Use https in package.json links (#109241) (#109257)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-08-19 13:06:37 -04:00
Kibana Machine 4445dd7c90
[Security Solution] - Updating UI to work with new kibana privileges abstraction on alerts (#108961) (#109156)
## Summary

Holy moly. 

What is happening in this PR? 🤷🏽‍♀️ Let's break it down:
- Added a package `@kbn/alerts` - another one?! ...yes
  - This is meant to add shared hooks and components around alerts as data
  - `useGetUserAlertsPermissions` - accepts the Kibana capabilities object and returns whether the user has `read` and `crud` alerts privileges
  - `AlertsFeatureNoPermissions` - component displayed when user does not have alerts privileges
- UI changes for user with NO alerts privileges
  - `Alerts` tab hidden in security solution side navigation
  - `Alerts` tab hidden in rule details page  
- UI changes for user with alerts READ ONLY privileges
  - alerts checkboxes hidden in alerts table
  - alerts bulk actions hidden in alerts table

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2021-08-18 17:19:37 -04:00
Mikhail Shustov 9f78d17e8f
[Elasticsearch] remove legacy es client (#107619) (#109144)
* remove legacy es client

* update docs

* uninstall elasticsearch package

* fix global_search tests

* ad-hoc fix to address bazel failure. authored by Tiago

* update docs

* remove elasticsearch import. errors are muted with @ts-ignore

* Update WORKSPACE.bazel

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

* update docs

* fix problem when dev mock already mocked client

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
# Conflicts:
#	src/core/server/elasticsearch/legacy/scoped_cluster_client.test.ts
2021-08-18 15:41:25 -04:00
Tiago Costa 7b07a2a6fe
chore(NA): bump version to 7.16.0 (#109126)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 14:59:40 -04:00
Patryk Kopyciński a69287ff58
[Cases] Add Lens markdown plugin (#96703) (#109071)
# Conflicts:
#	x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.test.tsx
#	x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.tsx
#	x-pack/plugins/observability/public/plugin.ts
2021-08-18 13:27:47 -04:00
Stratoula Kalafateli dabd88c093
Update dependency @elastic/charts to v34 (master) (#108766) (#109046)
* Update dependency @elastic/charts to v34
* tentative fix for heatmap legend items, to be fixed in patch before `7.15`

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
# Conflicts:
#	package.json
#	yarn.lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 18:38:22 +03:00
Mikhail Shustov dd33a5558e
[7.x] Update dependency @elastic/elasticsearch to ^7.15.0-canary.3 (#107536) (#108890)
* Update dependency @elastic/elasticsearch to ^8.0.0-canary.17 (#107536)

* Update dependency @elastic/elasticsearch to ^8.0.0-canary.15

* update tests for new error message building mechanism

* fix integration tests

* fix functional test

* mute new type errors

* fix new type errors

* bump es client to canaary.16

* fix integration test

* fix type errors in infra plugin

* mute type error in ml plugin

* fix type errors in monitoring plugin

* fix and mute errors in security solution plugin

* bump version to canary.18

* remove an unnecessary change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: restrry <restrry@gmail.com>

* bump to canry3

* fix another conflict

* fix another conflict in test file

* fix test. use assetion against stable parts

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 14:14:50 -04:00
Dzmitry Lemechko 2211dd921b
bumping chromedriver dep up to 92.0.1 (#108849) (#108931) 2021-08-17 13:44:36 -04:00
Kibana Machine c9b6ce5abf
Removes supertest-as-promised dependency (#100486) (#108817)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-17 03:30:08 +00:00
Nick Peihl cdc82fb7c0
[7.x] Use Elastic Maps Service 7.15 (#108751) (#108795)
* [Maps] Update to EMS v7.13 (#97732)

* Update to EMS 7.13

* Fix topojson typings

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

* fix yarn.lock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 20:55:39 -04:00
Greg Thompson dcdf872e15
Upgrade EUI to v37.1.1 (#108210) (#108740)
* eui to 37.1.0

* i18n tokens

* license checker

* disabled prop

* i18n shapshot

* date title snapshots

* date title formatting

* date title formatting

* Revert "disabled prop"

This reverts commit 68a48c4352.

* date title formatting

* eui to 37.2.0

* trial: outsideClickCloses

* Revert "trial: outsideClickCloses"

This reverts commit 4da2299e4f.

* eui to 37.1.1

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 15:46:04 -04:00
Kibana Machine 9cedaefa01
[Osquery] Add ECS mapping editor (#107706) (#108641)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-08-15 22:53:30 -04:00
CJ Cenizal d687417bc1
Add EuiCodeEditor to ES UI Shared. (#108318) (#108617)
* Export EuiCodeEditor from es_ui_shared and consume it in Grok Debugger. Remove warning from EuiCodeEditor.
* Lazy-load code editor so it doesn't bloat the EsUiShared plugin bundle.
* Refactor mocks into a shared jest_mock.tsx file.
2021-08-13 22:14:31 -04:00
Kibana Machine d4922e2354
chore(NA): upgrades bazel rules nodejs into v3.8.0 (#108471) (#108545)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-13 12:50:43 -04:00
Kibana Machine 4272b03534
Bump Node.js from version 14.17.3 to 14.17.5. (#108324) (#108489)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-08-13 09:13:19 -04:00
Kibana Machine 32ebd0af7b
[Data cleanup] unify serializable state (#107745) (#108020)
* Use Serializable from package

* Rename to align with core

* fix

* more replacements

* docssss

* fix

* Move it to @kbn/utility-types and remove core export

* buildy build

* tests

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-08-10 13:33:44 +00:00
Kibana Machine 3222a50eba
Update dependency @elastic/charts to v33.2.0 (master) (#107842) (#107845)
* Update dependency @elastic/charts to v33.2.0

* update jest snapshot

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2021-08-06 22:27:06 -04:00
Alejandro Fernández Haro 209b062454
[7.x] Disable Product check in @elastic/elasticsearch-js (#107642) (#107825)
* Disable Product check in @elastic/elasticsearch-js (#107642)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	yarn.lock

* Bump @elastic/elasticsearch-js version
2021-08-06 06:56:56 -04:00
Chandler Prall 3f60e39569
Upgrade EUI to v36.1.0 (#107231) (#107799)
* Upgrade eui to v36.1.0

* Jest snapshots

* More jest snapshots; one test assertion update

* Bump core page load limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-08-05 17:31:03 -04:00
Kibana Machine 54f986ca0c
Removes unused @babel/plugin-transform-modules-commonjs dependency (#107250) (#107707)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

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

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-04 21:17:35 -04:00
Kibana Machine 2abd99a4a3
[kbn/pm] Remove legacy build code (#107217) (#107449)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-08-02 18:08:44 -04:00
Kibana Machine 7772d75514
[data] Extract @kbn/field-types to a package (#106973) (#107276)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-30 08:58:29 -04:00
Kibana Machine 744e5b2825
Update dependency @elastic/charts to v33.1.0 (master) (#106200) (#107157)
* Update dependency @elastic/charts to v33.1.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2021-07-29 11:18:50 -04:00
Kibana Machine 8e7c5fe726
[kbn-pm] Default build and watch commands to use bazel (#105674) (#107090)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-07-28 23:04:38 +00:00
Greg Thompson ac63973ffa
Upgrade EUI to v36.0.0 (#106334) (#106893)
* eui to v36.0.0

* i18n tokens

* remove temp styled-components types

* euiemptybutton size updates

* betanotification size prop

* i18n snapshot

* functional timeout

* beta badge unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-27 23:23:57 -04:00
Kibana Machine 12dd691af6
[Graph] Remove angular from inspect panel (#106368) (#106704)
* [Discover] remove angular from inspect panel

* [Graph] remove ui-ace module import

* [Graph] remove uiace angular injected module

* [Graph] remove redundant interface

* [Graph] remove ui-ace from package.json

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

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-07-26 09:48:31 -04:00
Frank Hassanabad 94fc5d1139
[Security Solutions][Detection Engine] Creates an autocomplete package and moves duplicate code between lists and security_solution there (#105382) (#106612)
## Summary

Creates an autocomplete package from `lists` and removes duplicate code between `lists` and `security_solutions`
* Consolidates different PR's where we were changing different parts of autocomplete in different ways.
* Existing Cypress tests should cover any mistakes hopefully

Manual Testing:
* Ensure this bug does not crop up again https://github.com/elastic/kibana/pull/87004
* Make sure that the exception list autocomplete looks alright

### 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

# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
2021-07-22 20:13:58 -04:00
spalger 78b3b3b98b Revert "[i18n] [7.x] Integrate 7.14.0 Translations (#106359)"
This reverts commit 4d356ed432.
2021-07-22 13:47:56 -07:00
Ahmad Bamieh 4d356ed432
[i18n] [7.x] Integrate 7.14.0 Translations (#106359) 2021-07-22 11:41:06 -04:00
Tiago Costa a91dc36b26
chore(NA): improves @kbn/ui-shared-deps build performance (#105971) (#106472)
* chore(NA): move packages assets optimization into the distributable build

* chore(NA): include terser task on distributable build

* chore(NA): migrate everything into the build tasks

* chore(NA): update webpack config to include react profiler

* chore(NA): optional fsevents

* chore(NA): redo optional fsevents

* chore(NA): remove noparse for fsevents

* chore(NA): include missing task declaration

* chore(NA): include sourcemaps

* chore(NA): include metrics bundle file generation during distributable build

* chore(NA): correctly setup paths

* chore(NA): change sourcemap types

* chore(NA): remove useless sourcemaps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
2021-07-21 18:42:06 -04:00
Kibana Machine 2c4aaf67b6
[Es query] Move to package (#103530) (#106417)
May the forces of bootstrapping helps us 🙏🏻 😉

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-07-21 13:32:55 -04:00
Nick Partridge 73cd18968a
Update dependency @elastic/charts to v33 (master) (#105633) (#106251)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2021-07-20 11:54:22 -04:00
Marco Vettorello e68d6133b8
Update dependency @elastic/charts to v32 (#104625) (#106201)
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-20 06:06:44 -04:00
Kibana Machine 46cf13983a
chore(NA): upgrades bazel rules nodejs into v3.7.0 (#105764) (#105855)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-07-15 19:51:17 -04:00
Chandler Prall 2f7d2823e4
Upgrade EUI to v35.0.0 (#105127) (#105783)
* Bump EUI to v35.0.0, update euiContextMapping to match latest i18n tokens

* Updated i18n_service jest snapshot

* Added license override for EUI

* Attempting to clean up some forced dependency resolutions

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-15 13:17:11 -04:00
Dario Gieselaar b54873dc29
[7.x] [APM] Typed client-side routing (#104274) (#105745) 2021-07-15 10:16:44 -04:00
Greg Thompson b13e90e6d1
Enable CSS-in-JS styling with emotion (#98157) (#105223)
* emotion deps

* kbn-babel

* kbn-test

* examples

* babel-plugin-styled-components config

* css prop type fixes

* type context

* declaration location

* some emotion types resolved

* clean up

* emotion v10 accomodations

* types

* kbn-crypto

* kbn-telemetry-tools

* bazel

* eslint rule; shared file regex array

* update paths

* Update packages/kbn-eslint-plugin-eslint/rules/module_migration.js

Co-authored-by: Spencer <email@spalger.com>

* remove placeholder styles

* doc api changes

* snapshot updates

* storybook comments

* use constant

* bump new deps

* condense versions

Co-authored-by: Spencer <email@spalger.com>

Co-authored-by: Spencer <email@spalger.com>
2021-07-12 12:23:24 -04:00
Kibana Machine 8270eadc99
[Osquery] Fix 7.14 UX issues (#104257) (#105002)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-07-08 21:50:11 -04:00
Kibana Machine b5a2d7e5d5
Upgrade from Node.js v14.17.2 to v14.17.3 (#104417) (#104844)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-07-08 13:33:46 +00:00
Marco Vettorello 9fa00e5773
[7.x] [ML] Fix heatmap brush (#104455) (#104628)
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 16:35:14 +02:00
Kibana Machine eb82854b35
Upgrade nodemailer (#104122) (#104590)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-07-07 06:28:36 -04:00
Kibana Machine 25db8abcd0
Upgrade prismjs (#104131) (#104589)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-07-07 06:27:38 -04:00
Thomas Watson f5e032a5c0
Bump Node.js from version 14.17.0 to 14.17.2 (#104148) (#104195) 2021-07-01 17:44:38 -04:00
Kibana Machine 709fdf1f57
chore(NA): upgrades bazel rules nodejs into v3.6.0 (#103895) (#104041)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-30 23:03:24 -04:00
Tiago Costa 4c95673024
chore(NA): bump version to 7.15.0 (#103911)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-30 16:49:08 -04:00
Greg Thompson 6add3a0b22
eui to 34.5.2 (#103896) (#103928) 2021-06-30 14:42:49 -04:00
Kibana Machine e6c0fb691c
Update dependency @elastic/charts to v31 (#102078) (#103835)
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 05:18:08 -04:00
Kibana Machine f288e7a2f4
chore(NA): moving @kbn/es-archiver into bazel (#103770) (#103825)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-30 01:42:53 -04:00
Kibana Machine 4695120081
[packages] Migrate @kbn/test to Bazel (#103122) (#103812)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-06-30 03:21:22 +00:00
Kibana Machine 39339ddce8
chore(NA): moving @kbn/test-subj-selector into bazel (#103562) (#103668)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-29 12:18:13 -04:00
Kibana Machine 9836bc535b
Add @storybook/testing-react (#103004) (#103518)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-28 15:42:35 -04:00
Greg Thompson db2c8c3b20
Upgrade EUI to v34.5.1 (#103297) (#103509)
* eui to 34.5.0

* snapshot updates

* Fix some page layouts

* eui to 34.5.1

Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: cchaos <caroline.horn@elastic.co>
2021-06-28 14:38:59 -04:00
Kibana Machine 5b0be93cff
[App Search] Fixed Documents view for Editor and Analyst roles (#103113) (#103204)
* Updated search-ui version

1.6.0 adds the ability to authenticate without a search key, which
we need for this fix.

* Updated Documents page to not use a search key

This change updates the page to rely on basic authentication rather
than a search key.

As part of that, we needed to create a proxy endpoint for search-ui
to post to, rather than going directly to the ent-search API.

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

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-28 17:23:40 +00:00
Kibana Machine ebe1f7c95d
chore(NA): moving @kbn/spec-to-console into bazel (#103470) (#103498)
* chore(NA): moving @kbn/spec-to-console into bazel

* chore(NA): fix licenses

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-28 13:08:28 -04:00
Kibana Machine 3f7e1eb94f
Add telemetry for Elastic Cloud (#102390) (#103344)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-24 16:53:56 -04:00
Jonathan Budzenski e33c29d1b2
[7.x] [packages] Move @kbn/interpreter to Bazel (#101089) (#103308)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:29:20 -05:00
Kibana Machine 5dfb2522b4
chore(NA): moving @kbn/plugin-helpers into bazel (#103181) (#103200)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-24 06:00:55 +00:00
Kibana Machine 9fb76c68f0
chore(NA): moving @kbn/cli-dev-mode into bazel (#103067) (#103201)
* chore(NA): moving @kbn/cli-dev-mode into bazel

* chore(NA): merge and solve conflicts with master

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-24 01:58:42 -04:00
Greg Thompson e4c7b099e9
[7.x] Upgrade EUI to v34.3.0 (#101334) (#103175)
* Upgrade EUI to v34.3.0 (#101334)

* eui to v34.1.0

* styled-components types

* src snapshot updates

* x-pack snapshot updates

* eui to v34.2.0

* styled-components todo

* src snapshot updates

* x-pack snapshot updates

* jest test updates

* collapsible_nav

* Hard-code global nav width for bottom bar’s (for now)

* Update to eui v34.3.0

* flyout unmock

* src flyout snapshots

* remove duplicate euioverlaymask

* xpack flyout snapshots

* remove unused import

* sidenavprops

* attr updates

* trial: flyout ownfocus

* remove unused

* graph selector

* jest

* jest

* flyout ownFocus

* saved objects flyout

* console welcome flyout

* timeline flyout

* clean up

* visible

* colorpicker data-test-subj

* selectors

* selector

* ts

* selector

* snapshot

* Fix `use_security_solution_navigation` TS error

* cypress

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

* fix bad merge resolution

* fix bad merge resolution

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-24 01:30:59 -04:00
Xavier Mouligneau 3dc053f348
[RAC] T-Grid is moving to a new home (#100265) (#103178)
* wip

* First pass at standalone and embedded redux stores and usage

* wip

* First pass at standalone and embedded redux stores and usage

* wip

* clean up

* wip

* refact(NA): remove extra pkg_npm target and add specific target folders on @kbn/i18n

* cleanup

* - fixes type errors in tests

* WIP remove use_manage_timeline

* wip add query + selector

* finishing integrating timeline manage context from redux

* integrating t-grid in security solution

* fix RowRender type

* WIP begin to move components from package to plugin

* integration of t-grid inside of security solution

* wip to make redux work

* little trick to make  it render

* - fixes a few type errors

* better integration betwen tgrid and security solutions

* bringing back tsconfig on timeline

* wip integration t-grid in observability

* fix types

* fix type in security solutions

* add type to import + trie dto get the bundle size as small as possible

* fix type in integration test

* fix type in integration test

* - fix tests

* clean up to use technical fields

* - fixes unit tests

* - mocks the `useDateFormat` function of the `useKibana` service to fix unit tests

* fix t-grid settings vs create timeline + fix inspect button

* fix last suites test

* Update unit tests, snapshots and lint

* Fix bad merge

* fix plugin export

* Fix some failing tests

* fix unit tets in timelines plugins

* fix latest test

* fix i18n

* free obs from t-grid

* Fix timeline functional plugin types

* fix store provider

* Update failing defaultHeader test

* Fix i18n usage in security solution

* Fix remaining i18n errors in timelines plugin

* Dedupe common shared types

* move drag and drop utils in package to avoid duplication

* More shared type cleanup

* add feature flag

* review I

* fix merge  with master

* fix i18n translation

* More type deduping

* Use @kbn/common-utils, fix remaining types

* fix types

* fix tests

* missing type

* fix cypress tests

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Andrew Goldstein <andrew.goldstein@elastic.co>

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Andrew Goldstein <andrew.goldstein@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 00:46:39 -04:00
Kibana Machine 5df616f29d
chore(NA): moving @kbn/optimizer into bazel (#102965) (#103066)
* chore(NA): moving @kbn/optimizer into bazel

* chore(NA): fix source import from kbn optimizer

* chore(NA): update snapshots

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-24 03:47:24 +00:00
Tiago Costa bd884a8828
chore(NA): moving @kbn/ui-framework into bazel (#102908) (#102992)
# Conflicts:
#	x-pack/package.json
2021-06-22 17:15:46 -04:00
Kibana Machine 617538433d
remove duplicate apm-rum deps from devDeps (#102838) (#102963)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-22 14:48:23 -04:00
Thomas Neirynck a8997715b9
[Maps] bump ems client to 7.14 (#102770) (#102910) 2021-06-22 17:33:56 +02:00
Kibana Machine 1095236dd7
Upgrade apm nodejs and rum agents (#102723) (#102812)
* bump apm nodejs agent version to 3.16.0

* bump apm-rum agents

* use ApmConfigOptions exported from rum agent

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-06-21 17:54:58 -04:00
Kibana Machine 875af97828
chore(NA): moving @kbn/storybook into bazel (#102731) (#102806)
* chore(NA): moving @kbn/storybook into bazel

* chore(NA): add some typing changes

* chore(NA): rename typings file

* chore(NA): fix typescript configs to build storybooks

* chore(NA): fix eslint and typechecking

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-21 17:25:18 -04:00
Tiago Costa 3cfbe71203
[7.x] chore(NA): moving @kbn/ui-shared-deps into bazel (#101669) (#102666)
* chore(NA): moving @kbn/ui-shared-deps into bazel (#101669)

* chore(NA): moving @kbn/io-ts-utils into bazel

* chore(NA): moving @kbn/ui-shared-deps into bazel

* chore(NA): compelte working build for @kbn/ui-shared-deps

* chore(NA): solve eslint problems

* chore(NA): solve typechecking

* chore(NA): debugger changes

* chore(NA): update optimizer basic integration tests

* chore(NA): ship kbn/ui-shared-deps metrics.json from new location at shared_built_assets

* chore(NA): use correct ui-shared-deps metrics file location

* chore(NA): remove webpack bazel config

* chore(NA): implement improvements on webpack config

* chore(NA): remove extra comment

* chore(NA): try esbuild-loader minimizer

* Revert "chore(NA): try esbuild-loader minimizer"

This reverts commit bffc49aaae.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh

* chore(NA): last file containing old path for metrics.json file
2021-06-18 20:39:29 -04:00
Ryland Herrick 164ed8497d
[Security Solution] kbn package for generic hook utils (#101976) (#102539)
* Adds boilerplate for new hook-utils package

* Move existing, identified utils into our hook-utils package

Updates references, and fixes a few missing config that were preventing
packages from building.

* Extracts a common type and adds a little more JSdoc for clarity

* Adds new useObservable hook

Similar to useAsync (a nearly identical interface), this is meant to
wrap a thunk returning an observable, allowing conditional invocation
and progressive updates as the observable continues to emit.

* Remove orphaned test

This function (and its tests) were moved to the hook-utils package; this
was simply missed.

* Remove optional chaining from kbn package

The build system does not currently support these typescript features.
While a valid fix would also have been to build separate browser and
node targets a la #99390, the use here was very minimal and so changing
to a supported syntax was the most pragmatic fix.

* Update old reference in test file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-17 15:21:40 -04:00
Kibana Machine 243b167d8a
[Kuery] Move json utils (#102058) (#102365)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-16 13:24:44 -04:00
Kibana Machine 3953dc7608
[deps] update chromedriver to 91 (#102199) (#102235)
Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2021-06-15 16:22:57 -04:00
Marco Vettorello 482bf3693c
Update dependency @elastic/charts to v30.1.0 (master) (#101683) (#102157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2021-06-15 05:46:43 -04:00
Stratoula Kalafateli 815c3cee6d
[Tagcloud] Replaces current implementation with elastic-charts (#100017) (#102150)
* WIP - Replace tagcloud with es-charts wordcloud

* Cleanup and add unit tests

* Fix interpreter test

* Update all tagcloud snapshots

* Partial fix tagcloud test

* Fix some other functional tests, add migration script, update sample data

* Replace getColor with getCategorixalColor

* Fix functional test

* Apply clickhandler event for filtering by clicking the word

* Fix weight calculation

* Add a unit test and fix functional

* Change the cursor to pointer

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 04:36:41 -04:00
Kibana Machine ccc120843c
Upgrade polished dependency (1.9.23.7.2, 4.0.54.1.3). (#101719) (#102051)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-06-14 10:41:27 -04:00
Kibana Machine b99a5aa0d6
chore(NA): moving @kbn/server-route-repository into bazel (#101484) (#101834)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-09 18:45:38 -04:00
Corey Robertson 68a8af65d5
[Canvas] Switch Canvas to use React Router (#100579) (#101659)
* Switch Canvas to use React Router

* Fix typescript errors

* Remove @scant/router from package.json

* Fix tests

* Fix functional test

* Fix functional tests

* Fix bad merge in package.json

* Cleanup from code review comments

* Fix double basepath append

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-08 16:40:43 -04:00
Kibana Machine 6727afe9d1
Upgrade cheerio from v0.22.0 to v1.0.0-rc.9 (#101394) (#101622)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-06-08 13:46:59 -04:00
Pierre Gayvallet e9d67442af
Propagate request cancelation though basePath proxy (#101561) (#101618)
* bump `@hapi/h2o2` to `9.1.0`

* add unit test
2021-06-08 13:29:30 -04:00
Mikhail Shustov 100394cfb6
[7.x] Update @elastic/elasticsearch to 8.0.0-canary13 (#98266) (#101595)
* Update @elastic/elasticsearch to 8.0.0-canary13 (#98266)

* bump @elastic/elasticsearch to canary.7

* address errors in core

* address errors in data plugin

* address errors in Alerting team plugins

* remove outdated messages in Lens

* remove unnecessary comments in ML

* address errors in Observability plugin

* address errors in reporting plugin

* address errors in Rule registry plugin

* fix errors in Security plugins

* fix errors in ES-UI plugin

* remove unnecessary union.

* update core tests

* fix kbn-es-archiver

* update to canary 8

* bump to v9

* use new typings

* fix new errors in core

* fix errors in core typeings

* fix type errors in data plugin

* fix type errors in telemetray plugin

* fix data plugin tests

* fix search examples type error

* fix errors in discover plugin

* fix errors in index_pattern_management

* fix type errors in vis_type_*

* fix errors in typings/elasticsearch

* fix type errors in actions plugin

* fix type errors in alerting and apm plugins

* fix type errors in canvas and cases

* fix errors in event_log

* fix type errors in ILM and ingest_pipelines

* fix errors in lens plugin

* fix errors in lists plugin

* fix errors in logstash

* fix errors in metrics_entities

* fix errors in o11y

* fix errors in watcher

* fix errors in uptime

* fix errors in upgrade_assistant

* fix errors in task_manager

* fix errors in stack_alerts

* fix errors in security_solution

* fix errors in rule_registry

* fix errors in snapshot_restore

* fix remaining errors

* fix search intergration tests

* adjust assetion

* bump version to canary.10

* adapt code to new naming schema

* use mapping types provided by the client library

* Revert "adjust assetion"

This reverts commit 19b8fe0464.

* fix so intergration tests

* fix http integration tests

* bump version to canary 11

* fix login test

* fix http integration test

* fix apm test

* update docs

* fixing some ml types

* fix new errors in data plugin

* fix new errors in alerting plugin

* fix new errors in lists plugin

* fix new errors in reporting

* fix or mute errors in rule_registry plugin

* more ML type fixes

* bump to canary 12

* fix errors after merge conflict

* additional ML fixes

* bump to canary 13

* fix errors in apm plugin

* fix errors in fleet plugin

* fix errors in infra plugin

* fix errors in monitoring plugin

* fix errors in osquery plugin

* fix errors in security solution plugins

* fix errors in transform plugin

* Update type imports for ES

* fix errors in x-pack plugins

* fix errors in tests

* update docs

* fix errors in x-pack/test

* update error description

* fix errors after master merge

* update comment in infra plugin

* fix new errors on xpack tests/

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
# Conflicts:
#	package.json
#	src/core/server/saved_objects/migrationsv2/integration_tests/migration.test.ts
#	test/common/services/saved_object_info.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/snapshots.ts
#	yarn.lock

* revert  @ts-expect-error changes in infra plugin

* update docs
2021-06-08 12:21:59 -04:00
Marco Vettorello 770ff8c81a
Update dependency @elastic/charts to v30 (master) (#101409) (#101606)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 12:10:58 -04:00
Devon Thomson f6f02aec8d
[Dashboard] Rebuild State Management (#97941) (#101524)
* Rebuilt dashboard state management system with RTK.
2021-06-07 17:14:44 -04:00
Kibana Machine d34b639b13
chore(NA): upgrade bazel rules nodejs to v3.5.1 (#101412) (#101424)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-04 16:55:40 -04:00
Kibana Machine 32595de21b
chore(NA): moving @kbn/rule-data-utils into bazel (#101290) (#101332)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-03 18:21:30 -04:00
Tiago Costa 1972311f6f
fix(NA): windows ts_project outside sandbox compilation (#100947) (#101305)
* fix(NA): windows ts_project outside sandbox compilation adding tsconfig paths for packages

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): organizing deps on non ts_project packages

* chore(NA): change order to find @kbn packages on node_modules first

* chore(NA): add @kbn/expect typings setting on package.json

* chore(NA): fix typechecking

* chore(NA): add missing change on tsconfig file

* chore(NA): unblock windows build by not depending on the pkg_npm rule symlink in the package.json

* chore(NA): add missing depedencies on BUILD.bazel file for io-ts-list-types

* chore(NA): remove rootDirs configs

* chore(NA): change kbn/monaco targets order

* chore(NA): update kbn-monaco build

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-03 14:53:36 -04:00
Kibana Machine 067f0258cf
Bump packages (#101167) (#101303)
* Bump mini-css-extract-plugin

* Removed unused dependency

* Remove unecessary types

* Don't match _meta field

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-06-03 14:29:03 -04:00
Greg Thompson 0480fbc945
Upgrade EUI to v33.0.0 (#99382) (#101067)
* eui to 33.0.0

* resize observer type inclusion - revisit

* src snapshot updates

* x-pack snapshot updates

* table sort test updates

* code block language sh -> bash

* datagrid datetime sort inversion

* types

* kbn-crypto

* refractor yarn resolution

* refractor yarn resolution

* update cypress tests

* url state test

* trial

* Revert "trial"

This reverts commit adc3538145.

* trial anomaly timeout

* Revert "trial anomaly timeout"

This reverts commit 9a11711ba8.

* kbn-telemetry-tools

* Change a useMemo to useCallback so the code executes when intended

* Removed no-longer-used import

* exitOrFail already retries for longer than tryForTime

* Wait for loading indicator to disappear

* Intentionally adding `.only`

* Revert .only

* Increase wait time for the ML chart to load

* Remove unused var

* overflow

* chartWidth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-01 13:56:37 -04:00
Liza Katz 157e2cf140
[bfetch] compress stream chunks (#97994) (#101027)
* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* delete client side legacy msearch code

* ts

* override to sync search in search source

* delete more legacy code

* ts

* delete moarrrr

* deflate bfetch chunks

* update tests
use only zlib

* ts

* extract getInflatedResponse

* tests

* Use fflate in attempt to reduce package size

* use node streams, fflate and hex encoding.

* DISABLE_SEARCH_COMPRESSION UI Settings
Use base64 and async compression

* i18n

* Code review
Use custom header for compression
Promisify once

* use custom headers

* Update jest

* fix tests

* code review, baby!

* integration

* tests

* limit

* limit

* limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-06-01 05:13:52 -04:00
Kibana Machine 64528b1851
chore(NA): moving @kbn/io-ts-utils into bazel (#100810) (#100893)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-28 12:02:21 -04:00
Marco Vettorello 1c1f05e2d7
Update dependency @elastic/charts to v29.2.0 (#100587) (#100856)
Co-authored-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-28 08:05:58 -04:00
Kibana Machine c4ad5d86fa
[Lens] Move app state to redux toolkit (#100338) (#100851)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-05-28 05:55:40 -04:00
Kibana Machine 72e000f14e
chore(NA): moving @kbn/monaco into bazel (#100709) (#100808)
* chore(NA): moving @kbn/monaco into bazel

* chore(NA): update register globals definitions

* chore(NA): remove build script

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-27 15:51:54 -04:00
Kibana Machine 121427f75d
[Maps] Isolate mapbox-gl types and align downstream package versions. (#100610) (#100752)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-05-26 23:00:25 -04:00
Kibana Machine caa2f814a7
[Maps][Vega] Isolate mapbox-gl library into bazel package (#99931) (#100553)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-05-25 15:44:16 +00:00
Kibana Machine 8d82359c3b
[Security Solution] Utilizes constants package and deletes duplicate code (#100513) (#100520)
## Summary

Utilizes constants package and deletes duplicate code

* Renames the `securitysolution-constants` to be `securitysolution-list-constants` to be specific
* Deletes duplicated code found during cleanup
* Moves more tests into the packages found along the way with the duplicated code
* Moves `parseScheduleDates` from `@kbn/securitysolution-io-ts-types` to `@kbn/securitysolution-io-ts-utils`

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-24 22:37:30 -04:00