Commit graph

27921 commits

Author SHA1 Message Date
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
Lee Drengenberg
5a92dec11d
unskip dashboard_screenshot tests by using new setScreenshotSize (#46311)
* use new setScreenshotSize

* change tolerance from 1% to 2% (originally 5%)

* retake baseline without notification dialog

* close add and save notifications

* wait for render complete when going in to FullScreen mode

* add 5 second sleep to see if it ever goes to full screen mode

* add debugging screenshots and sleeps

* try reloading the Kibana index before this test

* 30 iterations with only the first test enabled

* revert multi-run changes

* ran node scripts/build_renovate_config

* fix tslint errors

* fix tslint error

* update xpack dependency to match oss

* update yarn.lock

* revert notifications:lifetime:info change by reducing some other timeouts

* remove commented-out code

* fixed and Unskipped 2nd test

* re-arrange order of dashboard tests to pass :-(

* removed commented-out sleep

Hopefully this won't be an issue

* Add comment about the order of tests

```
      loadTestFile(require.resolve('./view_edit'));
      // Order of test suites *shouldn't* be important but there's a bug for the view_edit test above
      // https://github.com/elastic/kibana/issues/46752
      // The dashboard_snapshot test below requires the timestamped URL which breaks the view_edit test.
      // If we don't use the timestamp in the URL, the colors in the charts will be different.
      loadTestFile(require.resolve('./dashboard_snapshots'));
 ```
2019-09-27 13:49:51 -05:00
Brian Seeders
3a34d9b0a4
Add bootstrap cache fallback (#46804)
* Read branch from package.json as a backup for bootstrap_cache
2019-09-27 14:49:34 -04:00
Nathan Reese
c3f4f5debe
[Maps] Enable ability to provide custom renderer for tooltip (#46150)
* [Maps] Enable ability to provide custom renderer for tooltip

* add unit test for on click handler

* unit tests for mouseout behavior

* add unit tests for on map move

* clean up test

* pass getLayerName to custom tooltip renderer

* fix jest test
2019-09-27 12:47:53 -06:00
Brian Seeders
af4db98ccc
Use different method of determining build status in pipelines (#45814)
* Switch method of determining build status for pipeline jobs to handle aborted builds better
2019-09-27 14:45:12 -04:00
Brian Seeders
146df62836
Add missing env vars for xpack reporting plugins (#44117) 2019-09-27 14:28:46 -04:00
Nick Partridge
858ad4d28f
Add ability to whitelist visible elements in percy (#45733)
* add ability to whitelist visible elements in percy

* allow white and blacklisting elements in visual tests

* remove unnecessary webElement methods

* refactor snapshot options to use show and hide

* refactor add/remove and visual test helpers

* [percy] rework css rules to allow hiding inside shown elements

* [percy] adjust logic to support showing inside hiding

* attach styles to hide percy when capturing the snapshot

* refactor in order to make sure all logic is executed if snapshot fails

* remove sleeps

* add back skipFirefox tag
2019-09-27 12:07:33 -05:00
Chris Cowan
6f1a326240
[Infra UI] Add Docker section to node details page (#43627)
* [Infra UI] Add Docker section to node detail page

* Add chart with terms aggregation for top 5 CPU and Memory

- Add label to series returned from metrics endpoint
- Honor seriesOverride name or use label
- Fix chart tooltip for long names
- Add name to seriesOverrides for current layouts

* Fixing types

* removing point changes, handled in seperate pr

* Changing infMetricsExplorerChart className to infrastructureChart

* updating comment with new functionality

* updating id to human readable string
2019-09-27 10:07:03 -07:00
Chris Cowan
8f8c080ef4
[Infra UI] Remove internal Hapi request for makeTSVBRequest (#45598)
* [Infra UI] Remove internal request for TSVB

* removing unused import

* Update x-pack/legacy/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* removing unused variable
2019-09-27 10:02:02 -07:00
Caroline Horn
6494f1ed1e
[Lens] Index pattern selection using EuiSelectable (#46350) 2019-09-27 12:55:11 -04:00
gchaps
75444a9f18
[DOCS] Adds note to troubleshooting migration topic (#46815) 2019-09-27 09:31:00 -07:00
Mengwei Ding
ff5f3a7dc5
[Code] Reduce batch index size for symbol (#46498) 2019-09-27 09:22:40 -07:00
Kaarina Tungseth
c24dc4a9a3
[DOCS] Added link names to configure-reporting page (#46805) 2019-09-27 10:45:47 -05:00
Robert Oskamp
daf3789a59
[ML] Fix flaky setValue for some elements (#46693)
Use setValue with clearing via keyboard
2019-09-27 17:30:31 +02:00
Shahzad
649be6713b
[Uptime]Update monitor list table description by adding aria-label for accessibility (#46696)
* update table description

* update snaps

* In description update data length

Co-Authored-By: Justin Kambic <justin.kambic@elastic.co>

* update description

* update snaps
2019-09-27 20:26:21 +05:00
renovate[bot]
d7c0f56ac4 Update dependency archiver to ^3.1.1 (#46746) 2019-09-27 08:03:00 -07:00
renovate[bot]
91a3047f87 Update dependency handlebars to v4.3.3 (#46747) 2019-09-27 08:01:41 -07:00
renovate[bot]
886611c18c Update dependency xml2js to ^0.4.22 (#46750) 2019-09-27 08:01:07 -07:00
Dario Gieselaar
5ae916f345
[APM] Always show transaction breakdown (#46684)
* [APM] Always show transaction breakdown

Closes #43527.

* Show empty message for collapsed state
2019-09-27 16:36:11 +02:00