Commit graph

17601 commits

Author SHA1 Message Date
Justin Kambic
6f7dfcfff2
[Monitoring] [Logstash] Add Config View (#18597)
* Patch ConfigView changes from x-pack-kibana to OSS Kibana.

* Remove old css.

* Update style for queue statement.

* WIP modifying based on designer feedback.

* Add flatten function and list class.

* Rename functions to be more descriptive.

* WIP checkin. Modify components to handle flattened object list.

* Finish moving flatten logic into classes, add tests.

* Simplify flattening, remove non-native dependency. Add more tests.

* Add defaults to simplify function call.

* Refactor two blocks into a function.

* Begin adapting components for list.

* Add collapse functionality.

* Add expand functionality.

* Nested collapsed elements remain collapsed on parent expansion.

* Style section headers.

* Update Plugin statement styles.

* Add DetailDrawer support.

* Update statement formatting.

* Add stats to plugin element rows.

* Resolve conflicts.

* Remove obsolete code.

* Reorganize code.

* Remove warnings.

* Add PropTypes. Add keys to arrays and iterables.

* Update color for borders/buttons.

* Add stat class. Clean up code.

* Convert plugin statement component from class to function.

* Update queue metrics message.

* Update style to make view more responsive.

* Change section heading size.

* Remove gutter from metrics group.

* Change name "stat" to "metric".

* Remove obsolete export line, simplify declaration, based on PR feedback.

* Add new functional component in place of model class.

* Add PropTypes to several components. Rename a function. Add keys to metrics.

* Convert stateless classes to functional components.

* Prefer ES6 syntax over bindings for Component methods.

* Do not render statement section if there are no statements.

* design cleanup for pipeline viewer

* Update CSS to add min-height to page.

* Rename "elements" to "statements". Delete unused LESS variables.

* Revert naming of "statements" to "elements" for StatementList component.

* Update jest snapshots for DetailDrawer.
2018-06-18 23:42:12 -04:00
liza-mae
61a3c9f1ca
Make timelion tests less flaky (#19996)
* Update sleeps in timelion tests

* Add comment
2018-06-18 12:54:54 -06:00
Spencer
304a9f6fca
[build][optimize] don't rely on env for build-based decisions (#19972)
There are several cases where we want to do different things in the
optimizer based on whether we are running in the distributable version
of Kibana or running from source. Historically we have handled this by
relying on the env, but as we start to prebuild things, like TypeScript
and soon SCSS, we actually need to know if the version of Kibana running
was a result of the build process or not. To address this the src/utils
module now exports a constant: `IS_KIBANA_DISTRIBUTABLE`. This constant
will be based on the build.distributable flag being set in Kibana's
package.json, which is done automatically in the build process.
2018-06-18 11:19:33 -07:00
Spencer
6a429d7fa3
[npm] upgrade to RxJS 6 (#18885)
This PR upgrades RxJS to version 6 and switches to a fork of `stream-to-observable` which includes an updated version of `any-observable` that supports RxJS 6 until https://github.com/jamestalmage/stream-to-observable/pull/10 is merged. The primary change in this version of RxJS is the movement of stream operators from `Obersable.prototype` to the `rxjs/operators` module. Some of the operators, like `catch` and `do`, have been renamed (`catchError`, and `tap`). The Obsevable factories have also been moved from static methods on the `Observable` class to named exports of the root `rxjs` module. Some of those factories have also changed slightly, like `fromEvent` which now emits arrays if the event handler is called with multiple arguments.

```js
// import the Rx namespace to get the Observable factories
import * as Rx from 'rxjs';
// import the operators as named imports
import { map, tap, switchMap } from 'rxjs/operators';
```
2018-06-18 10:16:38 -07:00
Nathan Reese
e40e64126b
Migrate dashboard save error from old toast message to new EUI toast (#19956)
* Migrate dashboard save error from old toast message to new EUI toast

* save function does not need to exist on  anymore

* account for error in onSave

* update clone

* lint errors
2018-06-18 11:03:04 -06:00
wispxjtu
0945154302
Code example miss single quotes (#19783) 2018-06-18 11:12:54 -05:00
Larry Gregory
efc97a7ad0
Add plugin disclaimer (#19989)
Adds a disclaimer to the Known Plugins section of our documentation, which notes that we do not evaluate them.
2018-06-18 10:49:45 -04:00
Søren Louv-Jansen
bb047a4aaa
[APM] Fix JSON in Watcher assistant (#19987) 2018-06-18 16:17:48 +02:00
Larry Gregory
8e9d776f54
[Flaky Test] - Role Management Screen (#19988)
Fixes a flaky test by waiting for Kibana to finish all pending requests before continuing
2018-06-18 09:54:31 -04:00
Tim Roes
b39b5209e4
Fix broken migration for old gauge format (#19853)
* Fix broken migration for old gauge format

* Fix broken unit tests

* Assume Metric as default
2018-06-18 15:00:02 +02:00
Felix Stürmer
cf16b801fd
[Context view] Incrementally increase context time window (#16878)
This PR tries to reduce the Elasticsearch cluster load for index patterns with many indices.

**Theory of operation**

Before this PR, Elasticsearch had to perform the query and sorting for every shard matching the index pattern. In order to avoid that in a time-base indexing scheme, the queries should include a `range` filter. This enables Elasticsearch to rewrite most of the shard accesses to `match_none`. But since the context view operates on document counts, the time intervals need to be determined heuristically:

* start of the interval is the second end of the previous query iteration or `anchor_time` if it is the first iteration
* end of the interval is `interval_start +/- n days` with `n in {1, 7, 30, 365, 10000}` or unlimited if insufficient hits were returned for all `n`

This date arithmetic introduces the assumption that the primary sorting field is a date or at least numeric. Therefore, the `sortingField` has been renamed to `timeField` to make those new assumptions explicit.

**Other notes**

As an additional optimization, the queries are now executed in a `constant_score` filter context to enable caching by Elasticsearch.

Tests for `fetchSuccessors` and `fetchPredecessors` were added.

Changes in ElasticSearch required a concurrent fix of #17696, which is also included. It now splits up the anchor `uid` into `anchorType` and `anchorId` and uses them in an `ids` query.

**Testing**

The fact that only a small subset of the shards are involved in a query should be observable using the `skipped` shard count in the response.

fixes #15143
fixes #17696
2018-06-18 12:31:54 +02:00
Tim Roes
ef29b891a4
Allow overwriting filters when adding via queryFilter (#19754)
* Allow overwriting filters

* Add another test
2018-06-18 12:28:53 +02:00
Andrew Wilkins
6bc29db084
[APM] Add Go agent tutorial (#19980)
Add Go to the APM client tutorials.
2018-06-18 17:13:25 +08:00
Tim Sullivan
633aa4250f
[Saved Objects Client] Return info about what was missing in the 404 (#19868)
* [Saved Objects Client] Return info about what was missing in the 404 error

* update api integration tests

* fix another test
2018-06-15 16:14:04 -07:00
Nathan Reese
bdebff91fb
fix gaps in sample flight data (#19912) 2018-06-15 16:15:41 -06:00
Tim Sullivan
5691dcff69
[Monitoring] Improve User Experience of Enabling Monitoring Collection (#19451)
* [Monitoring/No Data] Show a "still waiting" link after 19s

* minor bug fix: spinner if _interval_ updating

* update "we tried"

* some wording changes on activating / trying to activate monitoring

* cancel the setTimeout when component gets unmounted

* more wording tweaks

* update snapshot
2018-06-15 14:28:29 -07:00
Rashmi Kulkarni
4f4c398380
ES6 conversion on Management Tests (#19870) 2018-06-15 12:52:42 -07:00
lcawl
f1d64593ca [DOCS] Adds links to release notes and highlights 2018-06-15 11:12:29 -07:00
Varun Sharma
9677b555c3 [Docs] Adds Dropdown Plugin (#19889) 2018-06-15 13:05:24 -04:00
Tyler Smalley
fb7e6cc034
Handle configured path.data for Keystore location (#19916)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-06-15 08:40:21 -07:00
Tiago Costa
dc907ace5b
chore(NA): remove node version validator from git pre-commit hook script. (#19950) 2018-06-15 16:14:48 +01:00
James Gowdy
5d7afd996c
[ML] Removing rules from APM module (#19932) 2018-06-15 11:50:08 +01:00
Aleh Zasypkin
8c2a8d25c1
Do not rely on native setTimeout in the promise service tests. (#19891) 2018-06-15 11:37:26 +02:00
Nathan Reese
9dc9644e95
kibana logo, wrap li in ul (#19838)
* kibana logo, wrap li in ul

* set aria-label to home instead of logo
2018-06-14 15:55:57 -06:00
Nathan Reese
829b6ddb8a
clean-up sample data text (#19902)
* clean-up sample data text

* remove duplicate text in toast since name includes 'sample' and 'data'
2018-06-14 14:24:54 -06:00
Søren Louv-Jansen
b936bbc326
Bump backport (#19910) 2018-06-14 21:13:25 +02:00
Jonathan Budzenski
7a2eb23831
Bump node to 8.11.3 (#19861) 2018-06-14 12:45:20 -05:00
CJ Cenizal
fd22e216fc
Guard against calling fieldWildcardMatcher or fieldWildcardFilter with undefined (#19865) 2018-06-14 08:45:13 -07:00
Bill McConaghy
f5a70272ce
upping xpack version of brace to the latest which should bring us to one version of it in the bundle. (#19897) 2018-06-14 11:00:33 -04:00
Larry Gregory
27439900be
Expose 'getSavedObjectsRepository' from Saved Objects Service (#19677)
* Expose 'getSavedObjectsRepository' from Saved Objects Service

* remove superfluous config from SavedObjectsClientProvider
2018-06-14 10:24:02 -04:00
Walter Rafelsberger
06bd2d463e
[ML] Migrates data visualizer card header to EUI/React (#19890)
To get rid of angular's tooltip="..." code in the header of data cards of the data visualizer, this introduces a ml-field-title-bar directive/component.
- The directive replaces the raw template code in field_data_card.html.
- The directive itself wraps a React component which uses EUI's tooltip instead of angular's tooltip attribute.
- The previous angular template logic (about which classes and fieldnames to display) is also move to the React component
2018-06-14 13:16:49 +02:00
Pete Harverson
9d1ec94fac
[ML] Convert anomalies controls to EUI / React (#19856)
* [ML] Convert anomalies controls to EUI / React

* [ML] Edits to anomaly controls following review
2018-06-14 11:25:20 +01:00
CJ Cenizal
2ada1b348a
Replace Watcher's watch-type-select directive with two buttons. (#19782) 2018-06-13 17:08:13 -07:00
CJ Cenizal
2600a2c099
Hide bottom row of local nav in License Management if it's empty. (#19780) 2018-06-13 17:06:45 -07:00
CJ Cenizal
0a2ce7d370
Add described-by attribute to duration-selection directive to make children inputs screen reader accessible. (#19779) 2018-06-13 17:05:42 -07:00
CJ Cenizal
9493ac4093
Add aria-label to Indices Management search input. (#19778) 2018-06-13 17:04:50 -07:00
CJ Cenizal
2f63db23f8
Add heading hierarchy to Management landing page and role='group' to panels to aid screen reader accessibility. (#19777) 2018-06-13 17:03:55 -07:00
CJ Cenizal
8657a9e61b
Add aria-labelledby to index details flyout to tell screen reader what to announce when the flyout is opened. (#19776) 2018-06-13 17:01:35 -07:00
CJ Cenizal
7a9d4a2dc2
Remove unnecessary PromiseEmitter. (#19845) 2018-06-13 10:33:59 -07:00
Walter Rafelsberger
7b4e823d2e
[ML] Fixes agg-type dropdowns size and styling. (#19816)
- Fixes an issue with cut off text within aggregation type dropdowns in the multi-metric and population wizard.
- Fixes the style of the dropdown to be consistent across browsers.
- Fixes 1px vertical offset between dropdown and trash-icon.
2018-06-13 17:31:55 +02:00
Marco Vettorello
49724b2996
Refactoring Markdown lifecycle methods to React 16.3 (#19436)
* Removed componentWillReceiveProps

* Memoized markdown factory

* Refactored some tests
2018-06-13 15:17:21 +02:00
liza-mae
d5589bff48
Add option to exclude tests in functional test runner (#19806)
* Add option to exclude tests in functional test runner

* Move tag to end of test name
2018-06-13 05:25:07 -06:00
Nathan Reese
5b05c4cbc5
remove Private from timefilter lib (#19651) 2018-06-13 05:23:42 -06:00
Peter Pisljar
88bb0121d4
explicitly passing filters and query to visualize (#19172) 2018-06-13 04:35:07 -05:00
dave.snider@gmail.com
43639cd9c0
[Design] Clean up dashboard listing page (#19657)
Along with @nreese, cleaned up the dashboard listing view to add an empty state.
2018-06-12 17:43:20 -07:00
CJ Cenizal
77b53db939
Change tryForTime error output from 'failure' to 'error', to make it easier to grep the logs for actual failures. (#19707) 2018-06-12 17:19:50 -07:00
Jen Huang
af77bdcd19
Fix EuiSearchBar onChange callback (#19841) 2018-06-12 16:17:39 -07:00
Nathan Reese
87dbcdbede
add aria-label to select without label (#19830) 2018-06-12 13:16:00 -06:00
CJ Cenizal
647d3366eb
Upgrade EUI to 0.0.52 (#19772)
* Revert "Revert "upping eui to 0.0.52 and updating snapshots (#19761)" (#19770)"
This reverts commit c853072ca5, reintroducing EUI 0.0.52.
* Rename visualize page object selectors for manipulating combo box.
2018-06-12 10:47:20 -07:00
Tiago Costa
6ed5e7095b
chore(19502): change license checker and generator behaviour to only add dev dependencies with --dev flag. (#19626) 2018-06-12 07:56:10 -07:00