Commit graph

17156 commits

Author SHA1 Message Date
Søren Louv-Jansen df564a7f96
Update .backportrc.json (#18724) (#18734) 2018-05-02 21:00:07 +02:00
Kelly Murphy c3e41894f9
[Docs] Kibana settings anchors for ECE (6.x) (#17376)
* Reference anchors for links

* Cloud phrasing

* Reviewer feedback
2018-05-02 12:23:15 -05:00
Bill McConaghy eab030b9f7
fixing issue with cancel button on revert to basic license modal (#18718) (#18727) 2018-05-02 12:57:06 -04:00
Walter Rafelsberger 895249f1d9
[ML] Adds an mml check to trigger an error when mml value is invalid. (#18678) (#18711)
This adds an additional check and corresponding error message to the validation of the model memory limit. If the parsing of the memory model limit results in 0 bytes the message will be triggered. This behaviour catches both correctly formatted but invalid strings (like 0mb) and invalid strings (like asdf).
2018-05-02 18:53:27 +02:00
James Gowdy e19a951594
[ML] Fixing MS Edge GET request error (#18713) (#18719) 2018-05-02 17:34:14 +01:00
gchaps 309fc2cd49
[UI Text: Security] Edited text in User, Add user, and Edit user pages (#18618) (#18720) 2018-05-02 08:46:44 -07:00
Pete Harverson c651831a45
[ML] Display typical values for lat_long anomalies (#18715) (#18716) 2018-05-02 14:29:27 +01:00
James Gowdy ede1d86554
[ML] Adding ace editor for JSON (#18692) (#18714)
* [ML] Adding ace editor for JSON

* removing unnecessary require-keys setting
2018-05-02 13:40:50 +01:00
Pete Harverson 049516a1e3
[ML] Fix merge conflicts (#18710) 2018-05-02 11:10:28 +01:00
Walter Rafelsberger 7e81eb2882
[ML] Omit mml success message when mml checks are not run. (#18659) (#18708)
Updates the behaviour of the job validation's model memory limit checks: The success messages success_mml gets only returned if the checks were actually run. This omits the success message for example in the single metric and population wizard.
2018-05-02 11:37:19 +02:00
Walter Rafelsberger ad326be776
[ML] Fixes sync issue where a manipulated AppState wouldn't contain the original attribute anymore. (#18653) (#18705)
Inconcistencies between AppState and derived custom states for UI components like mlSelectLimit and mlSelectInterval could trigger errors because the parent of a nested object attribute could become undefined. This PR adds additional checks to state_factory.js's get/set/reset methods to reinitialize itself with AppState and fall back to its default state should it not be present within AppState anymore. The original issues were hard to reproduce consistently using the UI only. However the error could be triggered when creating a malformed URL, like replacing the mlSelectInterval:(interval:(display:Auto,val:auto)) part of the URL to something like mlSelectInterval:(undefined). This PR includes additional unit tests which simulate this behaviour and fail without the additional checks provided by this PR.
2018-05-02 10:10:28 +02:00
Nathan Reese 2dfd8b750b
replace KuiCard with EuiCard in kibana home (#17771) (#18695)
* replace KuiCard with EuiCard in kibana home

* fix button styling

* update snapshots caused by new EUI version from rebase

* allow flex group to wrap
2018-05-01 17:59:12 -06:00
Jonathan Budzenski 87d0bcdcc5
Bump http-proxy-agent (#17840) 2018-05-01 15:59:51 -05:00
Tim Sullivan b4c226bbb7
[Stats] Add metrics collector and stats API (#17773) (#18677)
* [Stats] Add metrics collector and stats API

* uptime_ms in the process namespace

* make uptime_in_millis always equal process.uptime_ms

* fix api integration test

* fix api integration test better

* fix false positive with last change

* change object detection, add fallbacks to return undefined
2018-05-01 08:59:53 -07:00
Jonathan Budzenski 88eed1a0aa
[console_extensions] disable when console is disabled (#18673)
* [console_extensions] disable when console is disabled

* [console extensions] has console and enabled

* [console_extensions] fix console_extensions.enabled
2018-05-01 10:56:14 -05:00
Shaunak Kashyap b378717c86 [Logstash Centralized Management] Hide recently-deleted pipelines (follow up PR) (#18683)
* Renaming constant to be more descriptive

* Less kludgy language for better readabilility

* Removing extraneous newlines
2018-05-01 07:16:45 -07:00
James Gowdy 65c907834c
[6.x] [ML] Convert job select service to a provider (#18665) 2018-05-01 07:07:25 +01:00
James Gowdy 95b234842d
[6.x] [ML] Removing messagebar angular service (#18661) 2018-05-01 07:07:14 +01:00
lcawley 6df4f46742 [DOCS] Removes X-Pack plugin info 2018-04-30 14:00:49 -07:00
Shaunak Kashyap 84ae548b77 [Grok Debugger] Adding syntax highlighting for grok expressions (#18572)
* Adding basic syntax highlighting for grok expressions

* Use EUI color palette

* Handle regex tokens, escaped and unescaped

* Return token for escaped content

* Add functional test

* Using higher-contrast colors

* Removing comment I used for developing the highlight rules

* Using object destructuring

* Removing unnecessary method
2018-04-30 12:31:57 -07:00
Thomas Neirynck 617db3cbe8
Add filter bar show/hide button (#17161) (#18660) 2018-04-30 15:17:51 -04:00
Shaunak Kashyap f0e30997fd [Logstash Centralized Management] Hide recently-deleted pipelines (#18644)
* Extracting constant for reuse

* Keep track of recently-deleted pipelines until Monitoring stops reporting them

* Adding explanatory comment for constant
2018-04-30 12:05:11 -07:00
Tim Sullivan c4476243d5
[Monitoring] add get_clusters_summary to shrink cluster api response (#18596) (#18663)
This reduces the output from the clusters API in the data processing stage.

Mainly, it throws away a lot of unused fields in `elasticsearch.cluster_stats` and `elasticsearch.cluster_state`

cc @rasroh
2018-04-30 10:59:17 -07:00
Tim Sullivan d3b4cf5a49
[Status] Organize metrics stuff into metrics_collector, tests into __test__ directories, remove mock-fs for the cgroup test (#17788) (#18578)
* [Status] Organize tests into __test__ directories

* custom mock for fs in cgroups test

* work around unhandled rejection errors

* simplify fserror construct

* put fs readFile mockImpl in beforeAll for pretty

* undo hacking the code to suppress unhandled promise rejections

* test files back to sibling of the module
2018-04-30 10:59:01 -07:00
Bill McConaghy e8957c2592
passing acknowledge=true with start_trial (#18655) (#18666) 2018-04-30 13:02:42 -04:00
Tim Sullivan 9219ef2413
[Monitoring/React] Render ES Nodes Listing with Base Controller (#18585) (#18594)
* [Monitoring/React] Render ES Nodes Listing with Base Controller

Refactors the ES Nodes Listing to use Base Controller and a React component instead of an Angular directive

* remove another obsolete file
2018-04-30 09:14:13 -07:00
Hilko 5b4e00b053
HTTP for standard development URL in documentation (#17834)
The documentation states, that after using `yarn start` one should navigate to https://localhost:5601. For me it did not work, since kibana only seems to listen to https if one provides the "--ssl" flag as option (just as described in #### Setting Up SSL).
Thus, I changed the documentation to reflect this fact.
2018-04-30 10:43:02 -05:00
truman.p.du 9267eb53ed
add bmap visualization plugin (#18599)
* add Indices View plugin

add Indices View plugin

* add bmap plugin

add bmap plugin

* add bmap plugin

add bmap plugin
2018-04-30 10:38:37 -05:00
James Gowdy 6f30c7b905
[6.x] [ML] Removing angular services refactor (#18654) 2018-04-30 15:39:00 +01:00
James Gowdy 641f9da5af
[6.x] [ML] Privileges refactor (#18652) 2018-04-30 13:14:53 +01:00
Pete Harverson 0c2f46a1ef
[6.x] [ML] Fix opening Data Visualizer for recognized index (#18639) 2018-04-30 12:56:14 +01:00
James Gowdy 6b8ce02a96
[ML] [6.x] Better error reporting in create recognized job page (#18638)
* Better error reporting in create recognized job page

* removing failed jobs from the results url
2018-04-28 08:23:57 +01:00
Yuri Astrakhan e71719f2d3
[vega] support HTML tooltips (#17632) (#18642)
Implement support for the richer style Vega tooltips, per https://github.com/elastic/kibana/issues/17215 request. Uses [Vega tooltip plugin](https://github.com/vega/vega-tooltip) for formatting.  Always enabled unless user sets `tooltips=false` flag in the `config.kibana` section of the spec.
![image](https://user-images.githubusercontent.com/1641515/39344487-7abc9eb0-49eb-11e8-89dd-bf562563ae1c.png)

## Test code
```js
{
  $schema: https://vega.github.io/schema/vega/v3.json
  config: {
    kibana: {
      tooltips: {
        // always center on the mark, not mouse x,y
        centerOnMark: true
        position: top
        padding: 20
      }
    }
  }
  data: [
    {
      name: table
      values: [
        {
          title: This is a long title
          fieldA: value of fld1
          fld2: 42
        }
      ]
    }
  ]
  marks: [
    {
      from: {data: "table"}
      type: rect
      encode: {
        enter: {
          fill: {value: "#060"}
          x: {signal: "40"}
          y: {signal: "40"}
          width: {signal: "40"}
          height: {signal: "40"}
          tooltip: {signal: "datum || null"}
        }
      }
    }
  ]
}
```
2018-04-27 22:15:36 +03:00
Nathan Reese d74866dd0d
update to eui 0.0.44 (#18606) (#18641)
* update to eui 0.0.44

* keep eui dependency in x-pack

* wrap EuiBasic table column in span to avoid className prop from getting overridden

* remove brittle functional tests that are no longer needed with EUI components

* filter field list instead of chaning table size

* update x-pack snapshots
2018-04-27 13:02:35 -06:00
James Gowdy 1249643cf6
Adding move to advanced job feature (#18633) 2018-04-27 16:20:57 +01:00
James Gowdy a80c669490
[ML] [6.x] Allow overwriting of query in recognised jobs (#5274) (#18632)
* Allow overwriting of query in recognizer jobs

* adding query overwrite warning

* adding null check
2018-04-27 16:20:44 +01:00
Pete Harverson c00bfe535a
[6.x] [ML] Convert forecasting modal to EUI/React (#18630) 2018-04-27 13:14:42 +01:00
Søren Louv-Jansen bd68da3b55
[APM] Minor watcher improvements (#18602) (#18608)
* [APM] Improve watcher tests

* Update tests
2018-04-26 19:05:24 +02:00
Nathan Reese b64c66c789
Eui dashboard listing (#16967) (#18605)
* convert dashboard listing page to react and EUI

* add jest test for DashboardListing component

* add data-test-subj attributes

* clean up jest test

* hideWriteControls and call to action when no dashboards exist

* pass initial filter to dashboard listing, get functional tests to work

* fix dashboard queries functional tests

* upgraded to EUI 0.0.29 to get defaultFocusedButton fix

* move dashboardListing directive to index

* spacing in if statement

* switch to EuiBasicTable

* pagination

* add sorting

* fix jest test

* handle out of order fetchs

* remove info.gif

* re-instate search functional test

* replace EuiSearchBar with EuiFieldSearch

* fix functional tests

* update snapshot - when code rebased - new EUI version add another prop

* add Edit link to actions column
2018-04-26 10:51:14 -06:00
Tim Roes 1f6382c6ee
Fix map not refetching correctly (#18600) (#18603) 2018-04-26 17:02:36 +02:00
Thomas Neirynck 67fed219df
Add multiple colorramps to coordinate maps (#17403) (#18586) 2018-04-26 09:52:36 -04:00
Tim Sullivan e3389ee171 [Monitoring/License] copy license LESS instead of reference it (#18591) 2018-04-25 17:37:34 -07:00
Yuri Astrakhan 0e57b9e994
Bumped Vega lib version to 3.3.1 (#17829) (#18589)
Turns out there is a significant problem with how Vega library manages its dependencies. Instead of using a fairly common "^1.2.3" form, it used "1" (major only) almost everywhere. While this works fine if node_modules and yarn.lock are deleted and rebuilt, bumping Vega lib's primary version in our package.json and using yarn install would not touch other subcomponents. This resulted in several 6.2 and 6.3 shipping with the outdated vega dependencies while we thought that we included the latest vega versions The problem has been reported vega/vega#1259 and will hopefully be solved with the next version.

In the mean time, this patch updates all vega-related dependencies in the yarn.lock file.
2018-04-26 02:43:42 +03:00
Fabien Baligand 0a4f4f664d
add doc for environment variable injection (#17833) 2018-04-25 17:20:23 -05:00
Tyler Smalley 0ecab8c853 [kbn-es] Use basic license as default (#18577)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-04-25 14:00:46 -07:00
Stacey Gammon 3e9cc0f8aa
Fleshed out communication layer between embeddables and dashboard (#17446) (#18563)
* Flesh out communication layer between embeddables and dashboard

* fix flaky legend colors

* Address code review comments

* Remove embeddableHandlerCache and push render/destroy handling of Embeddable instance into react component

* Fix a bug and adds tests that would have failed

* Whoops, fix toggleExpandPanel, in view mode it's not in the panel options

* Update readme based on newest implementation, after pushing all embeddable lifecycle handling to the embeddable_viewport component

* Push embeddable handling back up to dashboard_panel, get rid of embeddable_viewport

The options menu will eventually need access to the embeddable for
things like pluggable panel actions.

* Update README.md

* Fix jest tests

* Add two failing tests to catch current bugs

* Fix max call size exceeded err

* fix time range bug

* Add failing test for filter field index pattern bug

* Fix bug with index patterns

* Expand on definition of an embeddable

* Address code review comments

* address some code comments

rename personalization => customization
add more optional config overrides into an Embeddable constructor

* Fix refactor bug
2018-04-25 15:10:49 -04:00
Tim Roes 2281d1f612
Add significant terms in tag cloud visualization (#17770) (#18560)
* Allow significant terms for tag cloud

* Fix request before terms aggregation has configured

* Check if at least one agg is in array
2018-04-25 17:59:15 +02:00
Larry Gregory 56fe6cbb33
Disallow use of "dangerouslySetInnerHTML" on React components (#17759) (#18565)
Disallows use of "dangerouslySetInnerHTML" on React components, except where explicitly whitelisted
2018-04-25 11:58:48 -04:00
Kim Joar Bekkelund dc6ef763fe
Improve the reload logging config assertions (#17815) (#17820)
* Improve the reload logging config assertions

* Add a timer to hopefully make less flaky
2018-04-25 14:52:54 +02:00
Tim Roes c47948e925
Fix forwarding of modifyAggConfigOnSearchRequestStart (#17740) (#18557)
* Fix forwarding of modifyAggConfigOnSearchRequestStart

* Add unit tests
2018-04-25 12:44:25 +02:00