Commit graph

17374 commits

Author SHA1 Message Date
CJ Cenizal
4af0ab1c1d
Fix bugs with Create Index Pattern wizard loading state and createReasonableWait UX helper (#16895) (#17080)
* Fix bugs with Create Index Pattern wizard loading state and createReasonableWait UX helper.
* Fix snapshots and refactor tests for clarity.
* Rename createReasonableWait to ensureMinimumTime, refactor for clarity, and support a time argument.
* Update form error copy.
2018-03-09 15:21:42 -08:00
CJ Cenizal
5168d8fcdc
Convert EuiTableOfRecords to simpler table component in scripted fields table. (#16901) (#17079)
* Convert EuiTableOfRecords to EuiBasicTable in scripted fields table.
* Convert from EuiBasicTable to EuiInMemoryTable.
* Fix bug with filtering and show 'no items' message when the filter doens't match any scripted fields.
2018-03-09 15:21:32 -08:00
Jonathan Budzenski
1def6ed78f
[6.x][license csv report] Support directory flag (#17075)
* [license csv report] Support directory flag (#17070)

* [license report] support directory flag

* override png-js

* override eslint-plugin-kibana-custom

* remove eslint-plugin-kibana-custom override
2018-03-09 16:53:39 -06:00
Jen Huang
03d9c4218e
React/EUI-ify indexed fields table (#16695) (#17068)
* React/EUI-ifying indexed fields table
2018-03-09 09:17:55 -08:00
Chris Roberson
d27a2a42f7
BugFix: #17037 managementChangeIndexModal managementChangeIndexModal (#17043) (#17066) 2018-03-09 12:12:49 -05:00
lcawley
bac3209ae5 [DOCS] Added section header 2018-03-09 08:59:01 -08:00
Kim Joar Bekkelund
d346ebae54
Move running projects tests into Grunt task (#16946) (#17063) 2018-03-09 16:00:49 +01:00
Kim Joar Bekkelund
939222e53a
[kbn-pm] Use util.promisify instead of Bluebird (#16994) (#17062) 2018-03-09 16:00:32 +01:00
Tim Roes
3c646eb842
Ensure aggResp is valid before putting it in an array (#16989) (#17060) 2018-03-09 12:22:10 +01:00
Shaunak Kashyap
4f2b0fb518 [UI Registry] Filter out any empty items before registering them (#17027)
* Filter out any empty items

Registry providers expose a `register` method to allow registration of items into the registry. This method expects as its sole argument an "item registration" function that returns an object representing the item to be registered into the registry. The arguments to this function can be other providers, allowing for dynamic construction of the item object to be returned.

This change will filter out any empty item objects before they are added to the registry. This allows the item registration function to return a falsy value if it needs to decide, dynamically at runtime, not to register an item.

* Adding unit test

* Adding skipEmptyItems spec param

* Using skipEmptyItems spec param when creating FeatureCatalogueRegistry

* Using a more generic approach instead

Now the spec takes an optional `filter` function that can be defined as per the requirements of the specific registry rather than baking in logic for skipping items for all registries into ui/registry itself.

* Renaming var to be more descriptive
2018-03-08 20:13:13 -08:00
Chris Cowan
3e5a220740 [TSVB] Add Top Hits Aggregation (#17047)
* [TSVB] Adding Top Hits Aggregation

* Fixing tests
2018-03-08 14:50:59 -07:00
Lukas Olson
0336858ed2 Use generated parser instead of dynamically generating (#17049) 2018-03-08 14:23:26 -07:00
Nathan Reese
5eea130137
Add "recently accessed" to Kibana Home (#16556) (#17046)
* kbn history

* put Add Data section in panel and move to seperate component

* RecentlyAccessed component

* complete circle with recently accessed dashboards

* record visualizations in recent accessed history

* render recently accessed

* do not show recently accessed panel when no recently accessed history

* add test cases for home feature panels

* render dropdown when more than 5 items

* only add saved search when id is provided

* remove border around add data cards, move set up index patterns to under cards

* add dot icon to seperate recently accessed items

* fix white space issues

* add timelion sheet to recently accessed

* fix spelling errors, better name space styles, enhance dropdown label

* avoid cutting off bottom of letters, do not display separators with small screen

* wrap separator (EuiIcon) in EuiText component so it is even link text

* track history by object id to avoid duplicate entries when saved object is renamed

* align link dropdown on right side

* shift popover placement for small screens

* update recently_accessed tests to look for nodes insted of using snapshots

* move id to variable

* change 'Recently accessed' to 'Recently viewed'

* change more dropdown label

* add max-width to flex item

* include /app in link path, use arrow functions to remove bind in react props

* add to recently accessed when saved object is saved

* address cjcenizal's comments on test assertion order and react imports
2018-03-08 13:53:09 -07:00
Stacey Gammon
ed17359c41
Make sure input controls can have their min and max bounds set manually when they are initially blank (#16947) (#17041)
* Fix one bug with input controls

* Fixed the bug, without tests.

Unfortunately adding a jest test for this would require a bit of
refactoring which I think would fit better in a separate PR, and might
not be worthwhile right now…. so just fixing it to get it in.

* remove left over console log
2018-03-08 15:28:28 -05:00
Chris Davies
6b22527670
bugfix: Bump up the z-index on the app-wrapper (#17010) (#17038)
This prevents context-menus from displaying behind the sidbar.

Fixes #16305
2018-03-08 14:37:44 -05:00
Chris Roberson
27b0e88e32
Await for config changes and re-enable tests (#17016) (#17044) 2018-03-08 14:22:21 -05:00
Chris Cowan
0a33e7d874 Adding check that value is valid (#16555) 2018-03-08 11:11:16 -07:00
Maxime Veber
efb5db0e08
Fix wrong link to kibana docker repository (#16570) 2018-03-08 10:50:59 -06:00
Tim Sullivan
a5741dfbf3
Fix readFileSync calls with certificateAuthorities files (#17026) (#17031)
Previous code passed the index parameter from lodash.map to
readFileSync, so it was essentially the same thing as:

```
map(config.get('server.ssl.certificateAuthorities'), (file, index) => {
  return readFileSync(file, index);
})
```

The upgrade to node8 seems to change the behavior and this was causing
an error:

```
FATAL TypeError: "options" must be a string or an object, got number instead.
    at getOptions (fs.js:75:11)
    at fs.readFileSync (fs.js:549:13)
    at server.connection._extends.tls.ca.config.get.map (/Users/tsullivan/code/kibana/src/server/http/setup_connection.js:43:76)
    at Array.map (<anonymous>)
    at KbnServer.exports.default (/Users/tsullivan/code/kibana/src/server/http/setup_connection.js:43:59)
    at KbnServer.mixin (/Users/tsullivan/code/kibana/src/server/kbn_server.js:97:16)
    at KbnServer.exports.default (/Users/tsullivan/code/kibana/src/server/http/index.js:20:19)
    at KbnServer.mixin (/Users/tsullivan/code/kibana/src/server/kbn_server.js:97:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:686:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
 optimizer crashed  with status code 1
```

This PR fixes the issue by making the mapping through the
certificateAuthorities files with a more explicit handling of the map
items, as well as remove the unnecessary lodash import
2018-03-08 08:38:33 -08:00
David Moreno Lumbreras
c9543b7456
[DOCS] Add new plugins "Polar" and "Radar" to known-plugins (#16952)
* Update known-plugins.asciidoc

* Update known-plugins page adding Radar plugin
2018-03-08 07:38:12 -06:00
Stacey Gammon
9245cf5def
Investigate flaky dashboard state test (#16977) (#17020)
* Increase test runs to reliably trigger failure

* Determine where dashboard is failing to pop into view mode

* Drop down to only one check

* Go back to only one run of state tests
2018-03-07 17:14:41 -05:00
Stacey Gammon
6b6f9afac4
Fix embeddable config url updates (#15728) (#17021)
* add failing test that would have caught this situation

* Implement onEmbeddableConfigChanged to pick up url changes from soft refreshes

* Add tests for legend and pie slice color as well as removing uiState keys to ensure it resets the config values

* address removing state from url as well as setting it.

* Fix up tests and add a link to the legend issue

* only emit once

* use for in, use better mocked clearAllKeys function

* Remove switch to setSilent

* Adjust test so it fails because of bug found where two charts will both have their slice colors updated

* Embeddable should only listen for changes to their panel's config state

* Default embeddable config to an empty object when creating a new embeddable
2018-03-07 17:14:32 -05:00
Tim Roes
8d0c0c9b2b
Change font of tagcloud (#16964) (#17012) 2018-03-07 21:47:13 +01:00
Tim Roes
821adab489
[6.x] Make plugin installer proxy work for HTTPS (#15588) | Fix broken yarn.lock (#17001) (#17011)
* Make plugin installer proxy work for HTTPS (#15588)

* Fix broken yarn.lock (#17001)
2018-03-07 21:26:06 +01:00
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