Commit graph

885 commits

Author SHA1 Message Date
Pierre Gayvallet
1e92db2e76
[7.7] implements extends to ObjectSchema (#68067) (#68647)
* implements `extends` to `ObjectSchema` (#68067)

* implements `extends` to `ObjectSchema`

* add unit tests

* use expectType for types assertions

* allow to extends options

* add comment about deep extend
# Conflicts:
#	packages/kbn-config-schema/src/types/object_type.test.ts

* add missing import

* fix type
2020-06-09 19:45:02 +02:00
Spencer
80f29fbbdc
[7.7] [ci/stats] fix merge base detection (#67030) (#67536)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-27 13:18:41 -07:00
Spencer
7df868b300
Revert/7.7/optimizer workers changes (#67245)
* Revert "[7.7] [kbn/optimizer] remove disconnect listener (#67161) (#67185)"

This reverts commit a1c7cf1aa6.

* Revert "[7.7] [kbn/optimizer] poll parent process to avoid zombie processes (#67059) (#67119)"

This reverts commit e6a5a9d31b.

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-23 12:45:29 -07:00
restrry
0f453a6023 update kbn-pm 2020-05-22 11:49:46 +02:00
restrry
846ff4ace1 update styles 2020-05-22 11:46:32 +02:00
restrry
5aef426e52 bump prettier version 2020-05-22 11:33:58 +02:00
Spencer
a1c7cf1aa6
[7.7] [kbn/optimizer] remove disconnect listener (#67161) (#67185) 2020-05-21 11:58:50 -07:00
Spencer
bd5f65dc6f
[7.7] [kbn/optimizer] ensure build script can prime cache (#67020) (#67191) 2020-05-21 11:48:46 -07:00
Spencer
2863d4feca
[7.7] [kbn/optimizer] require fsevents on macos (#67147) (#67160) 2020-05-21 11:33:57 -07:00
Spencer
d5aac4ccba
[7.7] [kbn/es] retry fetching native realm users (#66511) (#67145) 2020-05-21 02:22:39 -07:00
Spencer
e6a5a9d31b
[7.7] [kbn/optimizer] poll parent process to avoid zombie processes (#67059) (#67119) 2020-05-20 10:31:47 -07:00
Spencer
8f029ad751
[7.7] [kbn/plugin-helpers] typescript-ify (#66513) (#66792) 2020-05-15 16:50:17 -07:00
Spencer
a40a94b5ba
[plugin-helpers] remove outdated postinstall task (#66324) (#66339) 2020-05-13 01:52:35 -07:00
Brian Seeders
7092f396eb
Throw error in kbn-es when no reserved users found (#65911) (#66235) 2020-05-12 12:32:50 -04:00
Joe Portner
b4e79f3389
[7.7] Bump jquery from 3.4.1 to 3.5.0 (#64884) (#65325) 2020-05-05 16:41:10 -04:00
Spencer
00d92e6ba2
[7.7] [kbn/pm] use mtime of untracked files in bootstrap cache key (#64293) (#64605) 2020-04-27 23:30:50 -07:00
Spencer
c5f682cbbc
[7.7] Implement basic CI metric reporting (#64263) (#64581) 2020-04-27 16:28:30 -07:00
Tiago Costa
5746c66597
fix(NA): node module main field resolution for new platform (#63886) (#64304)
* fix(NA): node module main field resolution for new platform

* chore(NA): remove browserify from kbn optimizer main fields

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-24 02:28:34 +01:00
Brian Seeders
d7319362b6
[FTR] Add test suite metrics tracking/output (#62515) (#64003) 2020-04-21 10:56:53 -04:00
Dmitry Lemeshko
11e950f12e
[FTR]: add chromium-based Edge browser support (#63566) (#63734) 2020-04-16 22:27:43 +03:00
Dmitry Lemeshko
f081cedf2c
[7.7] Revert FTR: add chromium-based Edge browser support (#61684) (#63063) (#63485)
* Revert "FTR: add chromium-based Edge browser support (#61684) (#63068)"

This reverts commit e8caa06f19.

* update lock file
2020-04-15 10:21:50 +03:00
Dmitry Lemeshko
bc9eb19865
update chromedriver dependency to 81.0.0 (#63266) (#63286) 2020-04-11 12:21:11 +03:00
Marco Vettorello
f855736130
[TSVB] Fix wrongly display stacked as percentage charts (#62654) (#63198)
Update to  elastic-charts 18.2.2 with the valid 0% rendering
2020-04-10 10:12:48 +02:00
Dmitry Lemeshko
e8caa06f19
FTR: add chromium-based Edge browser support (#61684) (#63068)
* bump dependency, add edge support in ftr services

* add config files

* fix browser version for msedge

* use npm ms-chromium-edge-driver

* download edge driver aside from session creation

* move dependency to dev

* update dist/index file

* bump edge-driver version

* change type to msedge to match w3c spec

* fix discover tests for Edge

* Revert "fix discover tests for Edge"

This reverts commit 87e7fdd256.

* bump driver version up

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-09 12:34:29 +03:00
Spencer
3fb7bf31aa
[7.7] [kbn/optimizer] link to kibanaReact/kibanaUtils plugins… (#63011)
* [kbn/optimizer] link to data/kibanaReact/kibanaUtils plugins

* depend on normalize-path package

* typos

* avoid loading kibanaUtils and kibanaReact from urls

* update types and tests, now that whole plugin is exported to window

* update snapshot, removed export of `plugins` property

* fix condition, ignore things NOT in data/react/utils

* make es_ui_shared a "static bundle" too

* move kibana_utils/common usage to /public

* convert some more /common usage to /public

* use async-download/ordered-execution for bootstrap script

* fix typo

* remove kibanaUtils bundle

* remove kibanaReact bundle

* Revert "remove kibanaReact bundle"

This reverts commit f14e9ee604.

* Revert "remove kibanaUtils bundle"

This reverts commit a64b2a7f64.

* stop linking to the data plugin

* add comment pointing to async-download info

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/legacy/core_plugins/kibana/public/discover/kibana_services.ts
#	src/legacy/core_plugins/vis_type_metric/public/services.ts
#	src/legacy/core_plugins/vis_type_table/public/services.ts
#	src/legacy/core_plugins/vis_type_vislib/public/services.ts
#	src/legacy/core_plugins/visualizations/public/np_ready/public/legacy.ts
2020-04-08 14:27:25 -07:00
Spencer
baf3e059c5
[7.7] [kbn/ui-shared-deps] expand and split (#62364) (#62523)
* [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>

* downgrade elasticsearch-browser and updated yarn.lock

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-04 22:56:12 -07:00
liza-mae
117cfa9efb
[7.7] Update percy agent to latest version (#62089) (#62187)
* Update percy agent to latest version (#62089)

* Update percy agent to latest version

* Update kbn-pm index

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

* Update kbn-pm index

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-01 14:15:12 -06:00
Spencer
7321d5e0f1
[7.7] [optimizer] validate the syntax of bundled node_modules… (#61905)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	renovate.json5

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 20:16:31 -07:00
Spencer
c691f6553e
[7.7] [plugin-generator] rewrite tests to match new generated… (#61676)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-03-27 14:37:20 -07:00
Marco Vettorello
1d6552c43f
fix(line_annotation): keep the spec in state after chart rerender (#61499) (#61600) 2020-03-27 15:46:40 +01:00
Jean-Louis Leysens
58a50b7855
[7.7] [Console] Clean up after initial 7.7.0 spec definitions… (#61418)
* Move JSON files in console_extensions to mirror console struct.

Also update the spec-to-console package README.md with the new
instructions.

* Re-add flat settings completion in indices.put_template

* Re-add template completion suggestions for indices.get_template

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 14:25:27 +01:00
CJ Cenizal
477dde5cf8
[Console] Update spec definitions for 7.7.0 (#61080) (#61197)
* Update and cleanup existing OSS spec
* Including some maintenance on existing overrides
* Update x-pack spec definitions and overrides

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2020-03-24 19:52:44 -07:00
Brian Seeders
57d68c7741
kbn-es: Support choosing the correct architecture (#61096) (#61130) 2020-03-24 17:11:10 -04:00
CJ Cenizal
1cfecfcab9
Create Painless Lab app (#57538) (#61015)
* Create Painless Playground app (#54578)

* Replace heart script with smiley face script. (#57755)

* Rename Painless Playground -> Painless Lab. (#57545)

* Fix i18n namespace.

* Improve smiley face proportions.
- Add def keyword to Painless spec.
- Temporarily fix broken highlighting.
- Add small padding to main controls.

* [Painless Lab] Minor Fixes (#58135)

* Code restructure, improve types, add plugin id, introduced hook

Moved the code execution hook to a custom hook outside of main,
also chaining off promise to avoid lower level handling of
sequencing.

* Re-instated formatting code

To improve DX the execution error response from the painless API
was massaged to a more reader friendly state, only giving non-repeating
information.

Currently it is hard to determine the line and character information from
the painless endpoint. If the user wishes to see this raw information it
will be available in the API response flyout.

* Remove leading new line in default script

* Remove registration of feature flag

* Fix types

* Restore previous auto-submit request behaviour

* Remove use of null and remove old comment

Stick with "undefined" as the designation for something not existing.

* [Painless Lab] NP migration (#59794)

* Fix sample document editor.

* [Painless Lab] Fix float -> integer coercion bug (#60201)

* Clarify data and persistence flow. Fix floating point precision bug.
* Send a string to API and ES client instead of an object.

* Rename helpers lib to format. Add tests for formatRequestPayload.

* Add query parameter to score context (#60414)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* Fix borked i18n

* Fix i18n

* Another i18n issue

* [Painless] Minor state update model refactor (#60532)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* WiP on state refactor

* Some cleanup after manual testing

* Fix types and i18n

* Fix i18n in context_tab

* i18n

* [Painless] Language Service (#60612)

* Added language service

* Use the correct monaco instance and add wordwise operations

* Remove plugin context initializer for now

* [Painless] Replace hard-coded links (#60603)

* Replace hard-coded links

Also remove all props from Main component

* Pass the new links object to the request flyout too

* Link directly to painless execute API's contexts

* Remove responsive stacking from tabs with icons in them.

* Resize Painless Lab bottom bar to accommodate nav drawer width (#60833)

* Validate Painless Lab index field (#60841)

* Make JSON format of parameters field more prominent. Set default parameters to provide an example to users.
* Set default document to provide an example to users.
* Simplify context's updateState interface.
* Refactor store and context file organization.
  - Remove common directory, move constants and types files to root.
  - Move initialState into context file, where it's being used.
* Add validation for index input.
* Create context directory.

* Fix bottom bar z-index.

* Position flyout help link so it's bottom-aligned with the title and farther from the close button.

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
2020-03-23 18:17:19 -07:00
Chandler Prall
fa0c700c92
[7.x] Upgrade EUI to 21.0.1 (#60282) (#60809)
* Upgrade EUI to 21.0.1 (#60282)

* update to eui 21.0.1

* most changes needed for search bar ts changes

* Passing types

* snapshots

* jest tests

* Removed IQuery placeholder types

* Updated functional test to only look at table headers with content

* Moved 'filters' definition around in api docs

* Update types

* update snapshot

* typo

* Move DATA_FRAME_TASK_STATE enum to its own file to fix x-pack functional test config imports

* merge public api 'changes'

Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>

* unit test update

Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-03-20 23:09:36 -06:00
Marco Vettorello
c96faa6bea
Update dependency @elastic/charts to v18.1.0 (#60578) (#60775) 2020-03-20 22:58:01 +01:00
Gidi Meir Morris
08384027cb
[Alerting] Adds navigation by consumer and alert type to alerting (#58997) (#60605)
Adds Navigation APIs to Alerting.

Parts to this PR:

Adds a client side (Public) plugin to Alerting, including two APIs: registerNavigation & registerDefaultNavigation. These allow a plugin to register navigation handlers for any alerts which it is the consumer of- one for specific AlertTypes and one for a default handler for all AlertTypes created by the plugin.
The Alert Details page now uses these navigation handlers for the View In App button. If there's an AlertType specific handler it uses that, otherwise it uses a default one and if the consumer has not registered a handler - it remains disabled.
A generic Alerting Example plugin that demonstrates usage of these APIs including two AlertTypes - one that always fires, and another that checks how many people are in Outer Space and allows you to trigger based on that. 😉 To enable the plugin run yarn start --ssl --run-examples
2020-03-19 13:05:44 +00:00
Thomas Watson
038b9566d7
Upgrade @types/node to match Node.js runtime (#60368) (#60509)
Kibana uses Node.js v10.19.0. The closest version of @types/node to this
version is currently v10.17.17.

This commit updates the resolutions field in package.json to ensure that
the latest version less than 10.20.0 is always used.
2020-03-19 10:17:33 +01:00
Spencer
459cb8a324
[7.x] upgrade execa to get stdout/stderr in error messages (#6… (#60588)
* upgrade execa to get stdout/stderr in error messages

* rebuild kbn/pm

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-03-18 20:22:00 -07:00
Spencer
719dbe781a
[kbn/pm] don't fail when plugins are outside repo (#60164) (#60454)
* [kbn/pm] don't fail when plugins are outside repo

* remove unused import

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-03-18 11:51:22 -07:00
Aleh Zasypkin
90ce69a618
[7.x] Enforce required presence for value/key validation of recordOf and mapOf. (#60491) 2020-03-18 14:06:59 +01:00
Rashmi Kulkarni
d7bb13a311
[7.x] FTR configurable test users (#52431) (#60428)
* FTR configurable test users (#52431)

* initial implementation of configurable test users

* user superuser by default to match master

* referenced the configs in reporting and api integration

* setting the minimum number of default roles

* looking for x-pack tests with users and roles

* add testUserService in dashboard mode tests

* running only ciGroup7

* uncommenting - addign visualization

* re-enabling all CI groups to run on CI

* reinstating Jenkinsfile

* disable Test user for OIDC config

* improved logging and added Roles for OSS tests to get better info on the runs.

* disable test_user for auth tests

* don't fetch enabledPlugins when testuser disabled

* fix es-lint

* running oss tests with x-pack enabled

* [revertme] build default dist for oss tests

* updating NOTICE.txt file as it complained in the kibana intake tests

* changed to pick OSS builds

* trying a license change to trial

* switch back to xpack builds

* created a new sample data role and used it in homepage tests

* revert test/scripts/jenkins_ci_group.sh

* only refresh browser and wait for chrome if we are already on Kibana page

* fix large_string test to use minimum set of roles and privileges

* fix for date nanos custom timestamp with a configured role

* changes to the files with addition of new roles for the test_user

* reverting to OSS changes and few additions to the time_zone test to run as a test_user

* changes to security

* changes to the x-pack test to use elastic superuser

* fix for chart_types test

* fixes to area chart , input control test

* fix for dashboard filtering test and a new config role

* changes to handle the x-pack tests

* additional role for date nanos mixed

* added the logstash role to the accessibility tests

* removed telemetry setting

* docs+few changes to the tests

* removed Page navigation

* removed pageNavigation which was unused

* test/accessibility/apps/management.ts

* update management.ts

* aria label, and other changes

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* accidentally checked in a piped file with results.

* reverted

* unloading of logstash data, fixing aria label

* aria-label

* added the required role

* fix for tsvb chart

* fix for sample data test reverted home_page pageobject file

* changes to sample data test and visualize index file to incorporate OSS changes

* changes to describe() and some more changes to incorporate in settings_page

* re-adding the after()

* removed unwanted roles

* replaced kibana_user with kibana_admin

* added the check of deprecated kibana_user

* testing with kibana_admin  role

* fix for discover test

* incorporated the review comments

* incorporated the review comments

* incorporate review comments and added restoreDefaults()

* removed describe.only

* reverted the OSS logic change I had here- pulled into seperate PR

* incorporated the review comments

* incorporated review changes

* adding hidden=true to find hidden kibanaChrome

* change field.test.tsx to be same as that of master branch

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

* removed the accidentally added file

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-17 18:21:48 -07:00
Brian Seeders
68a76a78e1
[FTR] Add support for --include and --exclude files via tags (#60123) (#60383) 2020-03-17 14:23:49 -04:00
Larry Gregory
489d112f77
[7.x] Allow kbn-config-schema to ignore unknown keys (#59560) (#60407)
* allow kbn-config-schema to ignore unknown keys

* Consolidate unknown key configuration

* updates following merge

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-17 14:23:25 -04:00
Tyler Smalley
692e03536d
[test] Disable ES field data in functional tests (#59100)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-16 16:54:56 -07:00
Mikhail Shustov
80b58a589d
Add UiSettings validation & Kibana default route redirection (#59694) (#60257)
* add schema to ui settings params

* add validation for defaults and overrides

* validate in ui settings client

* ui settings routes validation

* clean up tests

* use schema for defaultRoutes

* move URL redirection to NP

* fix spaces test

* update docs

* update kbn pm

* fix karma test

* fix tests

* address comments

* get rid of getDEfaultRoute

* regen docs

* fix tests

* fix enter-spaces test

* validate on relative url format

* update i18n

* fix enter-spoace test

* move relative url validation to utils

* add CoreApp containing application logic

* extract public uiSettings params in a separate type

* make schema required

* update docs
2020-03-16 18:09:51 +01:00
Corey Robertson
54c7a4b6d8
Move canvas to use NP Expressions service (#58387) (#59749)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-13 10:56:23 -04:00
patrykkopycinski
9d5582bcc4
Revert "[7.x][SIEM] apollo@3 (#51926)" (#59637)
* Revert "[SIEM] apollo@3 (#51926)"

* cleanup
2020-03-09 12:17:25 -07:00
Anton Dosov
84a7642f7c
[Drilldowns] <ActionWizard/> Component (#59032) (#59579)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-09 11:04:09 +01:00
Pierre Gayvallet
0c57aa83ab
[7.x] Hide input value from kbn-config-schema error messages (#58843) (#59565)
* Hide input value from kbn-config-schema error messages (#58843)

* use inline snapshots instead of snapshots

* hide input value from error messages

* update core snapshots

* update xpack snapshots

* fix ftr assertions

* fix new snapshots

* hide values for byte_size and duration

* update new snapshots

* remove another byte_size value reference

* fix yet another value references in error messages

* update xpack snapshots

* update xpack ftr assertions

* update snapshots
2020-03-08 14:02:16 +01:00