Commit graph

18386 commits

Author SHA1 Message Date
dave.snider@gmail.com cb4dd5569f
Eui 4.4.1 (#23790) (#23835)
Updates EUI to 4.4.1 and includes some minor homepage changes around icons.
2018-10-04 14:18:12 -07:00
Brandon Kobel d3cd9d4056
Reenable X-Pack Functional Tests (#23836) (#23843)
* Make saved object client error while Kibana index is migrating

* Tidy up a bit, and refactor the way the `isMigrated` check is accessed

* Remove unused interface declaration

* Remove default migrator from saved objects repository constructor

* Fix repository migrator isComplete check

* Wrap callCluster and delay it until migrations have completed...

* Fix inaccurate comment

* Ensure migrations wait for elasticsearch to go green prior to running

* Reenabling tests

* Add tests for callCluster being wrapped in the repository, fix
the es_archiver's call to migrate index.

* Fixing esArchiver's usage of migrations

* Disabling spaces for the phanton api BWC tests

* don't throw if authorization mode is already initialized

* Adding spaces to the reporting historical archives

* Loading empty_kibana for grok debugger tests

* Enabling reporting tests

* Altering the method in which we logout users to be more fault tolerant

* Actually doing what I said before...

* Skipping Dashboard Preserve Layout, it likes to fail a lot

* Skipping dashboard view mode tests

* Putting logout back how it was, trying to make the security tests run
properly when we don't have dashboard mode tests

* Running subsection of tests that are failing

* Don't bail, run them all

* Disabling canvas, breaks logout

* Fixing spaces create legacy error assertion

* Putting comment about why we're disabling spaces for the functional
tests
2018-10-04 13:39:09 -07:00
lcawl 37580cab55 [DOCS] Fixes broken link in monitoring page 2018-10-04 13:14:17 -07:00
Lisa Cawley 6de150a1f5 [DOCS] Update Kibana monitoring tasks (#23736) 2018-10-04 11:38:39 -07:00
Chris Roberson 67c5fbf833
[Monitoring] Ensure we use the provided node id in the query (#23715) (#23775)
* Ensure we use the right parameter name

* Update test fixture to use second node
2018-10-04 13:40:59 -04:00
Chris Roberson bc1405b7d6
Backport #22998 (#23689) 2018-10-04 13:36:51 -04:00
Jonathan Budzenski e2ec868588
[tests/browser] generate css before testsBundle, include css (#23794) 2018-10-04 11:11:04 -05:00
Luke Elmers 1f13ee6421
Remove deprecation notice from ascending sort for terms (#23421) (#23503) 2018-10-04 09:25:41 -06:00
Ryan Keairns 76da440962
misc ui bug fixes (#23629) (#23773) 2018-10-04 10:16:54 -05:00
Leanid Shutau 5bf648f039
[I18n] Add HOC injecting i18n provider (#23683) (#23804)
* add injectI18nProvider HOC

* Fix propTypes typo

* Typescriptify wrapper

* Add tests

* Fix tests

* Resolve comments
2018-10-04 13:43:00 +03:00
Leanid Shutau 6e6dd48409
[I18n] Update TS types in i18n engine (#23754) (#23805)
* [I18n] Export i18n service type

* Add InjectedIntl export and context type
2018-10-04 13:35:17 +03:00
Leanid Shutau 8b24893334
[I18n] Fix types paths for kbn-i18n package (#23744) (#23803)
* [I18n] Fix types paths for kbn-i18n package

* Remove module field from package.json
2018-10-04 12:07:21 +03:00
Aleh Zasypkin d758441fab
[6.x] Expose core config schema validation system as @kbn/config-schema package. (#23802) 2018-10-04 11:06:01 +02:00
Pete Harverson f90cb803de
[ML] Indicate multi-bucket anomalies in results dashboards (#23746) (#23765) 2018-10-04 09:26:58 +01:00
Brandon Kobel c798d1a52c
don't throw if authorization mode is already initialized (#23791) (#23798) 2018-10-03 19:12:08 -07:00
Brandon Kobel 08d0fb916d
Make saved object client await migrations prior to calling Elasticsearch (#23709) (#23795)
* Make saved object client error while Kibana index is migrating

* Tidy up a bit, and refactor the way the `isMigrated` check is accessed

* Remove unused interface declaration

* Remove default migrator from saved objects repository constructor

* Fix repository migrator isComplete check

* Wrap callCluster and delay it until migrations have completed...

* Fix inaccurate comment

* Ensure migrations wait for elasticsearch to go green prior to running

* Add tests for callCluster being wrapped in the repository, fix
the es_archiver's call to migrate index.

* Fix es_archiver's kbnServer mock
2018-10-03 16:09:22 -07:00
Shaunak Kashyap 5c021afc5d
Relax check to account for metricbeat-indexed doc format (#23730) (#23792)
With Metricbeat shipping Elasticsearch monitoring data (instead of internal collection by Elasticsearch), there are some subtle changes to the format of monitoring docs that are indexed into `.monitoring-es-6-*`. One such change is that metricbeat won't index fields with `null` values; instead it simply doesn't index such fields at all.

As a result, in the context of Elasticsearch monitoring docs, when it comes to docs with `type` = `shards` representing unassigned shards, the `shard.node` field was being indexed as `null` by internal Elasticearch collection, whereas the field was absent when the doc was indexed by Metricbeat.

Since both cases represent the same case — the shard being unassigned — this PR relaxes the check in the UI code to look for either case.

### Sample `shards` document indexed by internal ES collection

```js
{
   "_index":".monitoring-es-6-2018.10.02",
   "_type":"doc",
   "_id":"WUf_htOeSXOJQmiesyF5Bw:_na:metricbeat-7.0.0-alpha1-2018.10.01:0:r",
   "_source":{
      "cluster_uuid":"zXO1GjA6SJGsrPnCPkOoyA",
      "timestamp":"2018-10-02T03:54:43.364Z",
      "interval_ms":10000,
      "type":"shards",
      "source_node":null,
      "state_uuid":"WUf_htOeSXOJQmiesyF5Bw",
      "shard":{
         "state":"UNASSIGNED",
         "primary":false,
         "node":null,
         "relocating_node":null,
         "shard":0,
         "index":"metricbeat-7.0.0-alpha1-2018.10.01"
      }
   }
}
```

### Sample `shards` document indexed by Metricbeat collection

```js
{
   "_index":".monitoring-es-6-mb-2018.10.02",
   "_type":"doc",
   "_id":"FhDRTPjkQJqsgawYbxjQzw:_na:metricbeat-7.0.0-alpha1-2018.10.01:0:r",
   "_source":{
      "@timestamp":"2018-10-02T04:00:03.361Z",
      "interval_ms":10000,
      "shard":{
         "state":"UNASSIGNED",
         "primary":false,
         "index":"metricbeat-7.0.0-alpha1-2018.10.01",
         "shard":0
      },
      "state_uuid":"FhDRTPjkQJqsgawYbxjQzw",
      "beat":{
         "hostname":"Shaunaks-MBP-2",
         "version":"7.0.0-alpha1",
         "name":"Shaunaks-MBP-2"
      },
      "timestamp":"2018-10-02T04:00:03.375Z",
      "type":"shards",
      "metricset":{
         "name":"shard",
         "module":"elasticsearch",
         "host":"localhost:9200",
         "rtt":14254,
         "namespace":"elasticsearch.shard"
      },
      "host":{
         "name":"Shaunaks-MBP-2"
      },
      "cluster_uuid":"zXO1GjA6SJGsrPnCPkOoyA"
   }
}
```
2018-10-03 15:02:41 -07:00
Brandon Kobel d543e3f713
Limiting maximum number of Spaces (#23673) (#23774)
* Limiting the number of spaces

* Adding docs

* Adding forgotten fixture

* Fixing tslint error

* Adjusting docs

* Changing test descriptions from Boom.badRequest to bad request

* Updating error snapshots
2018-10-03 12:43:29 -07:00
Alex F 8a442ac4a7
eCommerce Sample Data (#23214) (#23788)
:shipit:
2018-10-03 15:38:08 -04:00
Larry Gregory e45921e449
Handle case where space name is made entirely of whitespace (#23691) (#23783)
* handle case where space name is made entirely of whitespace

* update space name validation
2018-10-03 14:24:01 -04:00
Catherine Liu b893aa76f4
Added checks in dom_preview to fix style null bug (#23706) (#23781)
* Added checks in dom_preview to fix style null bug

* Added early return in dom preview
2018-10-03 11:23:32 -07:00
Catherine Liu 1043944d02
Fixed merge conflict (#23780) 2018-10-03 11:20:23 -07:00
Ryan Keairns a11c383919
Watcher - convert LESS to SASS (#23252) (#23772)
* convert watch less to sass

* add temp workaround for loading new styles

* use new style path
2018-10-03 12:43:46 -05:00
Catherine Liu 671e33c676
Fix: setState warnings in Canvas (#23671) (#23737)
* Added check for mounted workpad loader before setState calls

* Added check for mounted page manager before setState calls

* Added check for mounted arg form before setState calls

* Resets onmousemove and onmouseup handlers when workpad page unmounts
2018-10-03 09:29:49 -07:00
Court Ewing f6d4fa974f
docs: note about permissions for grok debugger (#23664) (#23768) 2018-10-03 11:45:50 -04:00
Josh Dover 88fa89857d
Remove generated css file from git [ci skip] (#23728) 2018-10-03 10:32:02 -05:00
Thomas Watson 13b94ce656
chore: fix spelling of APM Server (#23729) (#23749) 2018-10-03 17:15:42 +02:00
Nathan Reese 67a685029a
do not call set state when unmounted (#23711) (#23732) 2018-10-03 07:06:01 -06:00
Melissa Alvarez 939f8791ba
[ML] Ensure charts loaded in Anomaly Explorer match swimlane selection (#23690) (#23747)
* Only consider last request.Prevent promise race condition

* Reminder for regression test
2018-10-03 13:00:58 +01:00
Robert Monfera 721bb8c96b
Feat: group resize for horizontal constituents (#23553) (#23741)
Feat: group resize for horizontal constituents
2018-10-03 09:10:01 +02:00
Robert Monfera 69bd9389d3
Fix: browser back button after workpad switch should be handled specially (#23619) (#23738) 2018-10-03 08:08:14 +02:00
Chris Davies 9edb4cc48b
Fix a bug with reindex timing out during migration of largish indices (#23397) (#23718)
Modify migrations to poll for realias completion to
avoid a timeout on larger indices
2018-10-02 20:41:35 -04:00
Larry Gregory a75da7aaa2
Fix space privilege associations when editing roles (#23638) (#23722)
This PR updates the role management screen so that changes to space privileges are correctly tracked when adding/updating/deleting both new and existing privilege associations.

We were not tracking state correctly when both existing and in-progress privileges existed on screen.

Closes #23541
2018-10-02 19:36:16 -04:00
Nathan Reese ca848446eb
Use EuiPanel to for dashboard panels (#22078) (#23717)
* Use EuiPanel to for dashboard panels

* Fixed styles (#27)

* Fixed styles

- Removed extraneous panel styles no longer needed
- Fixed overflow issue in FF

* Couple classname adjustments

* removed styles in expanded mode

* remove styles in expanded mode
2018-10-02 17:04:01 -06:00
Nathan Reese fc45377ac2
Fix child controls don't work after parent reset (#23616) (#23719)
* Fix child controls don't work after parent reset

* do not clear value on disable - this breaks values provided from kibana filters as highlighted by the broken functional test
2018-10-02 17:03:40 -06:00
Catherine Liu ef9898f732
Fix: page preview default font color (#23672) (#23726)
* Changes default font color to black in page_preview

* Switched to euiTextColor
2018-10-02 15:56:18 -07:00
Ryan Keairns 4a1932be72
Search Profiler - convert LESS to SASS (#23588) (#23702)
* converts less to sass

* IE fixes and misc tweaks

* feedback

* use bem css class naming
2018-10-02 17:52:48 -05:00
Josh Dover cf18cc6bcc
Add K7 header navigation (#23300) (#23713)
* Add basic support for new K7 navigation

* Make visibility and app title work

* Allow nav controls on right side of navbar

* Use render callback w/ el

* Add support for multiple sides

* Remove fake spaces nav control

* Breadcrumb support

* Hide breadcrumbs in plugins when k7design is enabled:

* Fix units

* Rename k7 -> header

* Add tests

* Fix tests

* Fix loading indicator

* PR comments

* Move ts-ignore

* Use canvasApp icon type
2018-10-02 16:09:23 -05:00
Larry Gregory ad8dc820c2
Fix error handling on role management screen (#23583) (#23701)
Fixes #23542 - old error handling was not working when API calls to create/update roles returned an error
2018-10-02 16:14:31 -04:00
Larry Gregory aeda9cfec9
Fix spaces table rendering in IE (#23608) (#23703)
This fixes table rendering in IE where we display the Space Avatar alongside the Space Name. The solution is to[ render them in separate columns](https://github.com/elastic/kibana/issues/23546#issuecomment-425108806), instead of a single column.

Screenshots from IE:
![fixed spaces cutoff](https://user-images.githubusercontent.com/3493255/46208213-036db700-c2f8-11e8-9a43-67bb42b7c788.png)

![fixed spaces cutoff 2](https://user-images.githubusercontent.com/3493255/46208216-0668a780-c2f8-11e8-94e0-454c51d543e2.png)


Closes #23546
2018-10-02 16:14:17 -04:00
Chris Davies aead3ef224
Fixes relative timezone bug #18133 for Chromium reports (#23652) (#23710) 2018-10-02 15:55:30 -04:00
debadair c7817c7f09 [DOCS] Removed "coming in 6.4.2" tag 2018-10-02 12:02:18 -07:00
Stacey Gammon 5251efc9ad
Reporting test readme (#23507) (#23698)
* Reporting test readme

* Use full urls

* more full paths

* Don't use link to session folder, it's not in repo.

* updates

* Consolidate all reporting information into the readme and link from main x-pack readme.

* be consistent with Note: styling

* Add windows steps for downloading the correct packages.
2018-10-02 14:25:47 -04:00
Brandon Kobel d6a720c1f5
When we get a 403 trying to get the telemetry document, assume we (#23631) (#23697)
haven't opted into telemetry
2018-10-02 10:54:48 -07:00
Nathan Reese e38baca1b1
Fix sample data install toasts error when user navigates away from home app while installing (#23574) (#23695)
* do not call functions on  after component has been unmounted

* use isDefault method when checking if defaultIndex config is set
2018-10-02 11:39:26 -06:00
Josh Dover 36f3169a37
Remove elasticsearch package from kbn-es (#23662) (#23693) 2018-10-02 12:09:36 -05:00
Tim Sullivan c47d296895
[Reporting] Chromium wait until domcontentloaded not networkidle0 (#23586) (#23688)
Kibana now keeps a constant connection between the browser and the
server from Canvas's websocket. When there's a reverse proxy between the
server and the browser, the fallback is XHR polling. This open polling
connection was keeping the network alive all the time, never idle, which
resulted in the Chromium browser driver kept waiting. Eventually, the
Report job would fail with a timeout error.
2018-10-02 09:38:10 -07:00
Leanid Shutau 2144a58923
i18n engine typescript migration (#22441) (#23682)
* configure typescript build, add necessary dependencies, change extensions, react migration

* migrate lib files in root

* update tests snapshots, resolve core loader, helper

* fix types for core components

* fix angular components

* fix angular staff

* use Messages type

* first-upper-case letter while using classs

* use stable latest babel, fix ts issues

* optimize .babelrc

* update lock file

* Fix x-pack/yarn.lock

* fix issue with unknown babel plugin

* add babel-config.js file with babel configuration for i18n engine build process instead of .babelrc file to fix jest issue

* Resolve comments

* Fix babel config

* Fix packages incompatibility issue

* Fix tslint errors

* Fix tests

* Resolve comments

* Fix types
2018-10-02 15:45:22 +03:00
Jonathan Budzenski bf310841e6
[field caps] filter nested and object fields (#23658)
* [field caps] filter nested and object fields

* update type list test

* update snapshots
2018-10-01 16:23:50 -05:00
gchaps 7710e65fdd [DOCS] Release Notes for 6.4.2 (#23620) 2018-10-01 13:14:02 -07:00