Commit graph

1419 commits

Author SHA1 Message Date
Jean-Louis Leysens 6ce2818f88
[Console] Fix OSS build (#53885)
* Move fp-ts and immer to "." package.json

* Revert "Move fp-ts and immer to "." package.json"

This reverts commit b876df0d54.

* Second attempt, fp-ts and immer -> root

* fp-ts -> 2.3.1

* Revert x-pack/package.json

* Update fp-ts in x-pack/package.json

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-06 15:21:44 +01:00
Marco Vettorello 9d5603a298
Update dependency @elastic/charts to v16.0.2 (#52619) 2020-01-04 13:38:11 +01:00
Mikhail Shustov 9843a5b64c
Set consistent EOL symbol in core API docs (#53815)
* update api-extractor, api-documenter versions

* set EOL: lf. sync with editorconfig

* regen docs

* generate docs with --docs

* rebuild kbn/pm to fix CI fauilure

Co-authored-by: Spencer <email@spalger.com>
2020-01-04 11:14:39 +03:00
Anton Dosov dcb8cca63c
Clean up generic hooks, use react-use instead (#53822)
As we recently added react-use as a dependency, makes sense to clean up those generic hooks from Kibana repo.

Removed custom hooks from kibana_react and other places:
useObservable
useUnmount
useShallowCompareEffect

react-use should be used instead:
import useObservable from 'react-use/lib/useObservable'
2020-01-02 14:04:31 +03:00
Greg Thompson e7076927d7
Upgrade EUI to v17.3.1 (#53655)
* eui to 17.3.0

* eui to 17.3.1

* TS updates

* snapshot updates

* update data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-23 09:49:35 -06:00
Chandler Prall 068f3ffa2c
Upgrade to EUI@17.1.2 [table typescript types] (#52688)
* more types

* table types changes

* siem table conversions

* Updated rest of x-pack for EUI table typees

* updated x-pack changes against master

* Update to published eui 17.1.0

* kibana snapshots

* x-pack snapshots

* src snapshots

* autofixes

* autofixes, round 2
2019-12-18 11:15:14 -07:00
Tim Roes 27b6e1c479
Upgrade typescript-eslint to 2.12 (#53477) 2019-12-18 16:04:12 +01:00
Thomas Watson eadf8bf3d8
Update Node.js to version 10.18.0 (#52865) 2019-12-18 13:07:14 +01:00
Vignesh Shanmugam 254b18c20b
Instrument Kibana with APM RUM agent (#44281)
* Instrument Kibana with APM RUM agent

* make route-change transaction work with properl url

* extract page-load transaction url from app link

* check if app is hidden and set active:false

* make distributed tracing work and merge config

* remove config/apm.js and address review

* address review comments

* add apm.js to build tassks

* move apm from dev to src

* add @types/hoist-non-react-statics which is required by react rum

* apply changes correctly from master
2019-12-18 12:16:15 +01:00
spalger fb1670c54b Revert "Update dependency jimp to v0.9.3 (#53075)"
This reverts commit 19c0626aa5.

# Conflicts:
#	yarn.lock
2019-12-17 11:32:50 -07:00
spalger 64a7b51a41 Revert "Update dependency geckodriver to ^1.19.1 (#53073)"
This reverts commit f8c98f6e71.
2019-12-17 11:32:50 -07:00
spalger 98076311b9 Revert "Update dependency getos to ^3.1.1 (#53074)"
This reverts commit cf2e0ec6e7.
2019-12-17 11:32:50 -07:00
spalger 8e39ba342e Revert "Update dependency simple-git to v1.129.0 (#53077)"
This reverts commit 9a05c75add.
2019-12-17 11:32:50 -07:00
spalger ce3b4748d7 Revert "Update eslint related packages (#53078)"
This reverts commit 9e50a1089c.
2019-12-17 11:32:50 -07:00
spalger ccdd84a00d Revert "Update dependency execa to ^3.4.0 (#53072)"
This reverts commit ad6a07583b.
2019-12-17 11:32:49 -07:00
spalger a926e3419d Revert "Update babel related packages (#52754)"
This reverts commit 9a115f078f.
2019-12-17 11:32:49 -07:00
spalger 77479020e0 Revert "Update supertest related packages (#53081)"
This reverts commit 5eed8b4eb9.
2019-12-17 11:32:49 -07:00
spalger 8b7aaa4849 Revert "Update webpack related packages (#53082)"
This reverts commit 8b36eb46ea.
2019-12-17 11:32:49 -07:00
Daniil Suleiman 1321892b1c
Update hjson version to 3.2.1 (#53105) 2019-12-17 11:03:27 +03:00
renovate[bot] 8b36eb46ea Update webpack related packages (#53082)
* Update webpack related packages

* fix updated config flag

* update other changes css-loader config options
2019-12-16 12:14:20 -07:00
renovate[bot] 5eed8b4eb9 Update supertest related packages (#53081)
* Update supertest related packages

* supertest is now strict about numbers as strings
2019-12-16 12:10:26 -07:00
renovate[bot] ad6a07583b Update dependency execa to ^3.4.0 (#53072)
* Update dependency execa to ^3.4.0

* update kbn/pm dist

* update kbn/pm dist again
2019-12-16 10:20:54 -07:00
renovate[bot] 9e50a1089c Update eslint related packages (#53078) 2019-12-15 10:19:03 -07:00
renovate[bot] 9a05c75add Update dependency simple-git to v1.129.0 (#53077) 2019-12-15 10:18:42 -07:00
renovate[bot] 19a707386d Update dependency pug to ^2.0.4 (#53076) 2019-12-15 10:18:13 -07:00
renovate[bot] cf2e0ec6e7 Update dependency getos to ^3.1.1 (#53074) 2019-12-15 10:17:57 -07:00
renovate[bot] f8c98f6e71 Update dependency geckodriver to ^1.19.1 (#53073) 2019-12-15 10:15:51 -07:00
renovate[bot] 19c0626aa5 Update dependency jimp to v0.9.3 (#53075) 2019-12-15 10:13:54 -07:00
renovate[bot] 9a115f078f Update babel related packages (#52754)
* Update babel related packages

* update kbn/pm dist
2019-12-14 20:14:47 -07:00
Tiago Costa ee2bb82a12
fix(NA): kibana keystore options and arguments processing (#52774)
* fix(NA): kibana keystore options and arguments processing

* chore(NA): updated dependencies to match resolutions
2019-12-13 02:34:31 +00:00
Spencer c8b42f09de
require yarn 1.21.1 to avoid binary planting vuln (#52899) 2019-12-12 10:15:23 -07:00
patrykkopycinski 0c6516f1bc
Add babel-plugin-styled-components to webpack config (#52862) 2019-12-12 16:29:59 +01:00
Dmitry Lemeshko 7ae5e7170a
update chromedriver to 79 (#52784) 2019-12-12 01:34:09 +01:00
patrykkopycinski c6336c384b
Bump react-router (#52445) 2019-12-11 21:19:35 +01:00
Stacey Gammon 79fc07c0c3
Add top level examples folder and command to run, --run-examples. (#52027)
* Add top level examples folder and command to run, `--run-examples`.

* Add comment explaining reason --run-examples flag turns off base path.
2019-12-10 18:02:03 -05:00
Tiago Costa 6d5c8caadc
Adds support for log rotation (#49750)
* chore(NA): add log options to config yml

* chore(NA): remove unwanted option from config declaration

* chore(NA): add the bootstrap for the logging rotate feature

* feat(NA): base interface setup for log rotation feature

* docs(NA): add documentation for the new logging rotate options. chore(NA): added new schema validations

* chore(NA): base lifecycle methods and logic

* feat(NA): monitor logic for log rotate feature

* fix(NA): basic log rotation lifecycle

* chore(NA): fix typo on config file

* feat(NA): add rotate files feature to log rotator

* chore(NA): fix log rotate config

* chore(NA): some tests to try logging rotate lifecycle

* feat(NA): correct log rotation logic

* fix(NA): lifecycle for the log rotator

* test(NA): add a test case

* chore(NA): correctly add the new defaults to the config schema

* test(NA): change dir generation for test

* chore(NA): mock log rotate for logging service test

* test(NA): fix temp dir permission issue

* test(NA): try to fix test

* chore(NA): remove usage of mkdtemp

* refact(NA): feature logging rotation reimplementation in order to make it work across platforms

* fix(NA): bug on file size monitor handle

* fix(NA): remove wrong commented out code

* chore(NA): correctly identify if we should use polling

* chore(NA): fix some code comment

* refact(NA): minor implementation details

* chore(NA): change the order of logging mix

* test(NA): add some more test cases

* test(NA): add the majority of the test cases

* test(NA): add last test case

* test(NA): fallback conditions

* chore(NA): add logging rotate config keys to the docker image

* chore(NA): move logging.rotate.enable setting to enabled

* chore(NA): clarify documentation for logging rotate

* chore(NA): use regular instead of logWithMetadata

* chore(NA): move chokidar to a prod dep

* chore(NA): add log explaining why we had fallback to use polling

* test(NA): fix unit tests

* test(NA): fix unit tests

* chore(NA): correctly place this.running condition

* chore(NA): remove redundant call

* fix(NA): log filename containing numbers would produce invalid sorting

* chore(NA): remove existsSync function call from readRotatedFilesMetadata function

* chore(NA): Update docs/setup/settings.asciidoc

Co-Authored-By: Tyler Smalley <tylersmalley@me.com>

* chore(NA): Update docs/setup/settings.asciidoc

Co-Authored-By: Tyler Smalley <tylersmalley@me.com>

* chore(NA): Update docs/setup/settings.asciidoc

Co-Authored-By: Tyler Smalley <tylersmalley@me.com>

* chore(NA): Update docs/setup/settings.asciidoc

Co-Authored-By: Tyler Smalley <tylersmalley@me.com>

* chore(na): update src/legacy/server/logging/rotate/index.js

Co-Authored-By: Tyler Smalley <tylersmalley@me.com>

* chore(NA): remove unused config line from docker vars

* chore(NA): update documentation to include info about non exact limits

* chore(NA): remove redudant if clause

* fix(NA): correctly work with new keepFiles limit after start

* fix(NA): warning log for logging rotate

* chore(NA): replace logwithmetadate with log

* docs(NA): correct log to right terms

* docs(NA): add comment about usage of slice(-1)

* refact(NA): changing polling interval from seconds to milliseconds

* docs(NA): fix comments for shouldRotate method

* chore(NA): update src/legacy/server/logging/rotate/log_rotator.js

Co-Authored-By: Mikhail Shustov <restrry@gmail.com>

* chore(NA): update src/legacy/server/logging/rotate/log_rotator.js

Co-Authored-By: Mikhail Shustov <restrry@gmail.com>

* refact(NA): small change

* refact(NA): bound stop

* refact(NA): shouldUsePolling test function

* refact(NA): move named truncate function to delete

* refact(NA): typescript conversion

* chore(NA): type update for log rotation index file

* docs(NA): add experimental tag on docs

* chore(NA): add call protection of clearTimeout

* refact(NA): cleanup comments and wrong added logs plus inline config

* chore(NA): replace ts-ignore by non null assertion operator

* docs(NA): extend documentation for _renameRotatedFilesByOne call

* chore(NA): fix type problems for process.emit on nodejs
2019-12-10 01:32:20 +00:00
Tim Roes 419ea47cca
Upgrade typescript-eslint to 2.10.0 (#52528) 2019-12-09 19:49:15 +01:00
Greg Thompson ac0f44e6a5
Upgrade EUI to v17.0.0 (#52342)
* eui to 17.0.0

* Fix sass imports and mixin usages

* Fix kbn ui-framework

* snapshot updates

* switch text

* switch functional update

* test subject
2019-12-09 10:51:17 -06:00
Vadim Dalecky e80611483f
State containers (#52384)
* feat: 🎸 add state containers

* docs: ✏️ add state container demos

* docs: ✏️ refrech state container docs

* chore: 🤖 install default comparator

* chore: 🤖 remove old state container implementation

* feat: 🎸 add selectors

* chore: 🤖 move Ensure tyep to type utils

* fix: 🐛 fix useSelector() types and demo CLI command

* test: 💍 add tests for state container demos

* feat: 🎸 add ReacursiveReadonly to kbn-utility-types

* feat: 🎸 shallow freeze state when not in production

* test: 💍 fix Jest tests

* refactor: 💡 remove .state and use BehaviourSubject
2019-12-06 10:53:06 -08:00
Tiago Costa 20d30e5b27
chore(NA): add resolution to bump serialize-javascript (#52336) 2019-12-06 17:42:45 +00:00
Greg Thompson 58635a29dc
Upgrade EUI to v16.1.0 (#52088)
* eui 16.1.0

* snapshot udpates

* more snapshot updates

* enqueueStateChange mock, resulting snapshot updates
2019-12-05 14:59:21 -06:00
Poff Poffenberger 91df8c0733
Move new Code Editor component to kibana_react so it can be used through Kibana (#45914) 2019-12-04 12:53:42 -06:00
Thomas Watson 43b97d8a05
Clean up uses of deprecated API's in node core (#51431)
Ensure no deprecated Node.js core API's are used in Kibana. This is
achieved by throwing an error in either development mode or in CI if one
of the deprecated API's is called, and as such, new PR's should no
longer be able to be merged if they use deprecated API's.

Some of these API's (like the `Buffer` constructor`) is a security risk.
2019-12-04 16:17:19 +01:00
Thomas Watson 95e5edd9c4
Instrument Kibana with Elastic APM (#43548)
Instruments Kibana with Elastic APM by adding the Node.js agent to the
source code. The agent is not turned on by default but can be enabled by
setting the environment variable `ELASTIC_APM_ACTIVE=true` or by
creating an apm config file called `config/apm.dev.js` and setting
`active: true` inside of it.

This implementation is not meant to be used by end-users of Kibana as it
lacks integration with the regular Kibana config file. For now, this is
meant as a useful internal tool for Elastic employees when developing
Kibana.

By default, it's pre-configured with a `serverUrl` pointing to an APM
Server hosted on Elastic Cloud. The data is stored in an ES cluster
accessible only by Elastic employees. These defaults can easily be
overwritten using environment variables or via the custom config file.
2019-12-04 15:21:07 +01:00
Larry Gregory 7b2b6a01e0
Upgrade markdown-it to 10.0.0 (#51492)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-03 08:52:04 -05:00
Sébastien Loix 439708a6f9 [Dependencies]: upgrade react to latest v16.12.0 (#51145) 2019-11-28 10:56:47 +01:00
patrykkopycinski 517fcb98b8
[SIEM] Fix Timeline drag and drop behavior (#51558) 2019-11-27 09:35:08 +01:00
Alexey Antonov c415311221 Move @kbn/es-query into data plugin (#51014) 2019-11-26 13:28:04 -07:00
Tim Roes 84489619bb
Upgrade typescript-eslint to 2.9.0 (#51737)
* Upgrade typescript-eslint to 2.9.0

* Remove redundant APM eslint disable
2019-11-26 18:21:02 +01:00
Larry Gregory aef6dd4707
Upgrade handlebars to 4.5.3 (#51486)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-11-25 09:11:08 -05:00