Commit graph

25963 commits

Author SHA1 Message Date
Spencer
066cd55a65
[kbn/babel-preset] add readme (#39854) 2019-06-28 11:06:46 -07:00
Stacey Gammon
698efe7566
More dashboard migrations (#39387)
* More dashboard migrations

* address review comments

* remove unused translations

* use logger instead of console

* remove need for lodash

* clean up translations

* Add ui metric tracking so we have a better idea whether being stricter with migrations will cause issues

* undo trackUiMetric... not available when migrations run
2019-06-28 13:59:02 -04:00
Lisa Cawley
b519f36333
[DOCS] Updates title for Stack Monitoring app (#39814) 2019-06-28 10:31:10 -07:00
Jonathan Budzenski
d0f0315a20
[monitoring] remove deprecated xpack:defaultAdminEmail (#33603)
* [monitoring] remove deprecated xpack:defaultAdminEmail

* delete

* null arg

* return null

* rm i18n strings

* remove watcher default

* migrate config

* Revert "migrate config"

This reverts commit 1dee8dbe5a.

* fix lint error

* remove new translations
2019-06-28 12:20:42 -05:00
WangQianliang
138438f538
[Code] fix line number click (#39773)
* fix(code/frontend): should update line number click handler after path changes
2019-06-28 23:31:40 +08:00
Dario Gieselaar
351246325b
[APM] Transactions breakdown graph: Add breakdown KPI component (#38658)
* [APM] Transactions breakdown graph: Add breakdown KPI component

Closes #36445.

* Remove percentage, line wrapping, correct query

* Add transaction breakdown chart to transaction details page

* Move files into new plugin dir

* Add empty state; update labels

* Use new mapping

* Move urlParams to useTransactionBreakdown hook

* Fix types

* Only show empty state in TransactionBreakdown if previously data was rendered

* Restrict no of KPIs to 20

* Use ternary in render of TransactionBreakdownHeader for consistency
2019-06-28 17:26:51 +02:00
Jonathan Budzenski
caae025582
Init @kbn/es readme (#39850)
* init kbn-es readme

* formatting
2019-06-28 10:20:37 -05:00
tshoeb
f8065a9500 new known plugin (#25795) 2019-06-28 16:24:39 +02:00
Corey Robertson
253886c089
Update paths to legacy/plugins (#39721)
* Update paths to legacy/plugins

* Disable Code server test runs
2019-06-28 10:17:07 -04:00
Patrick Mueller
213831f7ef
Update x-pack actions README with built-in actions (#39794) 2019-06-28 09:23:20 -04:00
Rudolf Meijering
da09a11858
Mocks for CoreStart, CoreSetup and PluginInitializerContext (#39351)
* Mocks for CoreStart, CoreSetup and PluginInitializerContext

* Public CoreStart, CoreSetup mocks

* Update api signature/docs

* Convert embaddable_api tests to new core mocks

* CR Feedback

* Introduce ui_new_platform.test.mocks and refactor embedabble tests

* Hack to get TS warnings for Core mocks

* Core mocks types cleanup & hack to get TS warnings for Server Core mocks

* Use __mocks__ new_platform

* Remove accidently commited auto-mock

* Introduce MockedKeys type for Core mocks

* Better typing/docs for UiSettings

* Revert "Use __mocks__ new_platform"

This reverts commit 2d666facc8.

* Add missing mock to test

* Cleanup UiSettings types
2019-06-28 13:34:41 +02:00
Tim Roes
f70b32078c
[Timelion]HelpURL change「5.1」→「current」 (#39885)
HelpURL(Lucene query string) change「5.1」→「current」
2019-06-28 13:00:58 +02:00
Walter Rafelsberger
eb92d109b2
[ML] Data Frames: Continuous mode support for wizard (#39804)
Adds a section to the job details section to configure continuous mode for a data frame transform.
- The switch to enable the mode is only available if the index pattern features at least one date field.
- If enabled, the user can pick a date field from a dropdown and configure the delay.
2019-06-28 11:00:13 +02:00
Walter Rafelsberger
e783c84b8e
[ML] Remove format from date_histogram configs. (#39811)
The data frame backend will remove support for custom date_histogram formats in 7.3. This PR reflects the change in the data frame transform wizard and removes the addition of date format.

Note that with this change, date fields will now show up as raw timestamps in the preview table. A follow up will re-introduce human readable dates (when mappings are available via the preview endpoint).
2019-06-28 10:48:42 +02:00
Michail Yasonik
5892c972ec
update accessibility issue template (#39359) 2019-06-28 10:35:01 +03:00
Christiane (Tina) Heiligers
d99172e2da
Corrects index pattern for fields in split_by_terms (#39723)
* Corrects index pattern for fields in split_by_terms

* linting errors
2019-06-27 22:52:08 -07:00
chongzhe
346baf96d2
[Code] update doc about index scheduler (#39869) 2019-06-27 22:45:36 -07:00
Matthew Kime
4df8e5d8db
d13n XPackInfoProvider (#39475)
remove $window references
pass $injector as an argument to refresh to avoid circular dependencies.
simplify code that no longer needs to use Private
2019-06-27 23:25:41 -05:00
Peter Pisljar
444bafbe0e
updating metricvis interpreter func arguments (#34532) 2019-06-28 05:44:43 +02:00
Patrick Mueller
441de0b14c
Adds a built-in email action to the x-pack actions plugin (#39517)
Adds an email action to the actions plugin that can send emails as an action using [nodemailer](https://www.npmjs.com/package/nodemailer).
2019-06-27 21:15:58 -04:00
Ryan Keener
1b9b4f1d5f Remove outdated documentation referencing a local/vendored version of yarn. The reliance on a local version of yarn was removed by #17741 (#24014) 2019-06-27 17:33:20 -07:00
Xavier Mouligneau
d74f4f7f9f
[SIEM] Add api integration test + fix bug to default value in timeline (#39577)
* bug when persited timeline does not have all the data wanted on the UI

* add api integration testing for timelien

* review I

* update snapshot

* again update snapshots for stat_item
2019-06-27 20:26:00 -04:00
bryankouwen
4b49db591d single quotes missing (#30096)
(cherry picked from commit 738a08fc4a)
2019-06-27 17:00:56 -07:00
Mengwei Ding
119d6e7ebd
[Code] Use match query instead of term query (#39717) 2019-06-27 16:57:57 -07:00
Holger Brandl
d4551058e7 Removed invalid/unneeded comma in json query (#31797)
(cherry picked from commit 276dcc7f72)

# Conflicts:
#	docs/api/url_shortening/shorten_url.asciidoc
(cherry picked from commit 0a316000e3)
2019-06-27 16:51:13 -07:00
Dan Kreiger
e6c019c22b Update tutorial-define-index.asciidoc (#39666)
(cherry picked from commit 5bb6dbff38)
2019-06-27 16:41:40 -07:00
Andrew Goldstein
95fc980203
[SIEM] Bootstrap Cypress Tests (#39588)
# Cypress Tests

The `siem/cypress` directory contains end to end tests (specific to the `SIEM` app) that execute via [Cypress](https://www.cypress.io/).

At present, these tests are only executed in a local development environment; they are **not** integrated in the Kibana CI infrastructure, and therefore do **not** run automatically when you submit a PR.

See the `Server and Authentication Requirements` section below for additional details.

## Organizing Tests and (Mock) Data

- Code and CSS selectors that may be re-used across tests should be added to `siem/cypress/integration/lib`, as described below
- Smoke Tests are located in `siem/cypress/integration/smoke_tests`
- Mocked responses from the server are located in `siem/cypress/fixtures`

### `cypress/integration/lib`

The `cypress/integration/lib` folder contains code intended to be re-used across many different tests.

- Files named `helpers.ts` (e.g. `siem/cypress/integration/lib/login/helpers.ts`) contain functions (e.g. `login`) that may be imported and invoked from multiple tests.

- Files named `selectors.ts` export CSS selectors for re-use. For example, `siem/cypress/integration/lib/login/selectors.ts` exports the following selector that matches the Username text area in the Kibana login page:

```
export const USERNAME = '[data-test-subj="loginUsername"]';
```

## Server and Authentication Requirements

The current version of the Smoke Tests require running a local Kibana server that connects to an instance of `elasticsearch`. A file named `config/kibana.dev.yml` like the example below is required to run the tests:

```yaml
elasticsearch:
  username: 'elastic'
  password: '<password>'
  hosts: ['https://<server>:9200']
```

The `username` and `password` from `config/kibana.dev.yml` will be read by the `login` test helper function when tests authenticate with Kibana.

See the `Running Tests Interactively` section for details.

## Running Tests Interactively

To run tests in interactively via the Cypress test runner:

1. Create and configure a `config/kibana.dev.yml`, as described in the `Server and Authentication Requirements` section above.

2. Start a local instance of the Kibana development server:

```
yarn start --no-base-path
```

3. Launch the Cypress interactive test runner:

```sh
cd x-pack/legacy/plugins/siem
yarn cypress:open
```

4. Click the `Run all specs` button in the Cypress test runner

![cypress](https://user-images.githubusercontent.com/4459398/60113545-39c54f00-972f-11e9-9c0c-5d28aecdf212.gif)

https://github.com/elastic/ingest-dev/issues/515
2019-06-27 17:28:33 -06:00
Patrick Mueller
90c89382c2
Rename kibana.server-log action type id to .server-log (#39796) 2019-06-27 18:24:47 -04:00
Nathan Reese
690532aa2f
[Maps] increase document limit from 2048 to 10000 (#39697)
* [Maps] increase document limit from 2048 to 10000

* [Maps] increase document limit from 2048 to 10000

* rename DEFAULT_ES_DOC_LIMIT to ES_SIZE_LIMIT
2019-06-27 15:55:12 -06:00
Caroline Horn
7988f234e0 [Maps] Quick design fixes for 7.3 (#39429)
* Some fixes to the main listing screen

* Updates to file upload layouts

* Better discard changes modal

* Revert prettier auto-fixes in “Updates to file upload layouts"

* Revert prettier auto-fixes from "Some fixes to the main listing screen"

* Missed a line

* fix margin-bottom console warning

* clean up un-needed fileRef
2019-06-27 15:44:20 -06:00
Mengwei Ding
9acce8fca1
[Code] enable index scheduler by default (#39696) 2019-06-27 14:07:13 -07:00
Angela Chuang
e7b3df4b25
[SIEM] Kpi on host details page (#39681)
* init query

* add unit test

* apply hostName filter

* add unit test

* reuse kpiHostsComponent

* remove hostName from query variables
2019-06-28 04:33:24 +08:00
spalger
a8acd65529 fix lint issue 2019-06-27 12:54:38 -07:00
Zacqary Adam Xeper
6359905b21
[Logs UI] Add View in APM link to log flyout actions menu (#39540)
* Add View in APM link to log flyout actions menu

* Change icon from apmTrace to apmApp

* Add tests for View in APM action

* Add docs for actions menu

* Update link to go to traces list

* Add rangeFrom and rangeTo to trace links

* Use 20 minute from/to range instead of 1 minute
2019-06-27 13:55:33 -05:00
spalger
9823bf0fe0 fix lint error 2019-06-27 11:45:17 -07:00
Jen Huang
2bc3d3ad8d
Add base path to rollup index pattern endpoint's request to regular index pattern endpoint (#39745) 2019-06-27 11:33:06 -07:00
Josh Dover
bca05f8e05
Remove Core UI from karma tests (#39805) 2019-06-27 13:29:35 -05:00
Sonja Krause-Harder
26b884f1b8
[Infra UI] Add default metrics to metrics explorer. (#39787)
* Add default metrics to metrics explorer.

* Allow one-click-clear of the metrics list.
2019-06-27 20:17:40 +02:00
John Dorlus
1f9c913894
Added app load smoke test for License Management (#39750)
* Added app load smoke test for License Management

* Fixed linting issues.

* Moved assertion to test file and changed function to licenseText()
2019-06-27 15:59:48 +00:00
Kerry Gallagher
46d766d5a4
[InfraUI] Improve accuracy of system network metrics (#39513)
* Amend network traffic calculations to account for interfaces

- Adds a network_traffic metric aggregation creator
- Amends rx and tx to use this
- Uses regular rate calculation for Kubernetes Pods

* Move network_traffic creator

* Amend syntax

* Add elasticsearch data dumps for 8.0.0 data

* Remove fixtures whilst unable to load in to api integration tests

* Amend network traffic calculations to account for interfaces

- Adds a network_traffic metric aggregation creator
- Amends rx and tx to use this
- Uses regular rate calculation for Kubernetes Pods

* Move network_traffic creator

* Amend syntax

* Add elasticsearch data dumps for 8.0.0 data

* Remove fixtures whilst unable to load in to api integration tests

* Use avg over max for spike avoidance
2019-06-27 16:05:30 +01:00
Liza Katz
b6f2411cf1
Graph - move custom views out of top_nav (#39706)
* Stop using template feature of kbn top nav

* Combined css
2019-06-27 17:15:16 +03:00
rmacd
8f018b397a Update documentation: xpack.code.gitHostWhitelist && xpack.code.gitProtocolWhitelist should sit under xpack.code.security (#39687) 2019-06-27 06:37:01 -07:00
Pete Harverson
0a5a1bf3d1
[ML] Adds SIEM auditbeat and metricbeat data recognizer modules (#39678)
* [ML] Adds SIEM auditbeat and metricbeat data recognizer modules

* [ML] Added agent.type clause to winlogbeat manifest query

* [ML] Remove mistakenly included packetbeat module, plus text edits
2019-06-27 14:06:36 +01:00
Juan Álvarez
af966129b5
update apm index pattern (#39771) 2019-06-27 11:56:24 +02:00
Robert Monfera
5fb13a8847
[Canvas] Alignment and distribution (#39132)
[Canvas] Alignment and distribution
2019-06-27 11:33:49 +02:00
Peter Pisljar
c0af1d28c7
removing provider from stubbed_saved_object_index_pattern (#38772) 2019-06-27 11:00:23 +02:00
Philipp B
97acab30dc
(Accessibility) Fixed Kibana home page heading structure (#38888)
* Fixed <h1> and <h3> => <h2> transition; <h5> issue is fixed in EUI repo;
2019-06-27 10:51:16 +03:00
Alexey Antonov
50a09e2f4e
VisualBuilder Metric: Zero values ends in a changed behavior of the color rules (#39583) 2019-06-27 10:33:47 +03:00
Mikhail Shustov
2c8bbde7a8
handle mupltiple cookies sent from a browser (#39431) 2019-06-27 08:40:31 +02:00
Henrik Nordvik
70edbfeef3 Add joinRows Canvas expression function (#38680)
* Add joinRows canvas function

Joinrows takes rows from a datatables and concatenates them into a
string. It also escapes them if needed and removes duplicates.

* Add help function

* Update x-pack/plugins/canvas/canvas_plugin_src/functions/common/joinRows.ts

Needs to be quoted for the interpreter to parse it

Co-Authored-By: Catherine Liu <catherineqliu@outlook.com>

* Remove quote workaround

* Make separate error message for joinRows

* Add distinct parameter to turn off duplicate checking

Fix help text
Update test to pass quote. To make it work in the browser we need to
quote it for the interpreter, but the unit test skip this part.

* Move column check out of loop

* Added i18n support

* Updated test

* Fixed ref to argHelp

* Moved new files into correct folder

* Fixed import

* Converted tests to Jest and renamed files to snakecase
2019-06-26 21:39:45 -07:00