Commit graph

1331 commits

Author SHA1 Message Date
Mikhail Shustov
645eae82b7
[7.x] Rename server.xsrf.whitelist to server.xsrf.allowlist (#84791) (#84861)
* Rename server.xsrf.whitelist to server.xsrf.allowlist (#84791)

* rename xsrd.whitelist to xsrf.allowlist

* update docs

* update telemetry schema

* update kbn-config tests
# Conflicts:
#	src/core/server/config/deprecation/core_deprecations.ts

* Update core_deprecations.ts

* miss import
2020-12-03 15:51:44 +01:00
Thomas Watson
0b8e7a026f
Improve logging pipeline in @kbn/legacy-logging (#84629) (#84868) 2020-12-03 13:54:20 +01:00
Thomas Watson
a4cad7735d
Catch @hapi/podium errors (#84575) (#84867) 2020-12-03 13:54:02 +01:00
Thomas Watson
fdb71b6f44
Upgrade Node.js to version 14 (#83425) (#84846) 2020-12-03 09:35:10 +01:00
Tyler Smalley
f9fd733a12
Jest multi-project configuration (#77894) (#84826)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js
#	src/plugins/console/jest.config.js
#	x-pack/plugins/canvas/scripts/jest.js
2020-12-02 14:02:21 -08:00
Spencer
af323c4c02
[7.x] declare kbn/monaco dependency on kbn/i18n explicitly (#84660) (#84683)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2020-12-01 12:13:16 -07:00
Thomas Watson
d4cc408bad
Update code-comments describing babel plugins (#84622) (#84655) 2020-12-01 17:38:44 +01:00
Mikhail Shustov
4efd1d9493
Cleanup tsconfig files (#84396) (#84568)
* remove unused "paths" from tsconfig

* remove unused test utils, import get-url from kbn/test

* dont pollute globals with jest when importing getUrl

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 23:30:31 +01:00
Alison Goryachev
9bc8d30bf4
Support for painless language autocomplete within monaco (#80577) (#84522) 2020-11-30 11:59:53 -05:00
Pierre Gayvallet
8e1fe698e9
increase stdout max listeners for legacy logging (#84497) (#84514)
* increase stdout max listeners for legacy logging

* add missing packages to CODEOWNERS
# Conflicts:
#	.github/CODEOWNERS
2020-11-30 17:16:25 +01:00
Spencer
ad815fda58
[7.x] [dev/cli] detect worker type using env, not cluster module (#83977) (#84349)
* [dev/cli] detect worker type using env, not cluster module

* remove unused property

* assume that if process.send is undefined we are not a child

* update comment

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>
2020-11-25 11:29:56 -07:00
Thomas Watson
9d8d283f79
Use correct version of Podium (#84270) (#84280) 2020-11-25 07:19:42 +01:00
Tyler Smalley
66adfb625e
[@kbn/utils] Clean target before build (#84253) (#84274)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-24 16:26:28 -08:00
Brian Seeders
747c993d2c
[7.x] [CI] Initial TeamCity implementation (#83975) 2020-11-24 16:29:08 -05:00
Dario Gieselaar
5beb2433d4
Improve snapshot error messages (#83785) (#83806)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 22:02:10 +01:00
Mikhail Shustov
e77769a9ac
[DX] Bump TS version to v4.1 (#83397) (#84234)
* bump version to 4.1.1-rc

* fix code to run kbn bootstrap

* fix errors

* DO NOT MERGE. mute errors and ping teams to fix them

* Address EuiSelectableProps configuration in discover sidebar

* use explicit type for EuiSelectable

* update to ts v4.1.2

* fix ts error in EuiSelectable

* update docs

* update prettier with ts version support

* Revert "update prettier with ts version support"

This reverts commit 3de48db3ec.

* address another new problem

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
# Conflicts:
#	test/functional/services/remote/remote.ts
2020-11-24 18:56:21 +01:00
Mikhail Shustov
264d05e29c
Move streams to kbn/utils (#84033) (#84219)
* move streams to kbn/std

* import streams from kbn/std

* fix styles

* remove unused shareWeakReplay

* move from kbn/std to kbn/utils

* import from subfolder since test mocks FS module and not compatible with kbn/utils

* remove new line at the end of json file
2020-11-24 18:08:15 +01:00
Spencer
fa80376101
[7.x] [src/cli/dev] remove broken and unused --open flag (#83966) (#84137)
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>
2020-11-23 13:32:29 -07:00
Mikhail Shustov
de6090c87b
[7.x] [DX] Prettier v2.2 (#83899) (#84114)
* [DX] Prettier v2.2 (#83899)

* update prettier with ts version support

* mute type-error

* run prettier on codebase

* fix examples

* fix errors after master merged
# Conflicts:
#	x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx
#	x-pack/plugins/upgrade_assistant/server/lib/telemetry/usage_collector.ts

* fix add removed property
2020-11-23 21:24:39 +01:00
Tiago Costa
450571e027
chore(NA): remove yarn lock from kbn legacy logging (#84096) (#84125)
* Revert "[Search] Search batching using bfetch (#83418)"

This reverts commit 5708c5d004.

* chore(NA): remove yarn.lock from kbn-legacy-logging
2020-11-23 19:31:39 +00:00
Pierre Gayvallet
1a97e078f2
[7.x] create kbn-legacy-logging package (#77678) (#84034)
* create kbn-legacy-logging package (#77678)

* create kbn-legacy-logging package and start to move things

* fix rotator tests

* fix logging system test mocks

* move logging format to the package

* move logging setup to package

* adapt legacy logging server

* remove usage of legacy config in the legacy logging server

* move legacy logging server to package

* remove `??` syntax from package

* update generated doc

* fix a few things due to month old merge

* remove typings from project

* move reconfigureLogging to package

* add basic README file

* update generated doc

* remove old typings

* add typing for legacy logging events

* remove `??` from packages

* fix / improve event types usages

* remove suffix from tsconfig
# Conflicts:
#	src/legacy/server/config/schema.js

* fix for 7.x branch
2020-11-23 07:31:31 +01:00
Dmitry
ed225d103b
[code coverage] Update jest config to collect more data (#83804) (#83989)
* collect code coverage for more files in src/

* update config

* update config according review

* move collectCoverageFrom to preset

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/dev/jest/config.js
2020-11-21 09:45:09 +01:00
Spencer
79d4646bdd
[7.x] [kbn/optimizer/node] properly separate lmdb databases, log better (#83849) (#83941)
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>
2020-11-20 11:39:55 -07:00
Mikhail Shustov
7775d2428e
do not export types from 3rd party modules as 'type' (#83803) (#83920)
to avoid inlining. see 9 https://www.techatbloomberg.com/blog/10-insights-adopting-typescript-at-scale/
2020-11-20 17:47:39 +01:00
Thomas Watson
0d90b28f48
Bump jest (and related packages) to v26.6.3 (#83724) (#83885)
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-20 11:55:09 +01:00
Spencer
426bf9cc9d
[7.x] Revert lmdb-store upgrade (#83830) (#83857)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 15:00:08 -07:00
Nicolas Chaulet
d337ed28c3
[Fleet] Rename ingestManager plugin ID fleet (#83200) (#83794) 2020-11-19 12:47:53 -05:00
Dario Gieselaar
4697b7efe1
[7.x] Make expectSnapshot available (#82932) (#83770)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-19 15:34:21 +01:00
Robert Oskamp
722a2af211
Increase bulk request timeout during esArchiver load (#83657) (#83767)
This PR fixes some timeouts during esArchive load by increasing the request timeout.
2020-11-19 09:13:33 +01:00
Tiago Costa
f3b4cd427c
chore(NA): update lmdb store to v0.8.15 (#83726) (#83749)
* chore(NA): upgrade lmdb-store to v0.8.15

* chore(NA): remove unused ts-error statements
2020-11-19 02:03:56 +00:00
Mikhail Shustov
90f76994d2
Update typescript eslint to v4.8 (#83520) (#83677)
* update deps

* update rules

use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead

* fix or mute all lint errors

* react-hooks eslint plugin fails on ? syntax

* fix wrong typings in viz

* remove React as a global type

* fix eslint errors

* update version to 4.8.1

* fix a new error
2020-11-18 20:50:46 +01:00
Sébastien Loix
0323d3b583
[7.x] [Runtime fields] Editor phase 1 (#81472) (#83616)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-11-18 14:58:47 +01:00
John Schulz
b2a7efe371
[bundle optimization] Update to semver 7.x to get tree-shaking (#83020) (#83542)
## What's changed in this PR
### Update to latest available `semver`: `7.3.2`
 * `semver` 5.x pulls in the entire library in one large file (~38k uncompressed / ~9k gz), when we might only use 1-2K.
 * `semver` 7.0+ supports tree-shaking: https://github.com/npm/node-semver/blob/master/CHANGELOG.md#700

### Update paths to only import individual function(s) used instead of the entire library
  * Getting the smaller bundle requires a different import style [as shown in the docs](https://github.com/npm/node-semver#usage)
  * Only changed code in `public` & `common` folders; not `server`. We could also update `server` as well for consistency, but I skipped because the new import style is more verbose and the filesize didn't seem as important on the server

### Results
The build stats show a 10K+ improvement for initial page bundles https://github.com/elastic/kibana/pull/83020#issuecomment-724724432

| id | [before](c6afc47f32) | [after](213bb52a8c) | diff |
| --- | --- | --- | --- |
| `ingestManager` | 386.2KB | 373.9KB | -12.3KB |
| `telemetry` | 63.5KB | 50.1KB | -13.5KB |
| `upgradeAssistant` | 74.5KB | 60.5KB | -14.0KB |
| total |  |  | -39.7KB |

### The import paths look odd. Are they required?
I agree and, no, they're not strictly required. If you'd like me to revert to the prior style just drop a comment and I'll undo them.

The caveat is that the current style (in `master` & this PR) pulls in the entire `semver` library. In 7.x that added ~15K to the initial size. Some more details in the comments: https://github.com/elastic/kibana/pull/83020#issuecomment-724859130

### Possible issues
Moving 2 major versions. We're currently on 5.7 and the latest available is 7.3. 
  * changelog says 5.x (our current) to 6.0 should be safe: https://github.com/npm/node-semver/blob/master/CHANGELOG.md#60
  * There 6.x & 7.x changes all appear to be new features or bugfixes around the `includePrerelease` flag added in 5.6, but I'm not sure if those "fixes" will break existing code
    * https://github.com/npm/node-semver/blob/master/CHANGELOG.md#613
    * https://github.com/npm/node-semver/blob/master/CHANGELOG.md#722

### Stats / screenshots
generated with `node scripts/build_kibana_platform_plugins.js --profile --focus=ingestManager`
<details><summary><b>Ingest Manager in `master`</b>: imports entire `semver` lib, totals 40k+, only 1 large file (orange arc below)</summary>

<img width="972" alt="Screen Shot 2020-11-09 at 6 50 23 PM" src="https://user-images.githubusercontent.com/57655/98666188-a50ac380-231a-11eb-9b8a-6ca784752714.png">
</details>

<details><summary><b>Ingest Manager in PR after upgrade to 7</b>: still imports entire lib. file size *increased* to ~60k, but now individual files are imported (orange arcs below)</summary>
<img width="825" alt="Screen Shot 2020-11-09 at 5 46 30 PM" src="https://user-images.githubusercontent.com/57655/98666355-e602d800-231a-11eb-803f-bc04beb4eaf1.png">
<img width="963" alt="Screen Shot 2020-11-09 at 5 47 06 PM" src="https://user-images.githubusercontent.com/57655/98666357-e69b6e80-231a-11eb-92d3-c66904f92c30.png">
</details>

<details><summary><b>Ingest Manager in PR after changing `import`s:</b> total imported size down to ~20k. Can see individual imported files</summary>
<img width="926" alt="Screen Shot 2020-11-10 at 6 10 23 AM" src="https://user-images.githubusercontent.com/57655/98667058-e64fa300-231b-11eb-9690-5e36ed6475e0.png">
<img width="895" alt="Screen Shot 2020-11-10 at 6 10 53 AM" src="https://user-images.githubusercontent.com/57655/98667059-e780d000-231b-11eb-8abf-98d8bdbcf061.png">
</details>

### Checklist

- [ ] [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
2020-11-17 10:42:33 -05:00
Spencer
bb11cc699f
[7.x] upgrade to lmdb-store 0.8 (#83479) (#83492)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-16 16:49:31 -07:00
Spencer
d31c67c96b
[7.x] [kbn/plugin-helpers/build] copy the public assets of a plugin (#83458) (#83493)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-16 16:47:40 -07:00
Alejandro Fernández Haro
d684acdaef
[7.x] Remove dependency of tests on strict SyntaxKind values (#83440) (#83456) 2020-11-16 19:38:49 +00:00
Tyler Smalley
8c2976d847
Consolidates Jest configuration files and scripts (#82671) (#83362)
Jest tests are currently organized into main configuration files (src/dev/jest/config.js and x-pack/dev-tools/jest/create_jest_config.js). Both of these are similar, but very slightly due to  previously being in separate repositories. This change consolidates the scripts referenced in those configs and moves them to the `@kbn/test` project.

OSS contained an alias for `test_utils`. Those aliases have been removed in favor of importing these utilities from `@kbn/test/jest`

Blocker to #72569

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-13 13:25:06 -08:00
Tyler Smalley
2a0f465fe6
[FTR] Refactor mocha under @kbn/test (#42862) (#83369)
* Run prettier on the files that will be refactored under @kbn/test, in a follow-up pr.

* Fixup all paths to mocha,
under kbn-test, with needed
exports/imports.

* Fixed borked path (bad refactor).

* Fixup one more borked path.

* Fixup tsconfig for xml.ts

* Drop setup_node_env as it's already
in KIBANA/scripts/mocha.js.
Also, fixup cwd for globby as we are
exec-ing from a different directory.

Co-authored-by: Tre <wayne.seymour@elastic.co>
2020-11-13 06:41:51 -08:00
Thomas Watson
3c82fde4f7
Upgrade Node.js to version 12 (#61587) (#83343) 2020-11-13 10:07:13 +01:00
Gidi Meir Morris
5f36a27b33
[Alerting] Moves the Index & Geo Threshold UIs into the Stack Alerts Public Plugin (#82951) (#83316)
This PR includes the following refactors:
1. Moves the Index Pattern Api from _Stack Alerts_ to the _Server_ plugin of _Trigger Actions UI_. This fixes a potential bug where a user could disable the _Stack Alerts_ plugin and inadvertently break the UI of the _ES Index _ action type.
2. Extracts the UI components for _Index Threshold_ and _Geo Threshold_ from the _Trigger Actions UI_ plugin and moves them into _Stack Alerts_.
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-11-12 20:45:53 +00:00
Spencer
98ee44647f
[7.x] [kbnClient] retry updating config if necessary (#83205) (#83219)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-11 16:35:55 -07:00
Tiago Costa
955e67aba0
chore(NA): update kbn plugin helpers readme file (#83083) (#83100)
* chore(NA): update kbn plugin helpers readme file

* chore(NA): update packages/kbn-plugin-helpers/README.md

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

* chore(NA): update packages/kbn-plugin-helpers/README.md

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

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

Co-authored-by: Spencer <email@spalger.com>
2020-11-10 22:01:34 +00:00
Larry Gregory
0188642fe5
[7.x] Remove yeoman & yo (#82825) (#82865)
# Conflicts:
#	yarn.lock
2020-11-06 13:53:05 -05:00
Stratoula Kalafateli
73d2de6503
[Visualize] New visualization wizard (#79627) (#82858)
* [Visualizations] New vis wizard

* Update functional tests

* Create oss plugins for maps and lens and unregister alias function

* Add new plugins to .i18nrc.json

* Add readme and codeowners to the new plugins

* update docs

* fix tests

* fix types

* fixes

* Update development docs

* fix oss functional tests

* Fix jest and x-pack functional tests

* Fix functional test

* changes on the layout

* Cleanup and responsiveness

* cleanup unecessary code

* add common folder to the new OSS plugins

* remove unecessary translations

* Update limits.yml file

* Fix basic label

* Add experimental badge on controls vis

* Nice improvements

* fixes

* Improving styles

* Making modal go full height on smaller screens

* Fixing sass lint warning

* fix lint error

* fix internationalization error

* PR fixes

* PR changes

* Use useCallback where possible

* Remove translations that need to be translated again

* Lazy Load wizard modal

* Remove legacyMapVisualizationWarning

* Import the OSS plugins constants from the plugins

* Export constant from lensOss

* Change the new oss plugins from OSS to Oss

* Add a new line to the kibana.json files of the new plugins

* New nit fix

* Fix spaces

* Change the texts for the first step of the modal

* Fix test

* Fixes some of the PR comments

* Add onClick funtionality to the entire aggregation based card

* Cards description changes, introduce a copyFromRoot method to solve the problem of when disabling the x-pack plugic, to also disable the oss

* Create new FTR for testing the functionality of the wizard when both maps and lens apps are disabled

* fix eslint error

* Change groupTitles and descriptions

* Change input vis description

* Remove the copyFromRoot from the signature of the ConfigDeprecationFactory and export it from the main entrypoint

* Make the disabled cards badge clickable

* Changes from code review

* Fix functional tests failures

* Rename groupTitle to titleInWizard to be more specific

* Change vega vis note

* minor design changes

* fix problem with plugins list docs

* Retrieve maps and lens landing page from docs service and add tracking url param

* Fix funtional test for the new dashboard flow

* Fix logic in alias registry for removing the discardOnRegister alias

* no need to remove the alias entry from the discardOnRegister array

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	packages/kbn-optimizer/limits.yml
#	x-pack/scripts/functional_tests.js
2020-11-06 20:49:10 +02:00
Clint Andrew Hall
cf82180d98
[7.x] Team:Presentation Code Owners and automation changes (#82343) (#82460)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-04 22:44:28 -06:00
spalger
ce311c8c19 remove entire suite as partial skips aren't doing the trick
(cherry picked from commit 4ce3e1ce03)
(cherry picked from commit 61a54078d8)
2020-11-04 09:09:45 -07:00
Spencer
279fbe1172
[7.x] [ci] run server integration tests (#81698) (#82530)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-03 17:45:40 -07:00
Pierre Gayvallet
d449d8cbdb
[7.x] SavedObjects tagging MVP (#79096) (#82407)
* SavedObjects tagging MVP (#79096)

* create xpack plugin skeleton, start to implement management section

* add tag creation modal

* first implementation of the tags table

* use InMemoryTable

* add edit modal and delete action

* update plugin list

* add tag list, fix types

* add capabilities check on client-side

* add tag combo box component

* add missing i18n keys

* fix privilege FTR tests

* add base structure for FTR tests

* fix feature ftr test

* use string literals for i18n

* create savedObjectsTaggingOss plugin, move API types to oss plugin, start to wire to SO management page.

* update plugin list

* fix types

* allow to use `_find` with multiple references

* add FTR test for _find API on references fields

* add _find integration tests

* update generated doc

* start to implement tag filtering on SO management section

* update generated docs

* wire tagging API to dashboard listing page

* fix i18n namespace

* fix type & tests

* update dashboard listing snapshots

* adapt FTR listingTable service to search for parsable queries

* wite tagging API to visualize listing

* update tagging plugin limits

* add server-side and client-side validation for tag create/edit

* rename title field to name

* fix types

* fix types bis

* add removeReferencesTo API to SOR/SOC

* update generated doc

* add server-side unit test for `savedObjectsTagging` plugin

* move tagging API types to its own file

* add savedObjectsTaggingOss mock

* add tags_cache tests

* add tests for client-side tag client

* extract uiApi to distinct files

* various API improvements

* add more tests

* add link between tag and so management sections + add connection counts

* add base functional test suite for tagging

* add more FTR tests

* improve feature control func test

* update codeowners

* update generated doc

* fix access to proxy modal

* adapt SO save modal to allow to add tag field

* add SO decorator registry and tag implementation

* add unit tests for SO tag decorator

* add functional tests for visualize integration

* add tag SO read permission for vis/dash feature

* add RBAC api integ tests

* add API integration tests

* add test for getTagConnectionsUrl

* add SOM test suite

* add dashboard integration suite

* remove test line

* add missing unit tests

* improve API types doc

* fix create modal save button label

* remove console.log

* improve doc

* self review

* add refresh interval for tag cache

* improve page object doc

* minor cleanup

* address review comments

* small layout fixes

* add initial focus

* use lazy accessor for tag request handler context

* adapt SOM export and export route to handle references

* remove icon from feature config due to master changes

* fix SO table tests

* update generated docs

* sort tags by name in filter dropdown and listing component

* wire SO tagging to dashboard save modal

* fix types

* - add 'create tag' action in tag selector
- add notifications on update/create/delete from management
- delete modal wording

* add description max length validation

* remove real-time validation

* fix i18n bundle id

* update expected size of savedObjectsTagging plugin

* use own useIfMounted

* update limit again, contract components cannot be lazy loaded atm.

* math is hard

* remove single usage of lodash for bundle size

* add async imports for create/edit modal

* add FTR test for 'create tag' action from tag selector

* allow 'create new' option to prepopulate name field

* extract savedObjectToTag

* add advancedSettings read user for security api_integ suite

* add audit login for security client wrapper

* use import type when possible

* wire SO tagging to lens visualization

* fix lens jest test

* Fix `create tag` option being selected when closing the selector dropdown

* add sorting to tag column from getTableColumnDef

* address some of restrry comments

* rename tag selector's setSelected option to onTagsSelected

* fix audit logging even type for saved_object_remove_references

* update plugin size limit to current size

* adapt maxlength validation wording

* remove selection column until we have batch action menu

* remove connections link when user lack read privilege to savedObjectManagement

* forbid registering multiple SO decorators with the same priority

* add so decorator test

* extract getTagFindReferences and create API mock

* update audit-logging ascidoc

* doc nit

* throw conflict error if update returns any failure

* use refresh=true as default

* wording nits

* export: rename `references` to `hasReference`

* update generated doc

* set description max length to 100

* do not initialize tag cache on anonymous pages

* split fetchObjectsToExport into two distinct functions

* change tag client `delete` call order

* tsdoc nits

* more nits

* add README for oss plugin

* add oss plugin start tests

* SavedObject.find: rename `references` to `hasReference`

* change section description label

* remove url prefix constants

* last nits and comments

* update generated doc
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	x-pack/scripts/functional_tests.js

* fix FTR mapping files for 7.x
2020-11-03 14:35:43 +01:00
Alexey Antonov
a42c52fd0b
[Step 2] Use Observables on server search API (#80709) (#82409)
* [Step 2] Use Observables on server search API

* apply some suggestions

* use concatMap instead of expand

* update docs

* cleanup

* fix PR comments

* remove AsyncOptions

* remove $config from eql_search_strategy

* remove $config from es_search_strategy

* remove DoSearchFnArgs, SearchMethod

* some work

* fix docs

* remove waitForCompletion param

* cleanup

* some work

* fix circular imports

* Update src/plugins/data/server/search/es_search/es_search_rxjs_utils.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Update src/plugins/data/common/search/es_search/es_search_rxjs_utils.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Update src/plugins/data/common/search/es_search/es_search_rxjs_utils.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Update x-pack/plugins/data_enhanced/common/search/es_search/es_search_rxjs_utils.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* fix PR comments

* update docs

* apply suggestions

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-03 15:55:47 +03:00
Tiago Costa
620cbc8ba5
chore(NA): move into single pkg json (#80015) (#82378)
* chore(NA): update gitignore to include first changes from moving into a single package.json

* chore(NA): update gitignore

* chore(NA): move all the dependencies into the single package.json and apply changes to bootstrap

* chore(NA): fix types problems after the single package json

* chore(NA): include code to find the dependencies used across the code

* chore(NA): introduce pure lockfile for install dependencies on build

* chore(NA): update clean task to not delete anything from xpack node_modules

* chore(NA): update gitignore to remove development temporary rules

* chore(NA): update notice file

* chore(NA): update jest snapshots

* chore(NA): fix whitelisted licenses to include a new specify form of an already included one

* chore(NA): remove check lockfile symlinks from child projects

* chore(NA): fix eslint and add missing declared deps on single pkg json

* chore(NA): correctly update notice

* chore(NA): fix failing jest test for storyshots.test.tsx

* chore(NA): fix cypress multi reporter path

* chore(NA): fix Project tests check

* chore(NA): fix problem with logic to detect used dependes on oss build

* chore(NA): include correct x-pack plugins dep discovery

* chore(NA): discover entries under dynamic requires on vis_type_timelion

* chore(NA): remove canvas

* test(NA): fix jest unit tests

* chore(NA): remove double react declaration from storyshot test file

* chore(NA): try removing isOSS check

* chore(NA): support for plugin development

* chore(NA): update logic to fix unit tests and typechecking

* chore(NA): support to run npm scripts in child kbn projects across all envs

* chore(NA): support github checks reporter on x-pack and remove cpy types as the package correctly provides them

* chore(NA): update cpy version

* chore(NA): include last kbn pm changes

* chore(NA): update style on build_production_projects.ts

* chore(NA): remove any cast fom telemetry opt in stats

* chore(NA): remove del and re-use rm -rf again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/kbn-pm/dist/index.js
#	x-pack/package.json
#	yarn.lock
2020-11-02 23:22:35 +00:00
Greg Thompson
df1f03155c
Upgrade EUI to v30.1.1 (#81499) (#82210)
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2020-10-30 18:21:00 -06:00
igoristic
a47b38dbbf
[Monitoring] Thread pool rejections alert (#79433) (#82157)
* Thread pool rejections first draft

* Split search and write rejections to seperate alerts

* Code review feedback

* Optimized page loading and bundle size

* Increased monitoring bundle limit

* Removed server app import into the frontend

* Fixed tests and bundle size

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-30 14:02:06 -04:00
Ahmad Bamieh
e5265e9288
[7.x] [Telemetry] [Schema] remove number type and support all es number types (#81774) (#82098) 2020-10-30 09:49:57 +02:00
Joe Reuter
0ab5669046
Date column utilities (#81007) (#82037) 2020-10-29 18:53:37 +01:00
Tyler Smalley
9d5f6d353b
[browserlist] Excludes browsers not supporting es6-class (#81431) (#81968)
* Updates browserlist to exclude those not supporting es6-class

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-29 10:11:28 -07:00
Mikhail Shustov
3ffd128e57
Get rid of global types (#81739) (#81884)
* move global typings to packages/kbn-utility-types

* update all imports

* add tests

* mute error

* update docs

* ok

* rename kbn-utility-types/test --> kbn-utility-types/jest
2020-10-28 16:16:27 +03:00
Robert Austin
84d924c206
[Security Solution] reduce optimizer limits (#80997) (#81809)
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-27 17:14:25 -04:00
Nathan L Smith
53b4a3d39e
Use Storybook Controls instead of Knobs (#80705) (#81398)
* Change an example in embeddable to use controls instead of knobs
* Add controls to SyncBadge APM story
* Convert both to [CSF](https://storybook.js.org/docs/react/api/csf)
* Remove the Knobs addon from the default Storybook configuration

Do not remove the Knobs addon package, since Canvas is still using it and this does not change anything in Canvas.
2020-10-27 15:20:56 -05:00
Tyler Smalley
dd49b7ebf7
[CI] Preparation for APM tracking on CI (#80399) (#81694)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-26 22:51:06 -07:00
Spencer
dbc4904a03
[kbn/optimizer] ignore missing metrics when updating limits with --focus (#81696) (#81711)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-26 20:30:16 -07:00
Marco Liberati
f5f0234ea9
[7.x] Update dependency @elastic/charts to v24 (#80982) (#81508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-10-26 16:13:41 +01:00
Liza Katz
e32e3aaa1e
[Search] Error Alignment 2 (#80965) (#81614)
* Improve the display of ES errors and Http errors

* fixes

* Improve text

* fix ts

* update limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-26 16:44:15 +02:00
Ahmad Bamieh
27163f7b99
[7.x] [Plugin generator] Update readme (#81131) (#81578) 2020-10-25 15:38:50 +02:00
Alison Goryachev
c05f4bc115
Move painless lang support to @kbn/monaco (#81010) (#81473) 2020-10-22 10:06:30 -04:00
Mikhail Shustov
d1b1023552
bump elastic/elasticsearch-js version to 7.10.0-rc1 (#81288) (#81386) 2020-10-22 07:58:49 +02:00
Tiago Costa
07dd84ab70
chore(NA): add spec-to-console and plugin-helpers as devOnly dependencies (#81357) (#81413) 2020-10-22 01:50:34 +01:00
Spencer
11742512c3
[7.x] [junit] make sure that report paths are unique (#81255) (#81389)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-21 14:19:54 -07:00
Chandler Prall
b200fb916c
Upgrade EUI to v29.5.0 (#80753) (#81102)
* Upgraded eui to v29.5.0; snapshot updates

* Cleaned up some types

* addresses feedback on types change

* Update EuiIcon snapshots in jest integration tests

* Updated snapshot from rebasing on master
2020-10-20 09:41:42 -06:00
Mikhail Shustov
a4d5551e24
server logs config paths to use for runner (#52980) (#80933)
* server logs config paths to use for runner

* fix eslint issue

* do not log config path for default config

* update snapshots

* fix other tests

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>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-17 11:47:06 +02:00
Mikhail Shustov
cf9c0e1192
Add script to identify plugin dependencies for TS project references migration (#80463) (#80811)
* move kbn-dev-utils plugin helpers under a dedicated folder

* use getPluginSearchPaths in kbn-config & kbn-optimizer

* add a script to find plugin dependencies not migrated to TS project refs

* update docs

* add a script reporting all circular deps between plugins

based on kibana.json declaration, so it doesn't provide all the cases

* fix optimizer scan logic. removed by mistake

* revert changes. fails on CI

* remove prod depenedency on kbn/dev-utils

* remove last export

* only run plugin discovery once to speed up circular dep detection

* address comments

* address comments

* update fixtures

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-16 13:34:03 +02:00
Uladzislau Lasitsa
f300a417e2
[7.x] Timelion y-axis label not displayed (#80007) (#80521)
* Timelion y-axis label not displayed (#80007)

* Moved flot in ui-shared-deps and leavt only one version.

* Removed unneeded import

* use commonJS so we can execute code between loading specific modules

* prefix i18n keys with flot.

* Fix Internationalization

* remove duplicate pie plugin

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

* Fix test.

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-16 14:12:29 +03:00
Nathan L Smith
d07839f68e
Add Storybook a11y addon (#80069) (#80778) 2020-10-15 19:43:11 -05:00
Spencer
e88ac42fb3
[kbn/optimizer] tweak split chunks options (#80444) (#80763)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-15 16:00:01 -07:00
Spencer
1122493db9
[7.x] [kbn/bootstrap] validate that certain deps don't ship in production (#80549) (#80710)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-10-15 12:00:44 -07:00
Spencer
8b18a1eb09
[7.x] [ci-stats] record async chunk count (#80606) (#80680)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-15 09:41:26 -07:00
Spencer
5b8852fef8
[7.x] [kbn/optimizer] add support for --focus option (#80436) (#80533)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-14 09:48:59 -07:00
Spencer
da5ca7dd7d
[7.x] [kbn/std] update rxjs helpers to use simple operators (#80416) (#80525)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-14 09:01:20 -07:00
Spencer
d3c106bac4
[7.x] [kbn/optimizer/node/cache] support up to 500 readers (#80354) (#80377)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-13 10:57:45 -07:00
Tyler Smalley
a69d8d8917
[CI] Correctly resolve repository root for JUnit reports (#80226) (#80234)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-12 18:43:08 -07:00
Tyler Smalley
64251e6807
Migrate Jest JUnit reporter to TS (#79919) (#80115)
* Converts Jest JUnit reporter to TS

Also moves reporter to @kbn/test package

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	packages/kbn-test/src/jest/junit_reporter.ts
2020-10-12 06:36:04 -07:00
Mikhail Shustov
f2f86b2853
store sorted bundleRefExportIds (#80011) (#80096)
* store sorted bundleRefExportIds

* sort consistently
2020-10-09 19:14:07 +02:00
Spencer
267211d34b
[kbn/std] add observable helpers to aid with rxjs 7 upgrade (#79752) (#80089)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-08 19:21:16 -07:00
Spencer
b10ff38257
[7.x] [kbn/optimizer] bump low or add missing limits when updating automatically (#80013) (#80043)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-08 14:40:44 -07:00
Ahmad Bamieh
3d6cf53753
[7.x] [Telemetry] Telemetry tools check all makeUsageCollector calls (#79840) (#79981) 2020-10-08 16:28:40 +03:00
Spencer
dbc09a5d42
[7.x] [kbn/optimizer] report limits with ci metrics (#78205) (#79950)
* [kbn/optimizer] report limits with ci metrics (#78205)

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

* update bundle limits for 7.x branch

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 18:09:38 -07:00
Spencer
35dbb663b3
[release notes] extract "dev docs" comment too (#79351) (#79944)
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>
2020-10-07 16:52:23 -07:00
Spencer
8472a8673d
[7.x] share tslib across bundles (#79915) (#79929)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-07 16:22:14 -07:00
spalger
c115b52100 remove entire suite as partial skips aren't doing the trick
(cherry picked from commit 4ce3e1ce03)
2020-10-07 14:30:34 -07:00
Greg Thompson
ebe6d3a878
add --no-validate option to bypass validateYarnLock (#79878) (#79897) 2020-10-07 14:23:59 -06:00
spalger
988e4882ed remove skipped snapshots
(cherry picked from commit 37f9db4224)
2020-10-07 12:13:00 -07:00
spalger
ff36a030a0 skip flaky tests (#79891)
(cherry picked from commit 6ee48d85bf)
2020-10-07 11:52:19 -07:00
Dima Arnautov
2ba1a89637
[ML] Replace swim lane implementation with elastic-charts Heatmap (#79315) (#79744)
* [ML] replace swim lane vis

* [ML] update swimlane_container, add colors constant

* [ML] update swimlane_container, add colors constant

* [ML] update swimlane_container, add colors constant

* [ML] unfiltered label for Overall swim lane

* [ML] tooltip content

* [ML] fix styles, override legend styles

* [ML] hide timeline for overall swimlane on the Anomaly Explorer page

* [ML] remove explorer_swimlane component

* [ML] remove dragselect dependency

* [ML] fix types

* [ML] fix tooltips, change mask fill to white

* [ML] fix highlightedData

* [ML] maxLegendHeight, fix Y-axis tooltip

* [ML] clear selection

* [ML] dataTestSubj

* [ML] remove jest snapshot for explorer_swimlane

* [ML] handle empty string label, fix translation key

* [ML] better positioning for the loading indicator

* [ML] update elastic/charts version

* [ML] fix getFormattedSeverityScore and showSwimlane condition

* [ML] fix selector for functional test

* [ML] change the legend alignment

* [ML] update elastic charts
2020-10-06 22:35:32 +02:00
Alejandro Fernández Haro
c90c3361eb
[7.x] [Telemetry Tools] Merge array of constraints (#79654) (#79689) 2020-10-06 18:16:57 +01:00
Josh Dover
3c1a71f00d
[7.x] Prepare APM agent configuration for production use (#78697) (#79569)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 07:45:51 -06:00
Spencer
c0887723e5
[7.x] Update dependency @elastic/charts to v23.1.1 (#78459) (#79592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-10-05 17:46:30 -07:00
Ahmad Bamieh
87b120d178
[7.x] remove react-intl from kibana and keep it inside only i18n package (#78956) (#79589)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 03:37:33 +03:00
Chandler Prall
2518873396
[7.x] Upgraded EUI to v29.3.0 (#79552)
* Upgraded EUI to v29.2.0

* Remove hacks on top of EuiHeaderLink(s)

* Actual update to eui@29.2.0

* Resolve typescript issue when omitting a key over a union

* Resolve nav menu test's expectations

* Fix lint issue

* Update to 29.3.0

* [ui-shared-deps] strip proptypes from ui-shared-deps production build

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-05 15:09:45 -06:00
Tyler Smalley
ff54de0b31
[7.x] Bumps Jest related packages (#78720) (#79524)
* Bumps Jest related packages (#78720)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	packages/kbn-optimizer/package.json
#	yarn.lock

* Updates kbn-pm dist

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-05 13:03:54 -07:00
Nathan L Smith
7a2e487f01
[7.x] Storybook 6 and config changes (#75357) (#78894)
Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx

* Storybook 6 and config changes (#75357)

Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-05 12:43:44 -05:00
Spencer
634cf0b252
[7.x] [kbn/optimizer] implement more efficient auto transpilation for node (#79052) (#79395) (#79408)
* [kbn/optimizer] implement more efficient auto transpilation for node (#79052)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/package.json
#	src/dev/build/tasks/create_empty_dirs_and_files_task.ts
#	src/setup_node_env/babel_register/register.js
#	yarn.lock

* fix eslint violation

* add core-js production dependency (#79395)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit 9e1c44fcc0)

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-04 23:30:52 -07:00
Mikhail Shustov
b963d2aa20
fix lodash imports (#78456) (#79394) 2020-10-04 15:26:35 +02:00
Patryk Kopyciński
5477a1dadc
[7.x] Cleanup yarn.lock from duplicates (#66617) (#79385) 2020-10-03 14:45:23 +02:00
Spencer
d7668a03c4
[babel/register] remove from build (take 2) (#79379) (#79382)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	package.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-02 20:04:18 -07:00
Spencer
9eeff6d893
[kbn/config] don't include x-pack/examples with --oss (#79032) (#79381)
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>
2020-10-02 19:55:25 -07:00
Alejandro Fernández Haro
00f9a3f5a4
[Usage Collection] [schema] apm (#79000) (#79355) 2020-10-02 23:34:17 +01:00
Marco Vettorello
cc0034ec86
upgrade @elastic/charts to v23.0.0 (#79226) (#79331)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 22:39:06 +02:00
Spencer
5bfb4a3d00
normalize paths before printing them into the generated plugin list (#79232) (#79322)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 11:25:47 -07:00
Tiago Costa
86f628d318
chore(NA): merge and solve conflicts with 7.x (#79237) 2020-10-02 02:40:18 +01:00
Spencer
31c7b4cd55
[optimizer] strip proptypes from plugin bundles in production (#79221) (#79236)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/worker/webpack.config.ts
2020-10-01 18:24:16 -07:00
Brittany Joiner
ca42caa809
[7.x] Adding comment about importing lodash library (#78156) (#78667)
* Adding comment about importing lodash library (#78156)
2020-10-01 17:22:26 -05:00
Spencer
51434256fd
[7.x] [babel] remove unused/unneeded babel plugins (#79173) (#79200)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2020-10-01 14:03:22 -07:00
Pierre Gayvallet
cdaa95d448
Add relative path handling to application.navigateToUrl (#78565) (#79139)
* split application utilities and associated tests to distinct files

* do not match app if path does not start with the basePath

* add relative paths support to `navigateToUrl`

* add null-check error

* update generated doc

* nits on doc
2020-10-01 19:30:16 +02:00
Candace Park
1629b2ba85
[SECURITY_SOLUTION][ENDPOINT] Improve Endpoint Host data generator to also integrate with Ingest (#74305) (#79028)
* Endpoint generator connects host with a real policy and enrolls agent

Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
Co-authored-by: kevinlog <kevin.logan@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
2020-10-01 09:38:50 -04:00
Jean-Louis Leysens
50e3b52e08
[ES UI] Reintroduce import of brace/mode/json (#78571) (#79087)
* added brace/mode/json import everywhere json mode is being used

* added brace mocks to tests

* slight refactor of imports

* remove import from es ui shared

* Reverse adding brace/mode/json import everywhere

- different approach of just adding brace/json/mode to
  es_ui_shared as before with a BIG comment

* updated @kbn/ace readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 14:47:46 +02:00
Spencer
9e19d91482
[7.x] delete target before building (#78665) (#78897)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-30 09:05:01 -07:00
Spencer
a5692c151c
[7.x] [kbn/ui-shared-deps] track asset sizes (#78718) (#78899)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 09:04:51 -07:00
Alejandro Fernández Haro
322cdb0e6b
[7.x] [Usage Collection] [schema] reporting + add MappedType support (#78591) (#78834) 2020-09-29 20:37:50 +01:00
Spencer
031b62aec6
[7.x] [dev/watching] upgrade chokidar and remove missing source dirs (#78723) (#78807)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 10:28:31 -07:00
Tyler Smalley
ce28f6944f
Aligns several module versions across the repository (#78327) (#78714)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/kbn-spec-to-console/package.json
#	x-pack/package.json
#	yarn.lock
2020-09-29 07:12:06 -07:00
Alejandro Fernández Haro
60763bdad2
[7.x] [Usage Collection] [schema] Support spreads + canvas definition (#78481) (#78757) 2020-09-29 15:03:22 +01:00
Tyler Smalley
f2c87e0465
Update dependency supports-color to v7 (#43064) (#78701)
# Conflicts:
#	packages/kbn-es-query/package.json
#	packages/kbn-i18n/package.json
#	packages/kbn-interpreter/package.json
#	yarn.lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-09-28 18:12:40 -07:00
Spencer
f9abd1789b
[7.x] [kbn/optimizer] only build xpack examples when building xpack plugins (#78656) (#78681)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-28 14:56:38 -07:00
Spencer
e318a3d7bc
[7.x] [kbn/optimizer] fix .json extension handling (#78524) (#78658)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:49:12 -07:00
Spencer
941fdca61a
[7.x] [kbn/es] use a basic build process (#78090) (#78659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:47:05 -07:00
Pierre Gayvallet
9882afcf8b
Add the @kbn/apm-config-loader package (#77855) (#78585)
* first shot of the apm configuration loader

* revert changes to kibana config

* remove test files for now

* remove `?.` usages

* use lazy config init to avoid crashing integration test runner

* loader improvements

* add config value override via cli args

* add tests for utils package

* add prod/dev config handling + loader tests

* add tests for config

* address josh's comments

* nit on doc
2020-09-28 20:31:17 +02:00
Alejandro Fernández Haro
8dd6dcb65f
[7.x] [Usage Collection] [schema] Explicit "array" definition (#78141) (#78618)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 17:53:35 +01:00
Jean-Louis Leysens
c39243c299
[7.x] [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033) (#78427)
* [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033)

* major wip

* major wip

* fix worker creation leak

* just copy the file over for now

* Remove xjson from static and from es_ui_shared entirely

- moved expand and collapse logic back to es_ui_shared. It has
  nothing to do with ace
- refactor the useXJson hook which bundled XJsonMode with it.
  This was convenient but ultimately inflates the amount of code
  Kibana needs to first load up in the client. Users will need to
  import XJsonMode and instantiate it when they want to use it.
  Updated existing usage.
- Cleaned up Monaco namespace from es_ui_shared because of how
  useXJsonMode was refactored -- no longer exporting an editor
  specific instance means this code does not know about anything
  to do with code editors so it is decoupled from ace and monaco.

* fix export of collapse and expand string literals

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	src/plugins/es_ui_shared/kibana.json

* import brace json mode in raw vis editor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:09:52 +02:00
Spencer
8a65530c61
[7.x] [shared-ui-deps] use a single global version of lodash (#78100) (#78454)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-24 11:26:21 -07:00
Mikhail Shustov
c5c112f2e9
bump query-string version to remove manual type definitions (#78143) (#78441)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* fix cypress tests

* add )
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/ml_conditional_links.spec.ts
2020-09-24 19:12:33 +02:00
Alejandro Fernández Haro
2def83024c
[7.x] [Usage Collection] Add schema to stack_management (#77897) (#78417)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 15:41:32 +01:00
Alejandro Fernández Haro
0b62537f2f
[7.x] [Usage Collection] [schema] lens (#77929) (#78401)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 14:05:08 +01:00
Christos Nasikas
a2d09757fd
[7.x] [ES-ARCHIVER] Fix bug when query flag is empty (#77983) (#78133) 2020-09-22 17:10:32 +03:00
Greg Thompson
48217e3eb2
Upgrade EUI to v29.0.0 (#77802) (#77943)
* eui to 29.0.0

* src snapshot updates

* x-pack snapshot updates

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 14:10:10 -06:00
Joe Portner
de8438d343
Upgrade and consolidate prop-types and create-react-class (#77803) (#77880) 2020-09-18 10:22:01 -04:00
Thomas Watson
3abeedfef5
[7.x] Bump node-fetch to 2.6.1 (#77445) (#77710) 2020-09-17 10:58:13 +02:00
Greg Thompson
d3999c4677
Upgrade EUI to v28.4.0 (#77098) (#77659)
* eui to 28.4.0

* euiselectableoption fixes

* src snapshot updates

* x-pack snapshot updates

* htmlidgenerator mock

* merge resolution

* clean up

* snapshot update

* prevent api changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 18:11:59 -06:00
Pierre Gayvallet
9984c06a01
Move core config service to kbn/config package (#76874) (#77575)
* move deprecations and raw loader to package

* move config service to package

* start to adapt the usages

* adapt yet more usages

* update generated doc

* move logging types to `@kbn/logging`

* update generated doc

* add yarn.lock symlink

* merge @kbn-logging PR

* adapt Env.createDefault

* update generated doc

* remove mock exports from the main entrypoint to avoid importing it in production code

* use dynamic require to import `REPO_ROOT` from bootstrap file

* move logger mock to kbn-logging package

* address review comments

* import PublicMethodOf from kbn/utility-types

* fix import conflict

* update generated doc

* use the @kbn/std package

* update generated doc

* adapt plugin service mock
2020-09-16 11:05:33 +02:00
Mikhail Shustov
ee8bc62637
Extract src/core in a separate TS project (#76785) (#77509)
* break dependency on data plugin TS code

* move global typings to @kbn/utility-types

* import types from @kbn/utility-types

* remove type dependency on plugins

* add intermediate js files to break dependency on outter TS code

* temp type declaration for query-string

* declare src/core project

* export types to reference in the built d.ts files

* reference core project

* move jest types out of kbn/utility-types due to a clash with mocha types

* fix wrong es_kuery path and ts project paths

* reference core from packages consuming it

* x-pack & oss should use the same lodash version

* Revert "x-pack & oss should use the same lodash version"

This reverts commit 79cec5781e.

* use the same lodash version

* fix @types/lodash TS2300: Duplicate identifier error

* fix wrong imports

* update docs

* update docs

* add a comment why file is needed
# Conflicts:
#	packages/kbn-utility-types/index.ts
#	src/core/public/application/capabilities/capabilities_service.mock.ts
#	src/core/public/chrome/chrome_service.mock.ts
2020-09-16 07:51:42 +02:00
Tyler Smalley
9da8f8aa4a
[7.x] Adds @kbn/utils package (#76518) (#77531)
Moves common utility functions to obtain the repository root,
paths (config/data), and Kibana package.json to a @kbn/utils package.
Moving these existing functions allows them to be used in production, in
other packages because of Kibana.

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

* [@kbn/utils] Adds missing dependency (#77536)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-09-15 14:03:19 -07:00
Michail Yasonik
1868e6ba9c
[7.x] Stacked headers and navigational search (#72331) (#77407)
Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-09-15 11:37:16 -05:00
Pierre Gayvallet
07481527c6
Create the @kbn/std package (#77329) (#77477)
* move `src/core/utils` to the @kbn/std package

* update README

* update codeowners and add yarn lock file

* remove export from src/core/public and src/core/server and use package import instead

* update generated doc

* adapt forgotten import

* update `data` plugin doc
# Conflicts:
#	.github/CODEOWNERS
#	src/core/public/application/capabilities/capabilities_service.mock.ts
#	src/core/public/index.ts
2020-09-15 17:15:39 +02:00
Ahmad Bamieh
0764fc7d92
[7.x] [telemetry] add schema guideline + schema_check new check for --path config (#75747) (#77358) 2020-09-14 19:19:13 +03:00
Ahmad Bamieh
62ee38ad82
[7.x] [Telemetry Tools] update lodash to 4.17 (#77317) (#77354) 2020-09-14 19:16:55 +03:00
Thomas Watson
abf8f6fb83
[7.x] Bump yargs-parser to v13.1.2+ (#77009) (#77301)
# Conflicts:
#	yarn.lock
2020-09-14 12:41:34 +02:00
Mikhail Shustov
384e79c905
remove unused test_utils (#76528) (#76739)
* remove unused utils

* remove unnecessary aliases
2020-09-14 10:27:33 +02:00
Nick Partridge
cf0c825b49
Upgrade elastic charts to 21.1.2 (#76939) (#77274) 2020-09-11 22:10:56 -05:00
Marta Bondyra
6a91490854
[Lens] Filters aggregation (#75635) (#77242) 2020-09-10 23:15:38 +02:00
Caroline Horn
ee7d3075a1
Using new EUI globals files and importing Charts themes via SASS (#76821) (#76965) 2020-09-08 15:51:35 -04:00
Spencer
260b887493
[7.x] [eslint] convert to @typescript-eslint/no-unused-expressions (#76471) (#76802)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 11:55:18 -07:00
Mikhail Shustov
19b212d6f2
Remove LP deprecations (#76536) (#76749)
* inline deprecations in kbn-test

* remove LP deprecations

* remove test

* inline log call

* remove unnecessary deprecations for the test config
2020-09-04 14:02:27 +02:00
Dario Gieselaar
7febd5a5f1
[7.x] es-archiver: Drop invalid settings, --query flag (#76522) (#76742)
* ESArchiver: Drop invalid index settings, support --query flag for saving archive

* Describe query flag
2020-09-04 10:53:03 +02:00
Mikhail Shustov
bd66fab861
Introduce TS incremental builds & move src/test_utils to TS project (#76082) (#76632)
* move test_helpers to the core

* create base tsconfig

* all tsconfigs use the base one

* use test_helpers exposed from the src/core

* move getFieldFormatsRegistry to data plugin

* add test_utils project

* compile types after checkout

* add a stub for platform tsconfig.json

* fix broken import

* fix broken path to the base config

* set tsBuildInfoFile for project without outDir

* do not commit tsbuildinfo file

* do not check output d.ts files

* fix type error

* use separate config to build types

* rollback changes to include paths

* mute import zone error

* rename files to avoid references to tsd

* do not use tsd for type tests

* include all ts files in project

* run buildRefs before type check to ensure the latest version

* store tsbuildinfo locally

* update paths to base config

* comment out core/tsconfig.json

* remove ui path

* fix wrong tsbuildinfo path
2020-09-03 23:02:05 +02:00
Luke Elmers
e934fb8b36
[data.search.SearchSource] Remove legacy ES client APIs. (#75943) (#76676) 2020-09-03 14:47:38 -06:00
Spencer
c9df4d7813
[7.x] [release notes] automatically retry on Github API 5xx errors (#76447) (#76674)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-03 12:27:47 -07:00
Thomas Watson
738370c908
[7.x] Bump end-of-stream from v1.4.1 to v1.4.4 (#76479) (#76553) 2020-09-03 08:15:36 +02:00
Spencer
d0f441ea44
[7.x] [esArchiver] stop importing stream helpers from src (#76519) (#76548)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-02 13:47:27 -07:00
Tiago Costa
b6821d08ad
chore(NA): add elastic prefix to eslint-config-kibana (#76059) (#76317)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 16:37:26 +01:00
Thomas Watson
802f101fa7
[7.x] Bump bl sub-dependency (#76260) (#76301)
# Conflicts:
#	yarn.lock
2020-09-01 09:25:21 +02:00
Greg Thompson
60c2737155
Upgrade EUI to v28.2.0 (#75700) (#76313)
* eui to v28.0.0

* eui to 28.2.0

* euiselectableoptions type update

* targeted nohoist

* src snapshot updates

* x-pack snapshot updates

* strong -> mark

* upgrade @elastic/charts to v21.0.1

* strong -> mark

* fix charts version merge

* maps -> add_field_tooltip_popover type update

* snapshot update

* Fix gridline visibility

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2020-08-31 13:28:43 -06:00
Spencer
c8a93b688b
[7.x] [plugin-helpers] improve 3rd party KP plugin support (#75019) (#76209)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-27 16:43:58 -07:00
Mikhail Shustov
1c1dbe5c95
Update to TS v4 (#73924) (#76069)
* bump ts to v4

* MOAR RAM

* fix type errors for OSS

* first pass on x-pack errors

* second pass on x-pack type errors

* 3rd pass on x-pack type-errors

* mute errors if complex cases

* don't delete if spread suffices

* mute other complex cases

* make User fields optional

* fix optional types

* fix tests

* fix typings for time_range

* fix type errors in x-pack/tests

* rebuild kbn-pm

* remove leftovers from master update

* fix alert tests

* [Telemetry Checker] TS4 Fixes

* bump to 4.0.1-rc

* fix new errors in master

* bump typescript-eslint to version supporting TS v4 syntax

* fix merge commit errors

* update to the stable TS version 4.0.2

* bump ts-eslint to version supporting ts v4

* fix typo

* fix type errors after merge

* update ts in another new package.json

* TEMP: remove me

* Revert "TEMP: remove me"

This reverts commit dc0fc3bae6.

* [Telemetry] Update snapshot for new TS4 SyntaxKind

* bump prettier to support TS v4 syntax

* fix prettier rules

* last style change

* fix new type errors

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
# Conflicts:
#	packages/kbn-i18n/package.json
#	x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx
#	x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx
2020-08-27 12:21:43 +02:00
Alejandro Fernández Haro
02b6ceaff5
[Telemetry] Add Application Usage Schema (#75283) (#75970)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-27 08:37:25 +01:00
Luke Elmers
36d24b92e5
[@elastic/datemath] Remove build step from datemath package. (#75505) (#75944)
* Remove build step from datemath.

* Remove outdated docs reference to datemath.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-26 06:15:47 -06:00
Spencer
2d26c41772
[7.x] [remove] production deps which are only used in public code (#75838) (#75893)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-25 11:22:13 -07:00
Ahmad Bamieh
de32e9f8f2
[7.x] [Telemetry] schema check throw on missing schema (#75750) (#75767)
* [Telemetry] schema check throw on missing schema (#75750)

* update schema for 7.x
2020-08-24 21:22:36 +03:00
Stacey Gammon
d6a84a92c2
Add asciidoc support for generated plugin list (#72292) (#75778)
* add asciidoc support for generated plugin list

Try level offset "=+2" instead of "=+1" to stop the inlining of the includes.

remove +2 back to +1

* Remove asciidoc, switch to regex. Rearrange dev guide to avoid nesting limit.

* Add tests for regex

* add a description to not throw off the table. Remove the heading from the paragraph snippet.

* Fix more READMEs so table renders correctly

* Update plugin list

* Remove code-exploration file, moved to plugin-list

* fix typo

* Add link to developer examples

* Update plugin list

* fix typo
# Conflicts:
#	docs/developer/architecture/code-exploration.asciidoc
2020-08-24 14:16:59 -04:00
Greg Thompson
9f79aa6a94
[7.x] Upgrade EUI to v27.4.1 (#75240) (#75673)
* Upgrade EUI to v27.4.1 (#75240)

* eui to 27.4.1

* src snapshot updates

* x-pack snapshot updates

* remove increased default timeout

* revert date change

* delete default_timeout file

* reinstate storyshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* merge resolution

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-21 14:05:06 -06:00
Josh Dover
bd71bdbea7
Add support for reading request ID from X-Opaque-Id header (#71019) (#75502)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-21 11:23:53 -06:00
Spencer
65293aa2eb
[7.x] [kbn/plugin-generator] remove sao, modernize (#75465) (#75619)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-21 08:16:22 -07:00
Jean-Louis Leysens
8ea2bb3296
[Monaco] Refactor the way XJSON grammar checker gets registered (#75160) (#75288)
* Refactor the way XJSON grammar checker gets registered

- avoid registering multiple model add listeners
- remove regsiterGrammarChecker from public API!
- fix getWorker handler to register XJSON only for XJSON models

* remove unused import

* updateAnnos -> updateAnnotations
2020-08-18 17:07:47 +02:00
Joe Portner
d9d4e9ddc9
lodash 4.17.19 -> 4.17.20 (#75205) (#75225) 2020-08-17 23:59:43 -04:00
Greg Thompson
2e5e06bad6
Upgrade EUI to v27.4.0 (#74004) (#75064)
* eui to 27.1.0

* eui to 27.2.0

* buttoniconside type

* euiselectable type

* update onScroll callback and polyfill size references

* findTestSubject ts

* buttoncontent and collapsiblenav src snapshot updates

* update prop retrieval

* xpack snapshots

* jest updates

* type fixes

* more snapshots

* virtual list changes

* more virtualization changes

* merge

* fix functional tests

* data-test-subj for indexPatter-switcher

* storyshots

* eui to 27.3.1

* Fix unit tests

* Fix broken unit test

* Updated snapshots

* Fixed types

* search for value in euiselectable before selection

* select the correct element

* mock virtualized dep

* ts fix

* reinstate storyshot

* ts fix

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 17:55:16 -06:00
Brian Seeders
2ece4f12a4
[7.x] [CI] Add pipeline task queue framework and merge workers into one (#71268) (#74276) 2020-08-14 16:41:47 -04:00
Spencer
47897a2780
[7.x] Remove legacy optimizer (#73154) (#74966)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-13 12:36:25 -07:00
Spencer
e517adc529
[7.x] [bin/kibana-plugin] support KP plugins instead (#74604) (#74917)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-12 18:24:26 -07:00
Spencer
cbda7878f0
[7.x] [babel] coalese some versions to prevent breaking yarn install (#74864) (#74898)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2020-08-12 14:52:17 -07:00
Tyler Smalley
173cae0028
Bump chalk to 4.1.0 (#73397) (#74762)
https://github.com/chalk/chalk/releases

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-08-11 09:09:37 -07:00
Thomas Watson
45e460e4c8
Bump angular dependency from 1.7.9 to 1.8.0 (#74482) (#74734) 2020-08-11 14:17:42 +02:00
Mikhail Shustov
d5220d1baf
[7.x] bump babel deps to support TS v4 (#74495) (#74591)
* bump babel deps to support TS v4 (#74495)

# Conflicts:
#	yarn.lock

* update yarn lock
2020-08-07 04:08:53 +02:00
Clint Andrew Hall
2df86b8709
[7.x] [kbn-storybook] Kill tsdocgen for immediate perf improvement (#74059) (#74548)
* [kbn-storybook] Kill tsdocgen for immediate perf improvement

* Addressing feedback
2020-08-06 17:50:43 -04:00
Spencer
33966df69e
[7.x] [browserslist] remove user-agent sniffing for IE support hint (#74464) (#74573)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-06 12:51:53 -07:00
Mikhail Shustov
b2040a5a1b
[7.x] Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) (#74384)
* Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091)

* bump @typescript-eslint deps

* update rules

* fix errors in pacakges

* fix src/

* fix x-pack

* fix test

* fix typings

* fix examples

* allow _ as prefix and suffix

* roll back prefix and suffix changes

* add eslint-plugin-eslint-comments

* report unused rules

* remove unused eslint comments from tests

* remove unused eslint comments 2nd pass

* remove unused eslint comments from src/

* remove unused comments in x-pack

* use no-script-url and no-unsanitized/property for ts files

* remove unused eslint comments

* eui/href-or-on-click removed when not complained

* no import/* rules for ts files

* cleanup

* remove the unused eslint-disable

* rollback unnecessary changes

* allow underscore prefix & sufix in type name

* update docs

* fix type error in enterprise search plugin mocks

* rename platform hack __coreProvider --> _coreProvider

* rollback space removal in src/core/public/legacy/legacy_service.test.ts

* fix naming convention in APM
# Conflicts:
#	src/legacy/ui/public/new_platform/new_platform.ts
#	x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx

* remove unnecessary comment
2020-08-05 21:45:29 +02:00
Spencer
7f27248545
[7.x] [src/dev/build] build Kibana Platform bundles from source (#73591) (#74313)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-04 17:24:06 -07:00
Spencer
ff7254683d
[7.x] [kbn/optimizer] remove unused modules (#74195) (#74278)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-04 14:30:48 -07:00
Spencer
5500891727
[7.x] [kbn/optimizer] remove unneeded DisallowSyntaxPlugin (#74178) (#74194)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-04 12:40:31 -07:00
John Dorlus
51a640e77d
The directory in the command was missing the /generated directory and would cause all definitions to be regenerated in the wrong place. (#72766) (#74019) 2020-07-31 17:43:28 -04:00
Spencer
428a021db6
[7.x] move and unify postcss config into @kbn/optimizer (#73633) (#73856)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-30 13:07:24 -07:00
Spencer
86f6af71dc
[7.x] [kbn/optimizer] restore x-pack bundle banner (#73767) (#73850)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-30 12:33:54 -07:00
Spencer
d64ff63781
[7.x] [build] rewrite source as transpiled JS later in the process (#73749) (#73765)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-29 19:33:12 -07:00
Clint Andrew Hall
04b09ef26d
[7.x] [kbn-storybook] Update Storybook to 5.3.19 (#73320) (#73671)
Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-29 21:04:37 -04:00
Spencer
60ec901f64
[7.x] Remove karma (#73126) (#73328)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-28 10:19:26 -07:00
Spencer
de61567825
[7.x] [kbn/optimizer] log info about the metrics being reported even when reporter is disabled (#73389) (#73480)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-28 10:01:11 -07:00
Spencer
64ee94c2c0
[7.x] [src/dev/build] typescript-ify and convert tests to jest (#72525) (#73108)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-23 12:41:11 -07:00
Spencer
5843bb8d7c
[7.x] [kbn/test/failed_test_reporter] handle cypress junit better (#72968) (#73083)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-23 10:41:38 -07:00
Spencer
e98ba6c705
[7.x] [kbn/es-archiver] move to a package (#72318) (#72871)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-22 11:29:11 -07:00
Liza Katz
ba3a97dc37
[Plugin Generator] Generate tsconfig and useDefaultBehaviors (#72040) (#72443)
* improve test stability

* add a tsconfig file and useDefaultBehaviors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-22 09:08:43 +03:00
Stacey Gammon
d6c9104b5f
Fix indentation level in code exploration doc (#72274) (#72693)
* fix indentation level in code exploration doc

* run the script to update the file
2020-07-21 14:54:52 -04:00
Mikhail Shustov
939f434ae0
[7.x] Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231) (#72595)
* Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231)

* bump @elastic/elasticsearch to 7.9.0-rc1

* bump other packages using @elastic/elasticsearch

* bump es client to rc2

* update code for new typings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 15:36:22 +02:00
Spencer
97e1bf8be2
[7.x] [kbn/dev-utils] add RunWithCommands utility (#72311) (#72342)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-17 15:39:49 -07:00
Tiago Costa
ce9176093b
chore(NA): teardown dynamic dll plugin (#72096) (#72248)
* chore(NA): teardown dynamic dll plugin

* chore(NA): remove missing ts-ignore

* chore(NA): remove last mentions to the DLL machinery

* chore(NA): update notice file

* prevent duplication and searching target/public

* remove changes to es-ui code to unblock pr

* add node internals override for legacy tests bundle

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/dev/notice/generate_notice_from_source.ts
#	src/optimize/base_optimizer.js
2020-07-17 13:51:29 +01:00