Commit graph

17050 commits

Author SHA1 Message Date
Luis Pallares bd7f4dbe4d
Update more_like_this console template (#16935) (#16936) 2018-03-07 14:12:46 -06:00
Stacey Gammon aec8390558
Remove unused function in panel utils (#16986) (#17009)
* Remove unused function in panel utils

* remove another unused function
2018-03-07 15:09:25 -05:00
Stacey Gammon 74a4bc5c15
Tests are failing consistently (#16995) (#17008) 2018-03-07 13:31:43 -05:00
Matt Bargar 5317c733a4
Update Kuery Syntax (#15857) (#17005)
This PR evolves Kuery into a simplified, more lucene-like language. In a follow up PR we plan on getting rid of the language switcher dropdown and instead add a checkbox that will allow users to opt-in to this syntax, which will feel less like a separate language and more like a set of enhancements to the existing lucene query syntax.

This PR also updates the simple grammar to solve the following:

* Wildcards in field names
* "is one of" shorthand (e.g. foo:(bar OR baz OR qux))
* Don't split on whitespace (require explicit AND/ORs, case insensitive)
* "exists" query (e.g. foo:*)
* Improved range query shorthands (e.g. foo <= 1)
* Wildcard queries

Since this new syntax is simpler and does not support every filter type like old Kuery did, this PR also brings back the filter bar when kuery is selected in the language picker.

See the documentation updates in this PR if you need an overview of the new syntax (and let us know if the documentation is lacking).
2018-03-07 10:13:45 -08:00
Jun Ohtani 23c5a35eec Add _analyze UI link (#16331) 2018-03-07 16:03:59 +09:00
Tyler Smalley 8b86bed048
Bumps node to 8.9.4 (#16981) (#16990)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-05 17:53:22 -08:00
Kim Joar Bekkelund c33db7f0fd
Upgrade to Prettier 1.11.1 (#16956) (#16971) 2018-03-05 06:27:26 -08:00
Tim Roes 9d3400c120
Make heatmap label color readable on dark background (#16773) (#16966)
* Implement automatical heatmap label color

* Prevent failure in tests
2018-03-04 17:07:05 -08:00
Chris Roberson 612ae2e998
Explicit addition of type button (#16855) (#16961) 2018-03-04 10:00:17 -08:00
Yuri Astrakhan 3760e56ade
Bumped Vega dependencies (#16891) (#16949) 2018-03-01 23:27:01 -05:00
Lukas Olson a856e42a8a Refactor typeahead for reuse (#14165)
* First stab at refactoring typeahead

* Don't double submit on enter

* Add item templating

* Remove unnecessary test

* Don't submit on enter

* Add clarifying comment

* Fix history log key

* Fix key handling

* Don't always hide on submit

* Check items exists

* Simplify select next/prev and reset selected on hide/backspace

* Add test

* Put persistedLog on scope so it can be tested

* Update typeahead items when language changes

* Finish that work I didn't do in the last commit

* Order matters
2018-02-26 10:11:40 -07:00
Stacey Gammon 323ff3678f
render expects a promise return value (#16906) (#16909) 2018-02-25 12:40:12 -05:00
Stacey Gammon 0c9ee415e6
remove duplicate functions from dashboard_panel.js (#16907) (#16908) 2018-02-25 12:39:32 -05:00
Bhavya RM 496e94a88e
Sanity tests for table viz in TSVB (#16880) (#16897)
Sanity test for table viz in TSVB
2018-02-23 18:33:36 -05:00
Nathan Reese 76722b0b8a
use field formattor to format list options (#16804) (#16896) 2018-02-23 14:24:47 -07:00
Nathan Reese 7eb2bfc2ba
Update filterEditor directive to use default index pattern when none are provided. (#16235) (#16893)
* use default index pattern when filter-editor is not passed any index patterns

* add functional test

* pass indexPatterns to filterBar directive

* handle check for [undefined]

* use _.compact to test if index patterns are provided

* simplify areIndexPatternsProvided
2018-02-23 12:37:58 -07:00
Yuri Astrakhan a1dd0704bc
Vega: Handle no height/width with autosize=none (#16696) (#16722)
This works around the issue described in
https://github.com/vega/vega/issues/1146

With this patch, users will be able to set autosize=none,
while at the same time rely on Kibana to set width/height.
This will only be done when width & height are not set.

Testing code:

```hjson
{
  $schema: https://vega.github.io/schema/vega/v3.0.json
  autosize: none
  padding: {left: 32, bottom: 24, top: 10, right: 6}
  background: "#dbb"
  scales: [
    {
      name: x
      type: band
      range: width
      domain: ["a", "b"]
      paddingOuter: 0.05
      paddingInner: 0.95
    }
    {
      name: y
      type: linear
      range: height
      domain: [0, 100]
    }
  ]
  data: [
    {
      name: edges
      values: [
        {x1: "a", x2: "b", y1: 50, y2: 50, value: 100}
      ]
      transform: [
        {
          type: linkpath
          orient: horizontal
          shape: {signal: "'diagonal'"}
          sourceY: {expr: "scale('y', datum.y1)"}
          sourceX: {expr: "scale('x', datum.x1) + bandwidth('x')"}
          targetY: {expr: "scale('y', datum.y2)"}
          targetX: {expr: "scale('x', datum.x2)"}
        }
        {
          type: formula
          expr: range('y')[0]-scale('y', datum.value)
          as: strokeWidth
        }
      ]
    }
  ]
  axes: [
    {orient: "bottom", scale: "x", zindex: 1}
    {orient: "left", scale: "y", zindex: 1}
  ]
  marks: [
    {
      type: path
      name: edgeMark
      from: {data: "edges"}
      encode: {
        update: {
          strokeWidth: {field: "strokeWidth"}
          path: {field: "path"}
        }
      }
    }
  ]
}
```
2018-02-23 13:27:30 -05:00
Shaunak Kashyap 0c7b75e9f7 Add disabled state + tooltip on dev tools tabs (#16844) 2018-02-23 07:23:02 -08:00
Kim Joar Bekkelund a2cc5fa276
[kbn-pm] Better command setup (#16879) (#16889) 2018-02-23 15:03:44 +01:00
Peter Pisljar afa91e20df
fixes error with postFlightRequest (#16643) (#16887) 2018-02-23 12:32:44 +01:00
Tim Roes 030b5ba577
Fix update status documentation (#16885) (#16886) 2018-02-23 12:21:25 +01:00
CJ Cenizal c70cc481a4
Upgrade EUI to 0.0.23. (#16856) (#16883)
* Upgrade EUI to 0.0.23.
* Update Jest snapshots.
2018-02-22 16:29:10 -08:00
Tim Roes 719cae9618
Improve getUpdateStatus performance (#16403) (#16874)
* Only update status when required

* Add missing Status.PARAMS

* Add requiresUpdateStatus to Vega vis

* Add requiresUpdateStatus for editors

* Fix stupid issue

* Create unit tests for getUpdateStatus method
2018-02-22 19:01:18 +01:00
Brandon Kobel 4841d60bc4
Resolving issue with maximized visualizations in Safari 9-10 (#16573) (#16873) 2018-02-22 10:58:51 -05:00
Spencer 2355976769
[6.x] [npm] pin chromedriver to 2.33.2 (#16857) (#16859)
See https://bugs.chromium.org/p/chromedriver/issues/detail?id=2239

Until Chrome v65 is commonplace, chromedriver 2.34+ won't respond when changing the URL and the new url only has a different hash
2018-02-21 20:36:23 -07:00
Anshita Vishwakarma 867b34d505 Beta tag removed from Kibana-CCS Integration in master branch (#16847) 2018-02-21 17:29:34 -07:00
Spencer d2ba76c6b9
[6.x] [pluginDiscovery] dedupe packs by absolute path (#16829) (#16854)
* [pluginDiscovery] dedupe packs by absolute path

* [pluginDiscovery] extract distinct keySelector, add more docs
2018-02-21 16:31:02 -07:00
Kim Joar Bekkelund 34dbcd9f09
[kbn-pm] Stricter types when creating maps (#16848) (#16852) 2018-02-21 22:49:27 +01:00
Chris Roberson b0398c2903
Fix index pattern names in management section (#16802) (#16851) 2018-02-21 16:34:12 -05:00
Matt Bargar 3e31ef21c0
Removed the clipping off of sidebar items (#16834) (#16849) 2018-02-21 16:27:58 -05:00
Kim Joar Bekkelund e013ca7d65
[kbn-pm] Show list of projects as a tree (#16754) (#16846) 2018-02-21 21:17:58 +01:00
Spencer e8f7e8d6f1
[plugin-helpers] allow opt-ing out of dependency installation (#16816) (#16835)
* [kbn-plugin-helpers] allow opt-ing out of dependency installation

* [plugin-helpers] rename buildIgnoreDependencies to skipInstallDependencies

* [plugin-helpers] use noop3 for test

* [plugin-helpers] fix test description

* [plugin-helpers] fix assertion
2018-02-21 11:16:46 -07:00
Kim Joar Bekkelund f1d19328b5
Show error when require(pack) fails (#16837) (#16845) 2018-02-21 18:46:26 +01:00
Kim Joar Bekkelund 464671b21d
[kbn-pm] Enable intermediate build directory for projects (#16839) (#16842) 2018-02-21 15:44:21 +01:00
Tim Roes 3835875d19
Refactor category into vis_category (#16774) (#16840) 2018-02-21 14:15:55 +01:00
Tim Roes 385a5a3729
Allow totals on unique count aggregations (#16666) (#16841) 2018-02-21 14:15:37 +01:00
Aleh Zasypkin 8e97b7d285
[6.x] Port kbn-pm to TypeScript. (#16838) 2018-02-21 11:16:04 +01:00
Aleh Zasypkin 1ee793c633
[6.x] Introduce Jest integration tests. (#16830) 2018-02-20 23:02:29 +01:00
CJ Cenizal d969647512
Remove logs from browser console in Dev Tools. (#15511) (#16828) 2018-02-20 11:54:18 -08:00
Nathan Reese 992952fd1a
change 'On premise' to 'Self managed' (#16707) (#16824) 2018-02-20 09:33:47 -07:00
Kim Joar Bekkelund f658668cae
Update @kbn/pm dist (#16822) 2018-02-20 16:06:44 +01:00
jimgoodwin 384fedec23 Release notes 6.2.2 2018-02-20 08:53:02 -05:00
Spencer ae0358a17a
[server/rewriteBasePath] Support rewriting basePath requests (#16724) (#16814)
* [server/rewriteBasePath] add option to enable basePath rewriting

* [server/rewriteBasePath/docs] end sentences with periods

* [server/rewriteBasePath] simplify Joi schema a smidge

* [server/rewriteBasePath] rename test file to match source

* [server/rewriteBasePath] initialize server in before/after hooks

* [server/rewriteBasePath] rephrase deprecation warning

* [server/config/schema] verify that non-strings are not accepted for basePath

* [server/config/schema] toss a trailing comma in there
2018-02-19 14:43:40 -07:00
Kim Joar Bekkelund 1339331692
Missing argument for generate_plugin script (#16782) (#16809) 2018-02-19 10:15:55 +01:00
Chris Roberson 5c7c39aaf3
Refactor to go back to the double query approach to support aliases (#16715) (#16786) 2018-02-16 13:44:00 -05:00
Matt Bargar b3b0a5d7ce
fix command 2018-02-16 11:21:13 -05:00
Chris Roberson 31b19ed894
[Management] Improve messaging with no index patterns (#16718) (#16783)
* Improve messaging with no index patterns

* Updated copy

* Adjust messaging
2018-02-16 11:12:29 -05:00
Chris Roberson 4400bd32fa
[Management] Fix bug with index pattern creation (#16693) (#16781)
* Ensure we call scope.apply after route changing

* PR feedback
2018-02-16 10:59:25 -05:00
CJ Cenizal b0bf3a3ed6
Bring toast copy in line with writing style. (#16752) (#16765) 2018-02-15 10:28:33 -08:00
liza-mae 4942c34bca
[ftr/config] Fixed app url schema (#16748) (#16749) 2018-02-15 10:56:49 -07:00