Commit graph

27137 commits

Author SHA1 Message Date
Nathan Reese b92bb8c448
[Maps] exluce index pattern from draw tools and shape filtering when layer ignores global filter (#43380) 2019-08-16 10:05:19 -06:00
Spencer 2ed1d1ec57
use @elastic/eslint-plugin-eui (#43397)
* use `@elastic/eslint-plugin-eui`

* add exceptions to the new rule
2019-08-16 08:29:46 -07:00
Spencer 08dac02677
Fix flaky percy screenshot (#43404)
* define `.hide-in-percy` class

* hide full_screen button in percy

* use camelCase for class name and update snapshot
2019-08-16 08:00:40 -07:00
Wylie Conlon 8ec27114ea
Update renovate config based on learnings from react version (#43399) 2019-08-16 10:52:59 -04:00
Spencer e8409c0160
Move src/dev/run to @kbn/dev-utils (#43387)
* move src/dev/run into `@kbn/dev-utils`

* forgot to save a replacement
2019-08-16 07:13:54 -07:00
Phillip Burch 5e14f9ec19
Cleanup loading states for node detail page. (#43311)
* Cleanup loading states for node detail page.

* Return the loading screen instead of null
2019-08-16 08:34:05 -05:00
James Gowdy ba117e7b9e
[ML] Fixing influencer population issue in wizards (#43355) 2019-08-16 13:57:12 +01:00
Alexey Antonov 95011fbff4
[New Platform Migration Phase I]: convert timelion to vis_type_timelion - add server plugin (#43197) 2019-08-16 18:22:09 +08:00
Maryia Lapata 22945b54ad
[Vis Default Editor] Field unit tests (#43186)
* Unit tests for Field control

* Update field.test.tsx
2019-08-16 12:02:49 +03:00
WangQianliang b96b81dab6
fix(code/frontend): fix error when import existing repo (#43425) 2019-08-16 16:50:09 +08:00
Søren Louv-Jansen 056ec57f7f
Bump backport to 4.6.3 (#43405) 2019-08-16 10:26:13 +02:00
James Gowdy 24b5648a0d
[ML] Adding translatable strings to new job wizards (#43344)
* [ML] Adding translatable strings to new job wizards

* missed string
2019-08-16 07:34:57 +01:00
WangQianliang 488cc176fd
fix(code/frontend): fix files and directories overlap in ie 11 (#43246) 2019-08-16 13:39:16 +08:00
WangQianliang 750b446149
[Code] fix flaky functional test (#42906)
* fix(code/frontend): fix flaky functional test
2019-08-16 11:34:47 +08:00
WangQianliang c3d421fcc4
[Code] run test on both chrome and firefox (#42663)
* fix(code/frontend): run test on both chrome and firefox
2019-08-16 11:30:41 +08:00
Tre 5d8ad40c5c
[FTR] Refactor mocha under @kbn/test (#42862)
* Run prettier on the files that will be refactored under @kbn/test, in a follow-up pr.

* Fixup all paths to mocha,
under kbn-test, with needed
exports/imports.

* Fixed borked path (bad refactor).

* Fixup one more borked path.

* Fixup tsconfig for xml.ts

* Drop setup_node_env as it's already
in KIBANA/scripts/mocha.js.
Also, fixup cwd for globby as we are
exec-ing from a different directory.
2019-08-15 15:48:39 -06:00
Tim Sullivan 90892da940
[Reporting] Promote many debug log events to info (#43241)
* [Reporting] Move some log lines out of screenshots/index.ts

* promote some getScreenshots logs from debug to info

* promote some queue lifecycle event logs from debug to info

* Comments and renaming

* more info logging: csv from saved search

* rollback code changes to be done in future PR

* log success above error handling
2019-08-15 13:10:34 -07:00
Spencer 7739f5da9e
ts-ify @kbn/dev-utils (#43383) 2019-08-15 12:34:03 -07:00
Chris Roberson 0751c8f625
[Monitoring] Replace old kbn-top-nav with new one (#43187)
* Replace old kbn-top-nav with new one

* Fix up our implementation
2019-08-15 15:31:25 -04:00
Chris Roberson 54b9aeeb3b
Only fetch live data if we are fetching from the live cluster (#43209) 2019-08-15 15:00:17 -04:00
Andrew Goldstein 3e14b02055
[SIEM] Removes an extra js-yaml entry from devDependencies
## Summary

Removes an extra entry for `js-yaml` in the `devDependencies` section of `x-pack/package.json`, which was introduced in https://github.com/elastic/kibana/pull/42804

The change in this PR did _not_ generate a new `yarn.lock`

### Checklist

- [ ] ~~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
- [ ] ~~Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
- [ ] ~~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~
- [ ] ~~[Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~~
- [ ] ~~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

- [ ] ~~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
- [ ] ~~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
2019-08-15 12:28:23 -06:00
Nathan Reese c6335656d1
[Maps] custom color ramp (#41603)
* [Maps] custom color ramp

* round value down to find center color

* do not update redux state with invalide color stops

* rename EuiColorStop to ColorStop

* remove untracked file

* fix jest tests

* review feedback

* use steps instead of interpolate

* add percy functional test to verify rendering of interpolate and step color expressions

* add padding to color stop row so add/remove icons do not overlap color select
2019-08-15 12:21:28 -06:00
Daniil Suleiman df72f91878
[Vis: Default editor] EUIficate region map options tab (#42944)
* EUIficate region_map_options

* Reuse types

* Remove wms_options directive

* Remove style import

* Fix issue with join field default value
2019-08-15 21:09:28 +03:00
Spencer b2515c780d
[watcher] add missing await (#41351)
* [watcher] add missing await

* run x-pack-firefoxSmoke ciGroup 40 times, run watcher tests 20 times per job

* Fix failing watcher test

* Revert "run x-pack-firefoxSmoke ciGroup 40 times, run watcher tests 20 times per job"

This reverts commit c5d891d44d.

* Clean up watches via api

* fix linting errors

* don't swallow errors, wait for completion

* strip trailing numbers in suite tags

* run x-pack-firefoxSmoke group 40 times

* Revert "run x-pack-firefoxSmoke group 40 times"

This reverts commit cc4eb6ce54.

* run x-pack-firefoxSmoke group 40 times

# Conflicts:
#	.ci/jobs.yml

* run tests 80 times

* Revert "run tests 80 times"

This reverts commit 4320c9488a.

* Revert "run x-pack-firefoxSmoke group 40 times"

This reverts commit cf0d4056d7.
2019-08-15 10:49:36 -07:00
Nate Archer df7b073789
[DOCS] Fix beta message in Code docs (#43330) 2019-08-15 12:37:55 -05:00
Nathan Reese b95469fd73
[Maps] filter by shape (#43141)
* [Maps] feature geometry filters

* geo field select

* add logic to filter geo fields when geometry is line

* create filters on button click

* support multi_polygon geometries for filtering geo_points

* pass geo field name to filter method

* close tooltip when filter created

* add relation select

* fix jest test

* ui feedback

* fix typo

* review feedback

* call this.props.reevaluateTooltipPosition to ensure tooltip is not clipped

* reset to properties view when tooltip changes location
2019-08-15 11:24:03 -06:00
Jonathan Budzenski e6e92ac2bf
[test] remove x-pack mocha configuration (#42979)
* update scripts

* run mocha from root

* rm mocha grunt task

* rm x-pack mocha setup

* rm x-pack/mocha*

* Revert "rm x-pack/mocha*"

This reverts commit fb56005e77.
2019-08-15 12:21:42 -05:00
spalger 6c83702536 update default labels for renovate prs 2019-08-15 09:41:25 -07:00
spalger 940f6c8549 Merge branch 'master' of github.com:elastic/kibana 2019-08-15 09:40:19 -07:00
Ahmad Bamieh 6de3870165
[telemetry] update logic to fix misisng kibana stats when moni… (#43343)
* update logic to fix misisng kibana stats when monitoring is just enabled

* test unsuccessful scenario

* fix test

* update timer only on success
2019-08-15 19:22:58 +03:00
Matt Bargar 1289c6ba27 Fixes error when filters agg filters are a query_string query (#43310) 2019-08-15 10:20:06 -06:00
spalger 939dd0acda [esArchiver] retry deleteByQuery on conlifct 2019-08-15 09:19:55 -07:00
Stacey Gammon 6700508a49
Change check for isQueryFilter back to original, but acknowledge query_string property could be undefined. (#43356) 2019-08-15 12:18:46 -04:00
Chris Roberson cb2dd9f006
[Monitoring] Metricbeat migration improvements (#42600)
* Support for logstash

* Beats support

* Fix cherry-pick api issue

* Support for logstash

* Updates for beats and logstash

* APM migration working

* Tweaks for beats migration

* Update copy for setup new button

* If on cloud, disable setup mode

* Handle new beat flow better

* Better phrasing for APM

* Add beat type to disable step

* Fix i18n issue

* Fix jest tests

* Fix api tests

* PR feedback

* Update copy

* Remove unnecessary code

* Support shortcut to finish ES migration if we are on the connected cluster

* Undo changes that are now in a separate PR

* Share code better by exposing a single route with an optional parameter

* Disable more links

* Fix overview link for logstash

* PR feedback

* Fix tests

* PR feedback

* Fix tests

* We still need this route

* Updates

* Only show if there are instances too

* Change how we set the newly discovered cluster uuid

* Move this to support beats/apm weirdness

* Fix tests

* Remove out of date translations

* PR feedback

* Detect products a different way, to detect empty indices

* Look against the production cluster instead of the monitoring one

* When disabling ES internal collection, only disable ES - do not disable all internal collection
2019-08-15 12:14:22 -04:00
Chris Roberson 518312fde6
Ensure we ignore the global cluster uuid in route init for the listing page (#43305) 2019-08-15 12:13:45 -04:00
Liza Katz 50371b3867
Consistent positioning of Timepicker in SearchBar (#43255)
* resolves #41900
2019-08-15 18:44:17 +03:00
Tiago Costa f9fbc5d274
Update node options Initialization on our scripts (#40302)
* chore(NA): update node options initilization on our scripts

* chore(NA): re-export NODE_OPTIONS instead of re-setting on vars

* chore(NA): missing doc comment
2019-08-15 16:09:22 +01:00
Jean-Louis Leysens bd8984b12d
[Rollup] Metrics multiple selection (#42927)
* remove duplicate columns declaration

* First iteration of select all menu working

* A lot of bugfixes and started on row-level selection using flatMap

* Wip on row selection

* Fix formatting

* More bug fixes and and first iteration of row selection and column selection working

* Minor refactors, cleaned up logging. Still has nasty UX bug on Popover menu

* Added translations and empty tests

* Tests are WiP

* Move checkboxes out of popover

* Implemented first iteration of select all functionality

* Move row select all into checkbox area

* Remove unused code and simplify select all if-else

* First iteration of tests

* fix tests and update name data-test-subj name

* Move checkboxes into popover with button

* - Fix tests
- Refactor test helpers for metric step
- Cleanup some JS style nits
- Make popover button disabled if all metric checkboxes are disabled

* Remove extra newline

* - Moved constants from metrics to own file so that it's more re-usable
- Removed unnecessary styling
- Fixed typos
- Updated comments
- i18n
2019-08-15 16:46:18 +02:00
Shahzad dbb140df46
[Uptime] update monitor list configs for mobile view (#43218)
* update monitor list configs for mobile view

* [uptime] update unit test snapshot
2019-08-15 11:36:12 +02:00
Dario Gieselaar 4b05fd9f31
[APM] Local UI filters (#41588)
* Add snapshot tests for query search params

* Use projections to fetch data

* Add configuration and aggregations for local filters

* Add endpoints for local filters

* UseLocalUIFilters hook

* Parse Local UI filters from URL params

* LocalUIFilters component

* TransactionTypeFilter

* replace useServiceTransactionTypes with useTransactionTypes

* Support transactionType for trace projection/api

* Configure Local UI Filters

* Use units instead of hardcoded px

* Fix i18n error

* Remove unused labels from translation files

* Update URL of API integration test for transaction_types API call

* Revert "replace useServiceTransactionTypes with useTransactionTypes"

This reverts commit bae7fa44a0fc1ace0b498cc78626fabb2d310437.

* Revert "Support transactionType for trace projection/api"

This reverts commit 2edb32cf04ca2c38885c457ba57ce0a1547fd199.

* Remove transaction type filter for traces,error groups

* Address review feedback

* Don't clone in mergeProjection; add tests

* Address review feedback

* Revert transaction_types API path in functional tests

* More review feedback

* More review feedback:

- Add transactions projection
- Merge traces/transaction groups projections

* Don't persist local UI filters in HistoryTabs

* Move projections to server folder

* Move transactionName into options

* Use pod name instead of pod uid
2019-08-15 10:53:20 +02:00
Pengcheng Xu 1e978ad067
[Code] Upgrade ctags langserver (#43252)
* [Code] Upgrade ctags langserver

* Disable yaml and xml support
2019-08-15 16:10:47 +08:00
Yulong 676f4d20ed
[Code] show multiple definition results in panel (#43249)
* [Code] show multiple definition results in panel
2019-08-15 13:27:20 +08:00
Corey Robertson 4432b9116f
Adds Metric Type to full screen launch tracking (#42692) 2019-08-14 18:32:12 -05:00
Corey Robertson 67cc190ad4
[Canvas] Convert Autocomplete to Typescript (#42502)
* Move the files around

* Convert Auto Complete to TS. Convert Collectors to ExpressionAST type

* Remove TS-Lint ignores

* Add comment for getFnArgPosition method
2019-08-14 18:31:37 -05:00
Ahmad Bamieh 09196aa6fd
[telemetry] add spacesEnabled config back to xpack_main (#43312)
* add spacesEnabled config back to xpack

* move some variables back to xpack_main

* fix import path
2019-08-15 02:08:19 +03:00
Melissa Alvarez 7aa7f5afd0
[ML] Adds DF Transform Analytics list to Kibana management (#43151)
* disable job link if ml not enabled in space

* add analytics table in managment page

* update css for analytics table

* only show ML section if license if trial/platinum

* remove actions column for analytics list in KM

* fix typescript error on columns

* update props interface for analytics table

* plain text instead of disabled link if not enabled in space
2019-08-14 17:49:04 -04:00
Aleh Zasypkin 6be8b321d5
Add TLS client authentication support. (#43090) 2019-08-14 22:57:54 +02:00
Court Ewing e2e194174c
[csp] Telemetry for csp configuration (#43223)
We collect the boolean configurations which can be derived by any
end-user of Kibana by making any HTTP request. Since the rules
configuration involves strings that can leak identifiable information,
we only collect whether the rules have been changed from their defaults.
2019-08-14 16:03:36 -04:00
Andrew Goldstein 017c860a3f
[SIEM] Run Cypress Tests Against Elastic Cloud & Cypress Command Line / Reporting (#42804)
# [SIEM] Run Cypress Tests Against Elastic Cloud & Cypress Command Line / Reporting (#42804)

This PR contains enhancements to the `Cypress` end-to-end (e2e) testing support in the SIEM app, as discussed with @spalger

Note: this PR depends on test refactorings in https://github.com/elastic/kibana/pull/42766

## New: Run `Cypress` Tests Against Elastic Cloud

Cypress tests may now be run against a remote Elastic Cloud instance
(override `baseUrl`), interactively or via the command line.

Credentials are specified via `kibna.dev.yml` or environment variables.

## New: Run `Cypress` Tests On the Command Line

Run tests on the command line (override `baseUrl` and pass credentials via
the `CYPRESS_ELASTICSEARCH_USERNAME` and `CYPRESS_ELASTICSEARCH_PASSWORD`
environment variables), via command line.

## New: Reporting

Reports are configured to include:

- An HTML report, suitable for e-mail notifications
- Screenshots
- Junit reports (for integration with Kibana CI)
- Videos (optional)

Reports generated when `Cypress` tests are run on the command line are output
to the `target` directory, which follows specific conventions used by the
Kibana CI process:

* Any directory under `target` that begins with `kibana-`, e.g. `kibana-siem` will be uploaded as an artifact to a bucket
* Junit reports are picked up from the `target/junit` directory

The artifacts generated by running `Cypress` tests on the command line conform to the above conventions.

### HTML Reports

An HTML report (e.g. for email notifications) is output to:

```
target/kibana-siem/cypress/results/output.html
```

### Screenshots

Screenshots of failed tests are output to:

```
target/kibana-siem/cypress/screenshots
```

### `junit` Reports

The Kibana CI process reports `junit` test results from the `target/junit` directory.

Cypress `junit` reports are generated in `target/kibana-siem/cypress/results`
and copied to the `target/junit` directory.

### Videos (optional)

Videos are disabled by default, but can optionally be enabled by setting the
`CYPRESS_video=true` environment variable:

```
CYPRESS_video=true yarn cypress:run
```

Videos are (optionally) output to:

```
target/kibana-siem/cypress/videos
```

# Updated `README`

The full details and instructions for running Cypress tests are in the
`siem/cypress/README.md`, which was updated to reflect the changes
in this in this PR, but in a nutshell, you may run tests interactively with
the following (new) environment variables:

```sh
cd x-pack/legacy/plugins/siem
CYPRESS_baseUrl=http://localhost:5601 CYPRESS_ELASTICSEARCH_USERNAME=elastic CYPRESS_ELASTICSEARCH_PASSWORD=<password> yarn cypress:open
```

Running the command line version of the tests, which will output
the reports described above, is a similar experence:

```sh
cd x-pack/legacy/plugins/siem
CYPRESS_baseUrl=http://localhost:5601 CYPRESS_ELASTICSEARCH_USERNAME=elastic CYPRESS_ELASTICSEARCH_PASSWORD=<password> yarn cypress:run
```

https://github.com/elastic/siem-team/issues/435
https://github.com/elastic/siem-team/issues/437
2019-08-14 13:38:23 -06:00
Brandon Morelli 8c134f6c58
docs: add tip on agent config in a dt (#43301) 2019-08-14 12:30:09 -07:00