Commit graph

1172 commits

Author SHA1 Message Date
renovate[bot] 745b5c1271
Update dependency @elastic/charts to v23.1.1 (#78459)
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>
2020-10-05 16:12:34 -07:00
Ahmad Bamieh 025af1ad3f
remove react-intl from kibana and keep it inside only i18n package (#78956)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 01:41:49 +03:00
Josh Dover c3076a8011
Prepare APM agent configuration for production use (#78697) 2020-10-05 15:01:04 -06:00
Chandler Prall 3bad1fc328
Upgraded EUI to v29.3.0 (#78870)
* 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

* Revert vega snapshot update

I don’t think this was intended to change when I ran the updater

* [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 12:44:29 -06:00
Patryk Kopyciński 8a8066ffe8
Cleanup yarn.lock from duplicates (#66617) 2020-10-03 11:53:03 +02:00
Spencer ddf2d82e44
[kbn/optimizer] implement more efficient auto transpilation for node (#79052)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 18:36:25 -07:00
Spencer dc0bccf8f8
[babel/register] remove from build (take 2) (#79379)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 16:30:16 -07:00
spalger f7a18e6454 Revert "[babel/register] remove from build (#79176)"
This reverts commit 511eb0f23b.
2020-10-02 14:49:01 -07:00
Spencer 511eb0f23b
[babel/register] remove from build (#79176)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-02 13:24:39 -07:00
Alejandro Fernández Haro 9973667f4c
[Usage Collection] [schema] apm (#79000) 2020-10-02 19:24:08 +01:00
Nick Partridge e9fd3902c5
upgrade @elastic/charts to v23.0.0 (#79226)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 19:48:40 +02:00
Spencer bb4ad196ea
normalize paths before printing them into the generated plugin list (#79232)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 09:50:49 -07:00
Tiago Costa e5d8d49164
chore(NA): assures a single version for the same dependency across the entire project (#78825)
* chore(NA): script to check for multiple version of same dependency

* chore(NA): remove multiple versions for the same dependency

* chore(NA): hook single_version_dependencies script into the CI

* chore(NA): remove grunt from the CI hook integration

* chore(NA): update kbn pm dist

* chore(NA): fix typechecking

* chore(NA): update code to run under last extract-zip version

* fix(NA): multiple versions of the same type dependency

* move validation to bootstrap (#13)

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

* chore(NA): todo to remove logic to validate single version deps once we move into a single package.json

* chore(NA): remove verify dependency versions jenkins task

* chore(NA): update kbn pm dist file

* chore(NA): remove last mention to verify_dependency_versions.sh fom tasks.groovy

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-10-02 00:46:00 +01:00
Spencer 0ee253e9e0
[optimizer] strip proptypes from plugin bundles in production (#79221)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-01 16:43:13 -07:00
Tyler Smalley 7211f78ce1
Bumps Jest related packages (#78720)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-01 14:38:51 -07:00
Spencer 12d0125024
[babel] remove unused/unneeded babel plugins (#79173)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 12:23:45 -07:00
Pierre Gayvallet 4ee3677898
Add relative path handling to application.navigateToUrl (#78565)
* 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 17:10:09 +02:00
Jean-Louis Leysens c5ab7493e5
[ES UI] Reintroduce import of brace/mode/json (#78571)
* 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>
2020-10-01 12:20:33 +02:00
Spencer 71dc864dfb
[kbn/config] don't include x-pack/examples with --oss (#79032)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-30 15:19:06 -07:00
Paul Tavares 15e7623ecf
[SECURITY_SOLUTION][ENDPOINT] Improve Endpoint Host data generator to also integrate with Ingest (#74305)
* 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-09-30 16:07:58 -04:00
Spencer 353595617b
[kbn/ui-shared-deps] track asset sizes (#78718)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 22:14:59 -07:00
Spencer 4c4d28ad35
delete target before building (#78665)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 21:59:11 -07:00
Nathan L Smith 564a7b1a17
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
2020-09-29 19:34:05 -05:00
Alejandro Fernández Haro 66866d0af1
[Usage Collection] [schema] reporting + add MappedType support (#78591) 2020-09-29 19:00:09 +01:00
Spencer 66ad3b4ad2
[dev/watching] upgrade chokidar and remove missing source dirs (#78723)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 08:14:20 -07:00
Alejandro Fernández Haro 406c47af46
[Usage Collection] [schema] Support spreads + canvas definition (#78481) 2020-09-29 12:42:13 +01:00
Mikhail Shustov a3b3a4d2f3
fix lodash imports (#78456) 2020-09-29 13:22:55 +02:00
Tyler Smalley da134f3a8f
Aligns several module versions across the repository (#78327)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 16:08:22 -07:00
Spencer f5ca7d82d5
[kbn/optimizer] only build xpack examples when building xpack plugins (#78656)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-28 13:25:15 -07:00
Spencer 3c85d3d2af
[kbn/es] use a basic build process (#78090)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 11:14:17 -07:00
Spencer c8731205d7
[kbn/optimizer] fix .json extension handling (#78524)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 11:13:58 -07:00
Alejandro Fernández Haro db78d70df3
[Usage Collection] [schema] Explicit "array" definition (#78141)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 16:13:21 +01:00
Pierre Gayvallet aa9774faa0
Add the @kbn/apm-config-loader package (#77855)
* 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 15:30:59 +02:00
Spencer ece2e6f5d3
[shared-ui-deps] use a single global version of lodash (#78100)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-24 09:45:01 -07:00
Brittany Joiner 63ce752dc2
Adding comment about importing lodash library (#78156)
* added comment about importing lodash library

* fixed space with prefer

* cleaned up extra space and removed comments for lodash/fp

* took out the comment in server files

* Remove newlines

Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2020-09-24 11:38:11 -05:00
Mikhail Shustov 8ba60a4004
bump query-string version to remove manual type definitions (#78143)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* fix cypress tests

* add )
2020-09-24 17:15:15 +02:00
Jean-Louis Leysens 38e63d1029
[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>
2020-09-24 16:02:14 +02:00
Alejandro Fernández Haro 18f7f042c1
[Usage Collection] Add schema to stack_management (#77897)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 14:05:19 +01:00
Alejandro Fernández Haro 4d08763af7
[Usage Collection] [schema] lens (#77929)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 11:40:59 +01:00
Christos Nasikas 13bd34e2da
[ES-ARCHIVER] Fix bug when query flag is empty (#77983) 2020-09-22 10:12:24 +03:00
Greg Thompson 07891be8fd
Upgrade EUI to v29.0.0 (#77802)
* eui to 29.0.0

* src snapshot updates

* x-pack snapshot updates

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 12:25:37 -06:00
Joe Portner 5a31dce92d
Upgrade and consolidate prop-types and create-react-class (#77803) 2020-09-18 08:16:57 -04:00
Thomas Watson 06e8c54751
Bump node-fetch to 2.6.1 (#77445) 2020-09-17 08:48:06 +02:00
Greg Thompson e5b302eeee
Upgrade EUI to v28.4.0 (#77098)
* 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
2020-09-16 12:10:10 -06:00
Pierre Gayvallet ab92bbb726
Move core config service to kbn/config package (#76874)
* 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 09:17:05 +02:00
Tyler Smalley 93e37af4f1
[@kbn/utils] Adds missing dependency (#77536)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-09-15 12:07:28 -07:00
Tyler Smalley 9acf8d2656
Adds @kbn/utils package (#76518)
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>
2020-09-15 10:34:39 -07:00
Pierre Gayvallet 043ef5e1d7
Create the @kbn/std package (#77329)
* 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
2020-09-15 15:21:05 +02:00
Mikhail Shustov e7d8ea3927
Extract src/core in a separate TS project (#76785)
* 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
2020-09-15 12:41:27 +02:00
Michail Yasonik 61c4e6fd8d
Stacked headers and navigational search (#72331)
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-14 14:32:30 -05:00