Commit graph

1259 commits

Author SHA1 Message Date
Luke Elmers
6582eaa0a7
[7.x] Fix issue where logs fail to calculate size of gunzip streams. (#90353) (#90431) 2021-02-05 09:59:09 -07:00
Luke Elmers
f9b2ad1291
[7.x] [core.logging] Add response logs to the KP logging system. (#87939) (#90280) 2021-02-04 09:19:31 -07:00
Spencer
a3b55577b1
[kbn/es] avoid splitting string esArgs into separate args (#90253) (#90257)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-02-03 23:52:51 -07:00
Tiago Costa
80b018e6e8
chore(NA): support bazel and kbn packages in parallel on kbn pm and on distributable build scripts (#89961) (#90256)
* chore(NA): bazel projects support initial flag on kbn pm

* chore(NA): every needed step to build production bazel packages except the final function

* chore(NA): include build bazel production projects on kibana distributable build

* chore(NA): support bazel packages when creating the package.json

* chore(NA): including last changes on kbn pm and build distributable to support both bazel and kbn packages

* chore(NA): missing annotation on build bazel packages

* chore(NA): changed values on bazelrc common

* chore(NA): fix bazel common rc

* chore(NA): auto discovery if a kbn package is a Bazel package

* chore(NA): last details to make bazel packages to built on distributable scripts

* chore(NA): removed wrongly added line to x-pack package.json

* chore(NA): apply correct formating

* chore(NA): move into bazel bin

* chore(NA): merge chnages on kbn pm

* chore(NA): correctly setup ignore files for new bazel aggregated folder

* chore(NA): merge with last master

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 22:33:49 -08:00
Spencer
45b8aa15b7
[7.x] [esArchiver] log when migrations complete and we're done loading data (#89938) (#90249)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 22:01:39 -07:00
Spencer
0058016c65
remove accidental license header from vendored code (#90219) (#90231)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 21:54:03 -07:00
Brandon Kobel
57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
Tiago Costa
1c6adb44e5
[7.x] chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597) (#90244)
* chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597)

* chore(NA): introduce new yarn kbn destroy command to support bazel workflow

* chore(NA): update wording for new kbn pm changes

* chore(NA): update .bazelrc.common

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update .bazelrc

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): rename destroy command into reset

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): restore old behaviour on kbn clean

* chore(NA): update reset command to delete bazel caches on disk

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update prefix to match bazel defined one for cache settings

* chore(NA): update kbn pm dist file

* chore(NA): update kbn pm dist

* chore(NA): update gitignore

* chore(NA): add new ignore files after changed bazel aggregated folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js

* chore(NA): update changes on kbm pm

* chore(NA): fix jest test
2021-02-04 00:00:12 +00:00
Spencer
fda988bb69
[7.x] [npm] upgrade mocha (#90188) (#90226)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2021-02-03 15:04:22 -07:00
igoristic
1bc6c1c0f3
[Monitoring][Alerting] Large shard alert (#89410) (#90197)
* Shards alert draft

* Added index pattern validation

* Fixed ui/ux

* Optimizing the response

* CR feedback

* import fix

* Increased size limit
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/monitoring/public/components/elasticsearch/index/advanced.js
2021-02-03 16:59:37 -05:00
Tiago Costa
c08c371482
chore(NA): remove yarn extra options from kbn bootstrap (#90098) (#90202)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 19:54:48 +00:00
Dario Gieselaar
bde1b77dac
[7.x] decorate_snapshot_ui: ensure snapshots are saved (#89694) (#90144) 2021-02-03 19:41:24 +01:00
Spencer
b4de7f47a5
[esArchiver] upgrade to new ES client (#89874) (#90109)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 19:21:29 -07:00
Brian Seeders
f3d24a5404
[CI] Remove TeamCity code (#90041) (#90095) 2021-02-02 20:23:18 -05:00
Alejandro Fernández Gómez
5e238e25fa
[7.x] [Logs UI] <LogStream /> as a kibana embeddable (#88618) (#89871)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 15:58:34 +01:00
Christos Nasikas
669dbc5a3c
[7.x] [Alerts] ServiceNow SIR Connector (#88190) (#89982)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-02-02 14:15:38 +02:00
Tiago Costa
7f6a18b350
chore(NA): improve logic check when installing Bazel tools (#89634) (#89984)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 11:44:18 +00:00
Patrick Mueller
7c9028ac08
[data] change KQL node builder to not generate recursive and/or clauses (#89345) (#89890)
resolves https://github.com/elastic/kibana/issues/88367

Prior to this PR, the KQL node_builder code was using recursion to generate
"and" & "or" expressions.  Eg, `and(foo1=bar1, foo2=bar2, foo3=bar3)` would
be generated as if was specified as `and(foo1=bar1, and(foo2=bar2, foo3=bar3))`.

Calls to the builder with long lists of expressions would generate nested JSON
as deep as the lists are long.  This is problematic, as Elasticsearch is
changing the default limit on nested bools to 20 levels, and alerting already
generates nested bools greater than that limit.
See: https://github.com/elastic/elasticsearch/issues/55303

This PR changes the generated shape of above, so that all the nodes are at the
same level, instead of the previous "recursive" treatment.
2021-02-01 14:31:50 -05:00
Wylie Conlon
abc5b82d40
Tinymath is now a Kibana package (#89383) (#89621)
* Tinymath is now a Kibana package

* Rename to @kbn/tinymath

* Update import style

* Update README

* Use commonjs import syntax

* Fix to commonjs export

* More commonjs fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-30 07:36:24 -05:00
Brandon Kobel
11d44318c8
Fix error thrown when Kibana is sent a SIGHUP to reload logging config (#89218) (#89771)
* Fix error thrown when Kibana is sent a SIGHUP to reload logging config

* Adding a simple unit test to catch a future regression

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 12:46:34 -08:00
Spencer
30efb21112
[7.x] [kbn/pm] throw an error if package doesn't have a script (#89438) (#89462)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 11:48:28 -07:00
Brian Seeders
d2eaedcdab
[kbn-es] Always use bundled JDK when starting Elasticsearch (#89437) (#89491) 2021-01-29 12:01:49 -05:00
Alejandro Fernández Haro
ed12ebbc9c
[7.x] @kbn/telemetry-tools: Better CI error message (#89688) (#89727) 2021-01-29 16:48:02 +00:00
Ahmad Bamieh
0de43faef0
[7.x] [Telemetry] Settings Collector: redact sensitive reported values (#88675) (#89434)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 13:42:38 +02:00
Jonathan Budzenski
c2163a5675 Revert "[7.x] [CI] Combines Jest test jobs (#85850) (#89432)"
This reverts commit e36dfcd49f.
2021-01-28 12:17:22 -06:00
Pierre Gayvallet
c7b900bc1a
add synchronous config access API (#88981) (#89542)
* add synchronous config accessor

* add `config.get` to plugin context and add tsdoc

* remove useless markAsHandled calls

* fix mocks

* update generated docs

* fix unit tests

* add sync accessor for legacy config
2021-01-28 13:51:46 +01:00
Patryk Kopyciński
2f06b32f11
[Security Solution] Init Osquery plugin (#87109) (#89527) 2021-01-28 10:33:33 +01:00
Tiago Costa
228666c209
chore(NA): bazel machinery installation on kbn bootstrap (#89469) (#89521)
* chore(NA): bazel machinery installation on kbn bootstrap

* refact(NA): simplify install logic

* chore(NA): update kbn pm with last changes
2021-01-28 02:42:44 +00:00
Tyler Smalley
e36dfcd49f
[7.x] [CI] Combines Jest test jobs (#85850) (#89432)
* [CI] Combines Jest test jobs (#85850)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	jest.config.oss.js
#	src/dev/code_coverage/shell_scripts/extract_archives.sh
#	test/scripts/jenkins_unit.sh
#	test/scripts/jenkins_xpack.sh
#	vars/kibanaCoverage.groovy
#	x-pack/jest.config.js

* [CI] Decrease number of Jest workers

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 16:16:22 -08:00
Christiane (Tina) Heiligers
e12ccd4ee4
[7.x] [core.logging] Add ops logs to the KP logging system (#88070) (#89419)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 10:26:03 -07:00
Stratoula Kalafateli
ddc205821a
[7.x] Cleanup OSS code from visualizations wizard (#89092) (#89409)
* Cleanup OSS code from visualizations wizard (#89092)

* Cleanup OSS code from visualizations wizard

* Remove unecessary translations

* Remove unused translation

* Fix functional test

* Disable the functional test for OSS

* Remove from oss correctly :D

* Fix ci
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	packages/kbn-optimizer/limits.yml

* fix plugin list docs

* Change plugins docs list
2021-01-27 16:01:23 +02:00
Dario Gieselaar
43450680fa
[7.x] [APM] Optimize API test order (#88654) (#89398)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 11:47:02 +01:00
Nathan Reese
cf311ba7d3
[Maps] rename file_upload to maps_file_upload (#89225) (#89365)
* migrate file_upload plugin to maps_file_upload

* update plugins list

* results of running node scripts/build_plugin_list_docs

* fix build problems

* remove fileUpload from limits.yml

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 18:09:23 -07:00
Mikhail Shustov
15a2eed829
Update babel to v7.12 (#89006) (#89328)
* bump babel version

* build kbn-pm

* fix integration test

* remove cicular dependency between files which crashes Kibana  in rutime

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2021-01-26 20:06:31 +01:00
Spencer
8f31cdfae5
[7.x] [browserslist] remove unnecessary browsers (#89186) (#89250)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-25 18:22:34 -07:00
Dario Gieselaar
71a4715cc3
[7.x] decorateSnapshotUi: get file from stacktrace (#88950) (#89000) 2021-01-22 08:55:43 +01:00
Spencer
09ceaf3f0a
[7.x] [ftr/verbose_instance] check for .finally() before using it (#88998) (#89033)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 23:02:08 -07:00
Tyler Smalley
baf56d80c4
[7.x] Updating the License (#88343) (#88745)
* Updating the Licenses, except for applying eslint, building

* Applying ESLint rules,building @kbn/pm, regenerating api docs

Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-01-19 17:54:11 -08:00
Thom Heymann
dbaed96e6a
[7.x] Bumped axios to 0.21.1 (#87776) (#88309)
* Bumped axios to 0.21.1 (#87776)

* Bumped axios to 0.21.1

* Update dist

* Consolidated dependencies

* Added missing mime-type types

* Rebuild dist

* Consolidated octokit/auth-token

* Fix axios wrapper ensuring non-200 throws error

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

* Consolidated dependencies

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-18 15:03:31 +00:00
Tiago Costa
7bdac0bea4
chore(NA): remove mocha junit ci integrations (#88129) (#88534)
* chore(NA): remove mocha junit ci integrations

* chore(NA): remove mocha script from xpack

* chore(NA): single rule exclusion on eslint config for mocha

* chore(NA): remove unused custom mocha integration code from kbn/test

* chore(NA): rewording packages readme

* docs(NA): remoe mocha mention from development-unit-tests
# Conflicts:
#	docs/developer/contributing/development-unit-tests.asciidoc
#	test/scripts/jenkins_unit.sh
2021-01-16 00:01:29 +00:00
Jonathan Budzenski
1dc3276e74
[7.x] [dev] Replace sass-lint with stylelint (#86177) (#88498)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>

Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-01-15 14:36:34 -06:00
spalger
b81af939d3 [kbn/es] start es with raised indices.query.bool.max_nested_depth
(cherry picked from commit e914a60ba8c335a187e8a269596e5072ed4502ee)
(cherry picked from commit 28beb60d79)
(cherry picked from commit 2fc6214627)
2021-01-13 22:07:25 -07:00
Matthew Kime
2a32d0e251
revert runtime fields editor plugin (#88132) (#88187) 2021-01-13 13:59:31 -06:00
Joe Portner
a3d5721f16
Create Spaces OSS plugin (#87585) (#88065) 2021-01-12 17:28:21 -05:00
Patryk Kopyciński
1aeb45a5f2
[Security Solution] Refactor Cypress scenarios to use internal contex… (#86609) (#87769) 2021-01-08 13:30:32 +01:00
Tiago Costa
f8eb44e58e
chore(NA): move kbn-es-archiver from mocha into jest (#87699) (#87748)
* chore(NA): move kbn-es-archiver from mocha into jest

* chore(NA): remove mocha temporarily from CI
2021-01-08 00:04:28 +00:00
Matthew Kime
74c4781841
[7.x] Create runtime field plugin, runtime field editor plugin (#87387) (#87728)
* Create runtime field plugin, runtime field editor plugin (#87387)
2021-01-07 17:12:27 -06:00
Tiago Costa
175c5642af
chore(NA): move elastic-datemath from mocha into jest (#87351) (#87544)
* chore(NA): move from mocha to jest

* chore(NA): init changes on sinon replacement

* chore(NA): continue to use sinon for timer mocks

* docs(NA): explaining why we keep to use sinon on elastic datemath

* chore(NA): remove sinon from elastic-datemath
2021-01-06 22:09:37 +00:00
Alexey Antonov
69c4eb2859
Enable prototype pollution protection in TSVB (#85952) (#87087)
* Enable prototype pollution protection in TSVB

Closes #78908

* Update Dock API Changes

* Replace logging failed in validateObject validation with 400 error

* Move validateObject to kbn-std package and add a description

* Update Doc API Changes

* Rename validateObject function to ensureNoUnsafeProperties

* Rename other validateObject occurrences

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

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-31 12:58:36 +03:00
Spencer
943173b87f
[7.x] [ftr/flags] improve help text (#86971) (#86976)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-test/src/functional_test_runner/cli.ts
2020-12-28 16:26:06 -07:00