Commit graph

27939 commits

Author SHA1 Message Date
Søren Louv-Jansen
4d432f1d9c
Update CODEOWNERS (#47029) 2019-10-01 15:59:16 +02:00
Angela Chuang
16dc1f33b0
[SIEM] Update wording (#46923)
* update title for events histogram

* update case size for TLS table

* remove redundant file
2019-10-01 14:56:05 +01:00
Caroline Horn
cb6aa078e4
[Lens] Making field filters more obvious (#46615)
* Using an EuiFacetButton for filter popover trigger
* Added search icon and padding to field search
* Add padding to sides of filter button
2019-10-01 09:42:27 -04:00
Søren Louv-Jansen
dca6b3b93e
Increase breadcrumb max setting (#46595) 2019-10-01 14:49:54 +02:00
Maja Grubic
f09d01ae5b
Removing New Visualization title on save (#46719)
* Removing New Visualization title on save

* Removing title from saved visualization
2019-10-01 13:22:04 +01:00
Oliver Gupte
1f7715e223 Revert "[APM] Fix agent config flyout state (#46950)" (#46961)
This reverts commit 09ef1a0f0a.
2019-10-01 12:55:33 +02:00
Vadim Dalecky
f4ea04c9cc
Advanced ui actions 2 np (#46948)
* feat: 🎸 move advanced_ui_actions plugin to NP

* fix: 🐛 fix NP plugin configs

* fix: 🐛 remove import from legacy platform
2019-10-01 12:25:45 +02:00
Maryia Lapata
4ac0201260
[Vis: Default Editor] 'Metrics & Axis' tab - unit tests (#45881)
* Add unit tests for ValueAxisOptions

* Add unit tests for ValueAxesPanel

* Add unit tests for index.tsx

* Update index.test.tsx

* Update y_extents.test.tsx.snap

* Rename folder

* Update snapshots

* Fix code review comments

* Move data to mocks.ts

* Replace mount to shallow

* Update snapshots

* Move tests to the same directory as source code files
2019-10-01 11:37:41 +03:00
Artyom Gospodarsky
69bbd1199d
URL field formatter fix (#46332)
* Fix url render relative hyperlinks

* Fix test cases

* Make prefix less errorable

* Add some tests for url formatter
2019-10-01 11:35:26 +03:00
Rudolf Meijering
85c8232c0b
Move KibanaMigrator into Server SavedObjectsService (#43433)
* Rename SavedObjectsService -> SavedObjectsLegacyService

* Expose legacy pluginSpecs from Core LegacyService

* Expose legacy uiExports from Core LegacyService

* Move kibana config to NP

* Expose pluginExtendedConfig from LegacyService

* Make KibanaMigrator NP compatible

* KibanaMigrator -> NP SavedObjectsService

* SavedObjectsService never stop retrying ES connection error

* Move waiting for migrations to complete till after legacy service start

* Fix ESArchiver's KibanaMigrator

* Fix reload logging config tests

* Run migrations on savedobjects start

* Fix env tests

* Fix and make legacy tests more robust/isolated

* Cleanup code

* Fix invalid config test

* Fix SavedObject Migrations logging test

* SavedObjectsService tests

* Lifecycle logging and improve getting kibanaConfig instance

* Fix awaitMigration bug and test

* Fix typing error

* Review comments

* Remove unecessary KibanaConfig class

* Move legacy plugin config extension, specs, uiExports entirely into Core

uiExports, specs, disabledSpecs, config now get injected into KbnServer

* Fix config deprecation test

* Use existing logger mock

* Create SavedObjectsConfig for migration config

* Define KibanaMigratorContract type

* KibanaMigratorContract -> IKibanaMigrator + docs improvements

* Fix esArchiver's KibanaMigrator

* Fix plugin generator integration test

* ConfigServiceContract -> IConfigService

* Address review comments

* Review nits

* Document migrations.skip config

* Review comments continued...

* awaitMigrations -> runMigrations

* Type improvements
2019-10-01 09:11:33 +02:00
renovate[bot]
0262f6184c Update mocha related packages (major) (#43915)
* Update mocha related packages

* update snapshots

* upgrade gulp-mocha so that it uses new mocha too

* fix async/cb overspecification
2019-10-01 00:07:13 -07:00
Spencer
5266349fee
[dev-utils] implement basic KbnClient util for talking to Kiba… (#46673)
* [dev-utils] implement basic KbnClient util for talking to Kibana server

* update KbnClient to expose full KibanaServerService API

* expose request() function and uriencode helper

* [uiSettings] retry read on conflicts auto upgrading

* expose function for resolving a Kibana server url

* only use apis in test hooks

* run x-pack-ciGroup2 60 times

* log retries as errors so they are included in console output for job

* bump

* Revert "run x-pack-ciGroup2 60 times"

This reverts commit 6b6f392edf.

* refactor urlencode tag to be a little clearer

* support customizing maxAttempts in request method
2019-09-30 22:52:07 -07:00
Mikhail Shustov
ee168f2765
Convert uiSettings tests to TypeScript (#46776)
* convert create_or_upgrade_saved_config into TS

* convert service tests to TS

* convert router tests to TS

* simplify stub setup

* address comments
2019-09-30 23:16:11 +02:00
Corey Robertson
2df5484e8d
[Canvas] Translate Arguments and Datasources (#46521)
* I18n arguments and datasources and transforms

* Fix Key
2019-09-30 16:47:21 -04:00
Mengwei Ding
5af031a604
[Code] More frontend migrations for New Platform (#46640)
* remove dependency on ui/utils/query_string

* remove dependency on ui/resize_checker

* remove dependency on ui/capabilities

* remove ui/autoload/all and ui/autoload/styles

* remove dependency on ui/modules

* amend the capabilities

* remove dependency of chrome.breadcrumbs push/pop

* remove type error

* Add back 'ui/autoload/all' and 'ui/autoload/styles'
2019-09-30 12:25:43 -07:00
Caroline Horn
a972486faa
Added Readme for EuiUtils (#46736) 2019-09-30 15:10:52 -04:00
Rudolf Meijering
08b86784ef
Expose serverBasePath fixes #45991 (#45995)
* Expose serverBasePath fixes #45991

* Review comments

* Fix basepath mock types

* AppBasePathContract -> IBasePath

* Match basepath test description with assertion

* Fix eslint errors
2019-09-30 20:49:15 +02:00
CJ Cenizal
cccbe386c4
Add head http method to request type. (#46927) 2019-09-30 11:37:27 -07:00
Devin W. Hurley
19df9e2b06
[SIEM] Adds linter rule to disallow undeclared variables (#46249)
* adds linter rule to disallow undeclared variables

* adds cypress eslint plugin, remove redundant packages from siem/package.json

* removes comment from json and adds a line about cypress linting to the cypress README

* adds upgraded package back to siem/package.json

* updates cypress run scripts since cypress package is now located in the x-pack/node_modules

* needed to yarn kbn bootstrap after rebasing with master
2019-09-30 11:25:06 -07:00
Oliver Gupte
09ef1a0f0a
[APM] Fix agent config flyout state (#46950)
* [APM] fix bug where flyout state did not reflect the currently selected agent config

* removed commented code
2019-09-30 11:24:15 -07:00
Robert Oskamp
631da55370
[ML] Add clone tests for single metric, multi metric and population jobs (#46894)
This PR adds tests for ML single metric, multi metric and population job cloning.
2019-09-30 19:41:35 +02:00
CJ Cenizal
3316d44aca
Migrate Console to use Node http instead of Hapi to support GET requests with bodies (#46200)
* Cleaned up use of es.send API
  - Converted Elasticsearch proxy config to TS (now we can see the types with https.AgentOptions)
  - Wrap request in util.promisify and refactor
  - Use 'url' lib for parsing URLs
  - Remove rejectUnauthorized from proxy_route.js (this is a TLS setting handled in agent setup)
* Retained original proxying behavior
* Re-enable support for setting rejectUnauthorized via proxy config settings
* Updated tests.
2019-09-30 10:19:48 -07:00
Mike Côté
e27b65f21c
Add muting support for alerts (#43712)
* Create supporting API

* Rename mute terminology to mute instance to allow alert level muting

* Add alert mute and unmute APIs

* Add logic to handle alert muting

* Add integration tests + fix AAD breaking the object

* Fix failing jest tests

* Fix test failures

* Clear out mutedInstanceIds when muting / unmuting an alert

* Skip muting / unmuting instances when alert is muted

* Rename interface for alert instance

* Rename functional tests to alert instance terminology

* Add API integration tests for alert muting / unmuting

* Apply PR feedback pt1

* Create single index record action

* Function to create always firing alerts and function to generate reference

* Make tests use alert utils

* Rename mute / unmute alert routes

* Make alerts.ts integration test use alertUtils for both spaces_only and security_and_spaces

* Re-use alert utils where possible

* Change muted in mapping to muteAll

* Rename alert client methods to muteAll and unmuteAll

* Rename files

* Rename alert utils function muteAll and unmuteAll

* Rename variable in task runner

* Cleanup

* Destructure instead of using existingObject variable
2019-09-30 12:59:17 -04:00
Kerry Gallagher
818a22210b
[Logs UI] Remove table view from Analysis feature (#46688)
* Remove table view
2019-09-30 17:17:14 +01:00
Mikhail Shustov
88515481c8
add an integration test for HTTP service in Legacy plugins (#45340) 2019-09-30 17:57:57 +02:00
Matthias Wilhelm
50afec91ba
Remove redundant request to fetch index patterns (#44998)
* Add getCache method to IndexPatterns

* Refactor to use IndexPatternCache instead of another request

* Improve getCache function to be async if necessary

* Adapt discover controller code
2019-09-30 17:50:42 +02:00
Ryland Herrick
c6c1d8ed5e
[Code] Commit component rework (#46097)
* Remove unnecessary whitespace

* Split CommitHistory into multiple files

There were already >5 components in this file; this splits them into
smaller, distinct components/files and an index.

* Extract props to interfaces

Rather than keeping them inline.

* Add basic implementation of new commit actions

This is embedded within the Commit component, for now.

Obviates CommitLink for now, but we'll address that in the PR.

* Update the remainder of the Commit layout

* Parses and displays the commit title/description
* Parses and displays the author and date
* Adds new translations

* Update translation keys to match naming standards

See
https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/GUIDELINE.md
for details.

* Extract commit message parsing to helper util

* Move CommitLink to commit folder

* Fix font-sizes of commit text

I was reading the wrong field in figma. Whoops!

* Add RepoLink component controlled by a boolean

If we're already viewing the commit in the context of the repo, the link
here isn't as helpful. For our first use, the commit history, that is
the case.

* Simpler construction of app paths

We should build a helper for this, but these are strewn about the
codebase.

* Update snapshots following text size changes

* Truncate summary text

* Fix type error on test component

* Make date-dependent test timezone-agnostic

Uses Date.UTC to get a non-relative date/time.
2019-09-30 10:37:45 -05:00
Mike Côté
bff70e8f36
Update alerting and actions docs to mention plugins must be enabled (#46838) 2019-09-30 11:28:56 -04:00
Mike Côté
b596c7183b
Fix type in alert instance class getScheduledActionOptions (#46848) 2019-09-30 11:26:27 -04:00
Jean-Louis Leysens
c33a670def
[Console] Editor component smoke tests (#45872)
* First attempt at editor.tsx integration test

* Fix typo in variable name

* Expanded smoke test integration tests

* Mounting happens in beforeEach
Added i18n context to suppress error messages
Updated name of data-test-subj for the send request button
2019-09-30 16:44:30 +02:00
Alejandro Fernández
3a7d9faf85
Use theme colors for the timeline background (#46213)
This allows the timeline to adapt to the Kibana dark mode setting
2019-09-30 15:56:55 +02:00
Matthew Kime
447319a52d
rename tests that may fail in dev env (#46878) 2019-09-30 08:26:08 -05:00
Matthew Kime
a57a5e7984
FieldFormat registry - use new platform ui settings (#46542)
* use new platform ui settings
2019-09-30 08:15:18 -05:00
Ahmad Bamieh
4dfa10eb66
[i18n] Fix typo (#46897) 2019-09-30 16:08:39 +03:00
Kerry Gallagher
bf9dcdeab0
[Logs UI / ML] Add partitioning to log entry rate job (#46690)
* Add partitioning to log rate job
2019-09-30 13:22:49 +01:00
Larry Gregory
4473b142c2
NP Licensing plugin route handler context (#46586)
* introducing a licensing route handler context

* extracting route handler context for easier testing

* address PR feedback
2019-09-30 08:19:03 -04:00
Matthias Wilhelm
f9cc456de0
[discover] De-angularize index pattern selection (#46347)
* Implementation of DiscoverIndexPattern React component

* Implement usage of the DiscoverIndexPattern

* Adapt tests
2019-09-30 11:19:28 +02:00
Peter Pisljar
bd1ac0dad4
Remove VisTypesRegistry (ui/registry/vis_types) (#46323) 2019-09-30 10:11:24 +02:00
Caroline Horn
e85cb718be
[Embeddables] Time range per panel design fixes (#46630)
* Fix loading state
* Fix modal’s footer button spacing
* Better alignments of the panel header contents
* Fix alignment of badge if title doesn’t exist
2019-09-27 20:49:20 -04:00
Nate Archer
775c17ffd9
[Code]: Add content for cloning repositories (#46389)
* [DOCS] Fix beta tag in Code Docs

* Add additional content about cloning repos

* More grammar edits

* Address Gail's feedback.

* Fix build errors

* Another build fix
2019-09-27 18:58:10 -05:00
Mengwei Ding
3b0e7d79a6
[Code] Support multiple repos for stacktrace code snippet resolution and add fallback mechanism (#45737)
* [Code] Apply Guass score normalization to stacktrace filepath resolution as a fallback

* support multiple repoUri for resolving code snippets

* update unit test

* Support batch resolution mode

* resolve type check

* Update the API
2019-09-27 16:41:48 -07:00
Lisa Cawley
e3cbf3753e
[DOCS] Updates links to Watcher content (#46636) 2019-09-27 16:06:17 -07:00
Caroline Horn
59d33d3476 Update EUI to 14.3.0 (#46824)
* Update EUI to 14.3.0

and update snaps

* TS Colors fix
2019-09-27 15:16:57 -07:00
Lisa Cawley
1a06f906c0
[DOCS] Fixes links to monitoring documentation (#46737) 2019-09-27 14:59:29 -07:00
Dmitry Lemeshko
e352f516d7
Fix tsvb chart test (#44657)
* enable switch index patterns test

* run ciGroup6 20x times

* [page_objects/visual_builder_page] retry selecting index pattern

* Revert "run ciGroup6 20x times"

This reverts commit 2151ea9905.

* [services/combo_box] clear input in seperate function

* run ciGroup12 30x times

* update logging message

* Revert "run ciGroup12 30x times"

This reverts commit 08fac11139.
2019-09-27 23:44:24 +03:00
spalger
fd2bfe9742 skip flaky test (#46677) 2019-09-27 13:04:51 -07:00
spalger
d3d3aa7edd skip flaky suite (#46313) 2019-09-27 12:54:29 -07:00
spalger
ce4d65a783 disable flaky suite (#41338) 2019-09-27 12:50:38 -07:00
gchaps
07d7438569
[DOCS] Fixes typo in dashboard doc (#46847) 2019-09-27 12:27:18 -07:00
spalger
5bbb3e2d6f [renovate] group moment deps together 2019-09-27 12:05:40 -07:00