Commit graph

20746 commits

Author SHA1 Message Date
dave.snider@gmail.com
57b1a6ce71
Management core Less to Sass (#23596)
Converts management's less to sass. Makes minor adjustments to those pages for some design cleanup.
2018-10-04 22:33:49 -07:00
Josh Dover
03202be64a
Fix regression with ML breadcrumbs in old UI (#23756) 2018-10-04 16:12:44 -05:00
Ryan Keairns
42abc7df4a
change progress element titles to sentence casing (#23820) 2018-10-04 15:19:22 -05:00
lcawl
85c62afc2f [DOCS] Fixes broken link in monitoring page 2018-10-04 13:13:34 -07:00
Brandon Kobel
2fe176c6b2
Reenable X-Pack Functional Tests (#23836)
* 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 11:55:20 -07:00
Lisa Cawley
3a9deb0850
[DOCS] Update Kibana monitoring tasks (#23736) 2018-10-04 11:31:15 -07:00
Stacey Gammon
8b0b5b3ac6
Tests: Wait for dashboard save button to be enabled before clicking. (#23539)
* Fixes #21446

An attempt to fix the above by making sure the click only happens when the button is enabled.

* Fix wrong function name

* Fix mistakes
2018-10-04 13:27:48 -04:00
dave.snider@gmail.com
37bed9b51b
Eui 4.4.1 (#23790)
Updates EUI to 4.4.1 and includes some minor homepage changes around icons.
2018-10-04 09:35:29 -07:00
Jonathan Budzenski
c2bae26e87
[tests/browser] generate css before testsBundle, include css (#23794) 2018-10-04 11:10:20 -05:00
Leanid Shutau
95edbcdfbf
[I18n] Update TS types in i18n engine (#23754)
* [I18n] Export i18n service type

* Add InjectedIntl export and context type
2018-10-04 11:30:59 +03:00
Aleh Zasypkin
b2baf32fba
Expose core config schema validation system as @kbn/config-schema package. (#23609) 2018-10-04 09:18:40 +02:00
Larry Gregory
125e4fa6ad don't throw if authorization mode is already initialized (#23791) 2018-10-03 16:10:20 -07:00
Chris Davies
b6b6ebb5c4 Make saved object client await migrations prior to calling Elasticsearch (#23709)
* 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 14:26:35 -07:00
Shaunak Kashyap
84d4b0dc73
Relax check to account for metricbeat-indexed doc format (#23730)
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 11:49:38 -07:00
Alex F
e7290b90aa
eCommerce Sample Data (#23214)
:shipit:
2018-10-03 13:55:04 -04:00
Larry Gregory
9f10f6c696
Handle case where space name is made entirely of whitespace (#23691)
* handle case where space name is made entirely of whitespace

* update space name validation
2018-10-03 12:43:44 -04:00
Catherine Liu
b10992c182
Added checks in dom_preview to fix style null bug (#23706)
* Added checks in dom_preview to fix style null bug

* Added early return in dom preview
2018-10-03 09:32:53 -07:00
Catherine Liu
c3d48a0051
[WIP] Removes server functions from webpack bundle (#23290)
* Removed server functions from webpack bundle. Copies server files from canvas_plugins_src to canvas_plugins

* Moved server functions

* Installed CopyWebpackPlugin to copy server functions from canvas_plugin_src to canvas_plugin

* Added canvas_plugin_src to cluster manager ignore list

* Revert plugins task changes

* ignores __tests__ folder

* Added task to delete canvas_plugin before build

* Fixed bug in canvas:plugins:build-prod

* Updated yarn lock
2018-10-03 09:32:13 -07:00
Chris Roberson
9ba4c9ac6b
[Monitoring] Ensure we use the provided node id in the query (#23715)
* Ensure we use the right parameter name

* Update test fixture to use second node
2018-10-03 12:26:54 -04:00
Brandon Kobel
937e07c5f1
Limiting maximum number of Spaces (#23673)
* 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 09:09:12 -07:00
Ryan Keairns
c0eec4dd60
misc ui bug fixes (#23629) 2018-10-03 11:03:22 -05:00
Ryan Keairns
88c5c6d93c
Watcher - convert LESS to SASS (#23252)
* convert watch less to sass

* add temp workaround for loading new styles

* use new style path
2018-10-03 10:56:12 -05:00
Court Ewing
fd050fbcd3
docs: note about permissions for grok debugger (#23664) 2018-10-03 11:35:46 -04:00
Pete Harverson
557fc7a66f
[ML] Indicate multi-bucket anomalies in results dashboards (#23746) 2018-10-03 16:09:52 +01:00
Leanid Shutau
c993ad3996
[I18n] Add HOC injecting i18n provider (#23683)
* add injectI18nProvider HOC

* Fix propTypes typo

* Typescriptify wrapper

* Add tests

* Fix tests

* Resolve comments
2018-10-03 17:57:04 +03:00
Leanid Shutau
2f62fd6978
[I18n] Fix types paths for kbn-i18n package (#23744)
* [I18n] Fix types paths for kbn-i18n package

* Remove module field from package.json
2018-10-03 17:56:07 +03:00
Thomas Watson
1d7adee485
chore: fix spelling of APM Server (#23729) 2018-10-03 13:49:34 +02:00
Melissa Alvarez
1311d89b24
[ML] Ensure charts loaded in Anomaly Explorer match swimlane selection (#23690)
* Only consider last request.Prevent promise race condition

* Reminder for regression test
2018-10-03 11:19:20 +01:00
Robert Monfera
57b4b144fc
Feat: group resize for horizontal constituents (#23553)
Feat: group resize for horizontal constituents
2018-10-03 09:08:48 +02:00
Robert Monfera
52df40e42f
Fix: browser back button after workpad switch should be handled specially (#23619) 2018-10-03 07:23:22 +02:00
Catherine Liu
2da50a9085
Fix: setState warnings in Canvas (#23671)
* 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-02 19:18:23 -07:00
Nathan Reese
17f11ccc53
do not call set state when unmounted (#23711) 2018-10-02 17:04:26 -06:00
Catherine Liu
30929fad79
Fix: page preview default font color (#23672)
* Changes default font color to black in page_preview

* Switched to euiTextColor
2018-10-02 14:11:20 -07:00
Larry Gregory
981e98c2fe
Fix space privilege associations when editing roles (#23638)
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 16:45:28 -04:00
Nathan Reese
e44113393a
Fix child controls don't work after parent reset (#23616)
* 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 13:55:27 -06:00
Chris Davies
cce9a682de
Fix a bug with reindex timing out during migration of largish indices (#23397)
Modify migrations to poll for realias completion to
avoid a timeout on larger indices
2018-10-02 15:54:45 -04:00
Nathan Reese
2040cd501c
Use EuiPanel to for dashboard panels (#22078)
* 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 13:53:48 -06:00
Josh Dover
49798bc8ad
Add K7 header navigation (#23300)
* 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 14:09:47 -05:00
Chris Davies
f74b4bfdac
Fixes relative timezone bug #18133 for Chromium reports (#23652) 2018-10-02 14:09:54 -04:00
Larry Gregory
e9d23f64f7
Fix spaces table rendering in IE (#23608)
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 13:31:42 -04:00
Ryan Keairns
6932cf2b17
Search Profiler - convert LESS to SASS (#23588)
* converts less to sass

* IE fixes and misc tweaks

* feedback

* use bem css class naming
2018-10-02 12:30:29 -05:00
Larry Gregory
5c6ebc76f4
Fix error handling on role management screen (#23583)
Fixes #23542 - old error handling was not working when API calls to create/update roles returned an error
2018-10-02 13:29:50 -04:00
Stacey Gammon
4c1c04cb40
Reporting test readme (#23507)
* 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 12:19:28 -04:00
Brandon Kobel
a839f7f403
When we get a 403 trying to get the telemetry document, assume we (#23631)
haven't opted into telemetry
2018-10-02 09:09:05 -07:00
Nathan Reese
3d50ef741a
Fix sample data install toasts error when user navigates away from home app while installing (#23574)
* do not call functions on  after component has been unmounted

* use isDefault method when checking if defaultIndex config is set
2018-10-02 09:58:17 -06:00
Josh Dover
cea1301127
Remove elasticsearch package from kbn-es (#23662) 2018-10-02 10:19:33 -05:00
Tim Sullivan
8d02866321
[Reporting] Chromium wait until domcontentloaded not networkidle0 (#23586)
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 06:57:14 -07:00
Chris Roberson
52723502bc
[Beats] Add space.id to all filebeat and metricbeat tutorials (#22998)
* Add space id to all filebeat and metricbeat tutorials

* Do not show if default or does not exist. Also, move to a helper method as the logic is fairly complex now.

* Add comment

* Provide a boolean indicating if the current space is the default one on the context object

* Remove debug

* PR feedback

* Fix prettier issue
2018-10-02 09:49:54 -04:00
Aliaksandr Yankouski
a002ee4369 i18n engine typescript migration (#22441)
* 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 11:55:15 +03:00
Jonathan Budzenski
6b3bc45b9a
[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:15:22 -05:00