Commit graph

975 commits

Author SHA1 Message Date
Lukas Olson
6d762717d1
[KQL] Use cache and other performance improvements (#93319) (#93972)
* [KQL] Use cache and other performance improvements

* Fix test

* Fix jest tests

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 14:36:14 -05:00
Alexey Antonov
7247e9fcb5
[Timelion] Communicate the index pattern to the dashboard (#90623) (#91112)
* [Timelion] Communicate the index pattern to the dashboard

Closes #86418

* update types / limits.yml

* Update timelion_vis_type.tsx

* fix typo

* remove extra await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-02-11 16:35:47 +03:00
Brandon Kobel
57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
Tyler Smalley
baf56d80c4
[7.x] Updating the License (#88343) (#88745)
* Updating the Licenses, except for applying eslint, building

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

Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-01-19 17:54:11 -08:00
Jonathan Budzenski
f6646211ad [build] Migrate grunt license:csv_report to script (#86001)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 09:52:34 -06:00
Jonathan Budzenski
96fa0dbdf9 [build] Migrate grunt ensureAllTestsInCIGroup to script (#85873)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 09:46:00 -06:00
Jonathan Budzenski
8b54edad58 [build] Remove grunt checkPlugins task (#85852)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:21:53 -06:00
Jonathan Budzenski
d9bcdd027b [build] Remove grunt docker:docs task (#85848)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:20:05 -06:00
Tyler Smalley
0c9a3c0979
[7.x] Removes Grunt abstraction from CI tasks (#85210) (#85448)
* Removes Grunt abstraction from CI tasks (#85210)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	tasks/config/run.js
#	test/scripts/jenkins_ci_group.sh
#	test/scripts/jenkins_unit.sh

* [CI] Set correct script execute permissions (#85475)

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-09 14:54:03 -08:00
Dmitry
8e9876ef59
oss tests: replace grunt task with node script (#82371) (#82633)
# Conflicts:
#	tasks/function_test_groups.js
#	test/scripts/jenkins_ci_group.sh
2020-11-05 13:17:33 +01:00
Dmitry
0ae2e7c183
[test/new_visualize_flow] fix config (#82441) (#82596)
* [test/new_visualize_flow] fix config

* fix file extension
# Conflicts:
#	scripts/functional_tests.js
#	tasks/function_test_groups.js
2020-11-04 15:05:00 +01: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
Mikhail Shustov
8fb0ff684c
[KP] Fix Headers timeout issue (#81140) (#81452)
* temp fix request headers bug. issue 73849

* add a focused test

* move test to FTR

* adjust types

* some minors

* small adjustments
2020-10-22 15:26:51 +02:00
Mikhail Shustov
640cf37d0e
run ssl tests on CI (#81320) (#81381) 2020-10-22 07:57:58 +02:00
Larry Gregory
3029dd24c0
Warn users when security is not configured (#78545) (#79596)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	scripts/functional_tests.js
#	tasks/function_test_groups.js
2020-10-05 21:35:23 -04:00
Tiago Costa
86f628d318
chore(NA): merge and solve conflicts with 7.x (#79237) 2020-10-02 02:40:18 +01:00
Tyler Smalley
8d6de20828
Adds some missing licenses to the CSV export (#78719) (#79003)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-09-30 15:33:50 -07:00
Thomas Watson
95bb064afb
[7.x] [CI] ensure tests for @elastic/safer-lodash-set only runs once (#77146) (#77184) 2020-09-14 12:18:08 +02: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
Mikhail Shustov
ab103ffa69
[KP] Expose new es client (#73651) (#73840)
* mark legacy ES client types as deprecated

* expose es client to plugins and update mocks

* ElasticSearchClientMock --> ElasticsearchClientMock

* expose es client mocks

* expose es client via RequestHandlerContext

* convert test/plugin_functional/config into ts

* convert top_nav test into ts

* add an integration test for the es client

* update comments to refer to the new es client

* fix import paths. do not use extensions

temp

* update docs

* fix other refs

* add test for a custom client

* fix context

* add test for scoped client

* update docs
# Conflicts:
#	scripts/functional_tests.js
2020-07-30 21:09:14 +02: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
Tiago Costa
9cf319dc31
chore(NA): fix grunt task for test:coverage (#72539) (#72607) 2020-07-21 14:00:12 +01: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
Aleh Zasypkin
2764abe4e8
[7.x] Add @elastic/safer-lodash-set as an alternative to lodash.set (#71823)
# Conflicts:
#	yarn.lock

Co-authored-by: Thomas Watson <w@tson.dk>
2020-07-15 12:18:47 +02:00
Maja Grubic
95da850ab6
[Dashboard] Add visualization by value to dashboard (#69898) (#70322)
* Plugging in DashboardStart dependency

* Create embeddable by reference and navigate back to dashboard

* Trying to feature flag the new flow

* Feature flagging new visualize flow

* Removing unnecessary console statement

* Fixing typescript errors

* Adding a functional test for new functionality

* Adding a functional test for new functionality

* Fixing test name

* Changing test name

* Moving functional test to a separate folder

* Trying to fix the config file

* Adding an index file

* Remove falsly included file

* Adding aggs and params to vis input

* Serializing vis before passing it as an input

* Incorporating new state transfer logic

* Remove dashboardStart as a dependency

* Trying to get the test to run

* Remove unused import

* Readding spaces

* Fixing type errors

* Incorporating new changes
# Conflicts:
#	scripts/functional_tests.js
#	tasks/function_test_groups.js
2020-06-30 17:00:38 +01:00
Ahmad Bamieh
f1fcd57ed5
[7.x] [Telemetry] Collector Schema (#64942) (#70141)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-28 20:34:33 +03:00
Brian Seeders
64b135594b
[CI] Remove --detectOpenHandles to parallelize Jest tests again (#67413) (#67515) 2020-05-27 14:42:13 -04:00
restrry
2fefd60e90 update code style 2020-05-22 10:35:02 +02:00
Joe Portner
ded2238fac
[7.x] Add lockfile symlinks (#66211) 2020-05-12 12:59:26 -04:00
Spencer
73ae576158
[7.x] use cache busting for KP bundles (#64414) (#64816) 2020-04-29 12:56:48 -07:00
Josh Dover
c42a2d09a3
[7.x] Use runtime publicPath for KP plugin bundles (#64226) (#64327) 2020-04-23 16:03:27 -06:00
Joe Reuter
1718df67a4
Migrate timelion vis (#62819) (#63826) 2020-04-20 11:08:30 +02:00
Larry Gregory
dd3214ffbb
Update cache-control header (#62014) (#62621)
* update cache-control header

* update tests

* update test run config

* remove custom cache-control header for authentication resources

* address test flakiness

* address PR feedback

* revert changes to endpoint test

* revert changes for real this time

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-06 12:07:35 -04:00
Spencer
33fa13eab2
[7.x] [kbn/ui-shared-deps] expand and split (#62364) (#62522)
* [kbn/ui-shared-deps] expand and split (#62364)

* [kbn/ui-shared-deps] expand and split

* add two import styles for eui/react-dom that are new

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

* update yarn.lock file

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-04 10:25:12 -07:00
Spencer
6065f58fa9
[7.x] [optimizer] validate the syntax of bundled node_modules… (#61904)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	renovate.json5
2020-03-30 18:30:57 -07:00
Jonathan Budzenski
7f645bdc7c fix karma debug typo (#60029) 2020-03-12 13:15:14 -05:00
Joe Portner
710111f230
Regenerate core api docs (#59814) (#59857) 2020-03-11 12:00:32 -04:00
Thomas Watson
fc57b6fba2
Harden creation of child processes (#55697) (#59801)
Add general protection against RCE vulnerabilities similar to the one
described in CVE-2019-7609.

Closes #49605
2020-03-10 22:05:30 +01:00
Liza Katz
6956091adf
Generate docs from data plugin (#56955) (#59729)
* Add doc building for data plugin

* Added data server md file

* index file for suggestion component

* Clear out internal imports from public API

* Remove FunctionalComponent usage

* comment out working docs

* Added fixes following @octogonz feedback

* new docs

* Clean up

* Clean up 2

* fix jest

* rename docs script file

* update tasks

* tasks

* update docs
# Conflicts:
#	src/dev/run_check_published_api_changes.ts
2020-03-10 14:00:28 +02:00
Spencer
4a3a2d3c2c
[7.x] run jest with --detectOpenHandles on CI to figure out… (#58777)
* run jest with `--detectOpenHandles` on CI to figure out what is happening with pauses

* focus tests on jest integration

* force kill child processes in config reload test

* skip flaky suite

* increase timeout for looking for installed packages

* run all tests again
2020-02-27 16:24:49 -07:00
Spencer
650a317ee5
[7.x] [kbn/ui-shared-deps] load base css file (#58520) (#58603)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-26 12:40:39 -07:00
Jonathan Budzenski
a2716cc373
[7.x] Refactor test entry by runner (#44679) (#57930)
* Refactor test entry by runner (#44679)

Over the last few years we've increased the number of test runners.
Entry points by test type have become too lage of a category for unique
names, so this moves top level test scripts under yarn and replaces test
types with the runner name.

e.g. `yarn test:browser` -> `yarn test:karma`

Closes #41133

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

* fix merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-21 10:43:49 -06:00
Daniil Suleiman
2339e28279
Generate a static parser, move tests to vis_type_timelion (#55299) (#55401)
* Use generated parser, move tests to vis_type_timelion

* Remove legacy tests

* Create a grunt task for generating a parser
2020-01-22 12:43:01 +03:00
Tiago Costa
63d0b60e4f
chore(NA): merge and solve conflicts with master (#54782) 2020-01-14 19:45:30 +00:00
Spencer
02eead710d
[7.x] share specific instances of some ui packages (#54079) (#54514)
* share specific instances of some ui packages

* remove unnecessary eslint changes, every package will define deps anyway

* remove mentions of moment webpackShims in eslint resolver

* remove use of lodash

* list angular as dep for x-pack

* add operations as codeowner of shared-deps pkg

# Conflicts:
#	.github/CODEOWNERS
#	src/optimize/base_optimizer.js
#	yarn.lock
2020-01-10 20:20:18 -07:00
Stacey Gammon
cf21b2dd15
Embeddable examples on the platform and included with --run-examples flag (#52111) (#53190)
* Add a new platform embeddable example plugin

* Remove extra hello world test impl.

* cleanup

* code review updates

* Change example to highlight and have parent filter out children

* Fix deep comparison of embeddable prop

* adjust help text
2019-12-16 17:45:26 -05:00
spalger
c2c12539b8 autofix all violations 2019-12-13 23:55:01 -07:00
Spencer
cc23912403
[7.x] [kbnClient] Retry uiSettings.replace() calls up to 5 tim… (#52779)
* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper

# Conflicts:
#	src/dev/jest/junit_reporter.js
2019-12-12 06:35:55 -07:00
Maryia Lapata
cd26085445
[Visualize] Shim with local application service (#49891) (#52611)
* Add dashboard updates

* Use I18nProvider instead of I18nContext

* remove unused dependencies

* Centralizing and cleaning up legacy imports

* Fix merge conflict

* fix merge bugs and rename main dynamic entrypoint

* Rename app to legacy_app

* Clear deps

* fix jest tests

* fix saved object finder bug

* Fix unit tests

* Ignore TS

* revert using stateless component for this PR

* fix types

* Fix merge conflicts

* Update deps

* Revert filter bar export

* Revert ts-ignore

* Clean up

* Refactoring

* Fix test

* Remove global_state_sync

* Refactoring

* Remove uiExports/embeddableFactories

* Trigger digest cycle in local angular when vis is changed.

* Fix TS

* Revert back syncOnMount

* Add missed import

* Revert import 'uiExports/embeddableFactories'

* Update app navigation func test

* Update app navigation func test

* Update app navigation func test

* Remove 'kibana-install-dir' arg in pluginFunctionalTestsRelease

* Fix review comments

* Fix code review comments

* Rename alias

* Fix indexPatterns

* Use IndexPatternsContract interface
2019-12-10 15:55:03 +03:00
Spencer
8482d3e892
[7.x] chore(NA): fix licenses task on grunt test task (#51444) (#52139) 2019-12-03 20:11:49 -07:00