Commit graph

581 commits

Author SHA1 Message Date
Larry Gregory 6baa0646ac
Switch to using a fork (#24036) 2018-10-16 14:03:36 -04:00
Rashid Khan 97c9f52b32 Point at kibana directory for plugin loading (#24049) 2018-10-16 08:29:20 -07:00
Josh Dover b1df05cb14
Skip failing dashboard reporting test (#24040) (#24051) 2018-10-16 10:11:29 -05:00
Ryan Keairns 6d76ba9f46
fix sidebar scrolling in firefox (#24011) (#24043) 2018-10-16 09:40:00 -05:00
Walter Rafelsberger 482606337a
[ML] Make sure anomalyChartRecords gets initialized as an Array. (#24021) (#24061)
Fixes an issue where resizing the Anomaly Explorer window could trigger an error if the only job being loaded so far didn't have any anomalyChartRecords.
2018-10-16 10:15:02 +01:00
Spencer f5ca67dc41
[6.x] [yarn] Upgrade to 1.10.1 (#23971) (#24054)
Backports the following commits to 6.x:
 - [yarn] Upgrade to 1.10.1  (#23971)
2018-10-15 18:20:26 -07:00
Brandon Kobel 4913e93139
Fixing the spaces audit logger when security is explicitly disabled (#23878) (#24018) 2018-10-16 00:29:52 +01:00
Josh Dover 6c1933e6cc
Fix regression with ML breadcrumbs in old UI (#23756) (#24044) 2018-10-16 00:07:48 +01:00
Catherine Liu ac1d59a8fa
Sets private:true in canvas package.json (#24022) (#24032) 2018-10-15 15:00:26 -04:00
Larry Gregory 4a4c1e5985
[6.x] Delete objects belonging to removed space (#23640) (#24033)
Backports the following commits to 6.x:
 - Delete objects belonging to removed space  (#23640)
2018-10-15 19:05:57 +01:00
Catherine Liu 2f7797b7b1
Moved squel from devDependencies to dependencies (#23849) (#24025) 2018-10-15 12:18:17 -04:00
Catherine Liu 03fd3316b5
fix: Router can render function or class components (#23372) (#23964)
* fix: router can render function or class components

* fix: correctly define state

and change the first load detection, since this.state is always set now

* chore: DRY up navigation code

* tests: disable listener cleanup test

there's no way to know when the listener is going to get cleaned up anymore :(
2018-10-12 01:45:26 +01:00
Catherine Liu b7a00606ff
Adds super select to font picker (#23855) (#23928)
* Adds super select to font picker. Removes fauxSelect component

* Removed import for font_picker.scss
2018-10-11 09:08:11 +01:00
Ryan Keairns 52835b0439
removes unused less styles (#23759) (#23927) 2018-10-10 06:53:01 -05:00
Walter Rafelsberger fcaa28783d
[ML] Makes mlExplorerDashboardService independent of angularjs (#23874) (#23884)
This is a refactor of mlExplorerDashboardService to make it available via import instead of angularjs dependency injection. This way it's also not necessary anymore to pass it on as a prop to ExplorerSwimlane, the component can now import the service by itself.
2018-10-10 09:54:26 +02:00
Catherine Liu 780dcd57ed
fixes early return condition in dom_preview (#23894) (#23908) 2018-10-09 06:12:45 +01:00
Josh Dover 2031b1e2df
Prevent header popovers from scrolling with page content (#23850) (#23900) 2018-10-08 04:45:36 -05:00
Walter Rafelsberger e21da24ad5
[ML] Anomaly Explorer Rare/Population Charts (#23423) (#23879)
This PR introduces custom charts for detectors that use a rare function (Event Distribution Chart) as well as detectors that use an over field (Population Distribution Chart).
2018-10-07 11:26:29 +02:00
Chris Roberson f178d6092b
[6.x] [Monitoring] CCR UI (#23013) (#23873)
* [Monitoring] CCR UI (#23013)

* Initial version of CCR monitoring UI

* Adding missing files

* Use icons

* Use new column header text

* Update tests

* Basic of shard detail page

* Do these in parallel

* Disable time picker on ccr page

* Remove summary for now

* Remove unnecessary code here

* Fix a few things on the shard page

* Only send down what we need

* update snapshot

* Handle no ccr_stats documents

* Ensure we fetch the latest

* Updates

* Format the time

* Add api integration tests

* Adding pagination and sorting

* Updated query logic

* Change this back

* Add specific information about the follower and leader lag ops

* Update tests

* UI updates

* Address PR issues

* Fix tests

* Update shapshots

* Add timestamp

* Update tests

* Add a few snapshot tests

* Use timezone formatter

* Fix tests

* Fix aligment of shard table

* PR feedback

* Update snapshots

* Update snapshot

* Fix tests for #23013 (#23883)
2018-10-06 13:56:09 -04:00
Brandon Kobel 7b639ca77d
Fixing the behavior when scrolling of the spaces popover (#23851) (#23886) 2018-10-05 11:45:07 -07:00
Catherine Liu 887ad26367
Change single select combo box to plain text in esdocs (#23853) (#23877) 2018-10-05 11:14:16 -07:00
Melissa Alvarez 932faba615
[ML] Ensure Calendar creation navigation tabs are keyboard/screen reader accessible (#23832) (#23870)
* Calendar nav links keyboard accessible

* Prevent default click behavior

* use event default value

* remove unnecessary default param
2018-10-05 15:28:10 +01:00
Ryan Keairns 6efa089bb9
Reporting SASS - Remove less styles (#23782) (#23871)
* remove less styles

* remove less import
2018-10-05 09:24:22 -05:00
pavel06081991 3c7646e131
i18n remove extra span tags (#23529) (#23864)
remove extra span tags generated by FormattedMessage component

translate missed labels
2018-10-05 11:53:56 +03:00
dave.snider@gmail.com 6a8a653327
Management core Less to Sass (#23596) (#23861)
Converts management's less to sass. Makes minor adjustments to those pages for some design cleanup.
2018-10-05 00:41:17 -07:00
Ryan Keairns 74f1bae873
change progress element titles to sentence casing (#23820) (#23846) 2018-10-04 20:15:34 -05:00
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
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
Ryan Keairns 76da440962
misc ui bug fixes (#23629) (#23773) 2018-10-04 10:16:54 -05: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
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
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
Josh Dover 88fa89857d
Remove generated css file from git [ci skip] (#23728) 2018-10-03 10:32:02 -05: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
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
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