Commit graph

17050 commits

Author SHA1 Message Date
archana aa81248d5a Move proc_runner from x-pack-kibana into kibana (#17120)
* [tests] add proc_runner from x-pack-kibana

* [tests] implement proc_runner deps

* [tests] fix proc_runner dep

* [packages] move proc_runner into kbn-proc-runner

* [kbn-proc-runner] Package it

* [kbn-proc-runner] Chalk it up

* [kbn-proc-runner] Package.json

* Both kbn-proc-runner and kbn-utils depending on review. Sigh.

* Rename to kbn-dev-util, remove kbn-proc-runner

* Test proc-runner

* Add babel

* [proc-runner] build fixes

* Recreate yarn.locks, add mocha tests to simplemocha config
2018-03-15 01:59:22 -05:00
Spencer 5dd87e54db
[npm] upgrade elasticsearch/elasticsearch-browser packages (#17119) (#17165)
* [npm] upgrade elasticsearch/elasticsearch-browser packages

* [es/patchKibanaIndex] update tests to expect indices.getMapping

* [npm] use ^ version range for elasticsearch(-browser) packages

* [es/patchKibanaIndex/tests] expand assertion
2018-03-14 17:07:49 -07:00
Lee Drengenberg 9afc7511a9
Getting Started - Shakespeare (#16827) (#17164)
* WIP - add shakespeare data for getting started guide

* Refactor of getLineChartData, getBarChartData, getAreaChartData

* Added changing extents and test

* Fix opening axis options

* Change precision from 8 to 7

* lower precision to 6

* Fix index pattern creation

* update from review, remove comments, add others
2018-03-14 17:01:40 -05:00
Lee Drengenberg 0d56e9a9dd
Save html for failed tests (#16850) (#17160)
* When failure, log URL and save page source

* log Taking screenshot  at info level

* Force a failure, then revert this

* [ftr/failureDebugging] create failure debugging service

* Cleanup and create the failure_debug/html dir, strip special chars from filenames

* Remove a debugging log

* refactored replacing invalid filename chars

* Revert forced failing tests
2018-03-14 15:42:04 -05:00
Lisa Cawley f908027350 [DOCS] Added monitoring upgrade details (#17138) 2018-03-14 13:21:14 -07:00
Chris Roberson d1980231b2
[Management] Discard results of older queries (#17148) (#17158)
* Discard results of older queries

* PR feedback
2018-03-14 16:17:46 -04:00
Kim Joar Bekkelund 18158346f5
Remove unused .decorates and move some .mixin calls into functions (#17149) (#17157)
* Remove some unused server.decorate calls

* Stop using '.mixin' in several places
2018-03-14 20:48:09 +01:00
Chris Roberson ea7df636a9
Filter out patterns starting with a comma (#17124) (#17151) 2018-03-14 13:05:29 -04:00
Jen Huang b8fcf06336
Change indexed fields table to use EuiToolTip and display 10 rows by default (#17074) (#17129) 2018-03-14 09:27:37 -07:00
spalger ac060f450e [functionalTests/context] disable flaky test 2018-03-13 13:23:14 -07:00
Spencer 2013bb986d
[@kbn/ui-framework] move ui-framework to a package (#17085) (#17128)
* [@kbn/ui-framework] move ui-framework to a package

* [@kbn/ui-framework] restore doc_site index.html and fix build task names

* [jest] always ignore modules in target dirs
2018-03-13 12:54:05 -07:00
Nathan Reese ba2b3b1714
upgrade EUI to 0.0.26 (#17110) (#17126)
* upgrade EUI to 0.0.25

* remove last reference to TooltipTrigger

* upgraded to EUI 0.0.26

* fix warning, EuiKeyboardAccessible child must have onClick defined
2018-03-13 12:03:29 -06:00
Nathan Reese 8dc1bc6dad
[Home] APM tutorial - show launch app button when APM application is running (#16818) (#17125)
* add launch application to footer, update APM tutorial with applicaton artifacts when APM xpack is enabled

* remove launch and dashboard logic from footer to external component

* return null when url not provided to footer

* make url and label props required

* remove eslint comment

* change dashboard linkLabel
2018-03-13 11:15:59 -06:00
Spencer 3f9fee6017
[6.x] Sort numbers numerically in indexed_array (#17113) (#17117) 2018-03-12 18:19:11 -07:00
Glen Smith 8ebcb3c65d
Clarify how settings are applied once in keystore (#16902) 2018-03-12 16:41:55 -05:00
Jonathan Budzenski 37fba36b69
[packages] add licenses (#17072) 2018-03-12 12:40:15 -05:00
Tim Roes eac6e31e09
Add filter support for metrics visualization (#16758) (#17109)
* Add filter support for metrics visualization

* Extract value into own component
2018-03-12 17:43:10 +01:00
Stacey Gammon 2ce03c4e83
Clean up SearchSource and get rid of AbstractDataSourceProvider (#16932) (#17106)
* Merge search source and abstract and es6ify SearchSource class

* Remove duplicate function and rename SourceAbstracts to SearchSource
2018-03-12 11:47:50 -04:00
Nathan Reese 74982f83bd
Dashboard smaller panel grid dimensions (#16763) (#17105)
* change panel height from 100 to 20

* scale default height

* change number of grid columns to 48 so there is better control of panel width

* remove input controls resize test since its using EUI components and no longer needs to be functionally tested

* fix dashboard_grid_container test

* clean up rebase artifacts

* scale x and y in panel_state test

* make DASHBOARD_GRID_HEIGHT a constant
2018-03-12 09:37:16 -06:00
Tim Roes d0ea1de159
Added a tooltip on the "Fit Data Bounds" button (#16753) (#17103)
Added a tooltip on the "Fit Data Bounds" button
2018-03-12 16:03:04 +01:00
CJ Cenizal dffeca18bd
Remove reference to EuiTableOfRecords. (#17084) (#17102) 2018-03-12 07:27:37 -07:00
Chris Roberson 64739f80e1
[Management] Source filters table in React (#16649) (#17078)
* Source filters table

* Updates

* Handle no source filters

* PR feedback

* Fix merge issues

* PR feedback

* PR feedback

* PR feedback

* Upgrade to 3.3.0 which allows us to use Fragments in enzyme tests

* Use EuiInMemoryTable instead

* Remove dead code and simplify some tests

* Dynamically update the matches as the user edits the filter

* Apparently, this has been using the wrong parameter name

* Restructure to stop storing computed data and add reselect helper

* Reselect is tiny, just use that

* PR feedback

* Fix merge issues

* PR feedback
2018-03-12 09:41:13 -04:00
Aleh Zasypkin c750011c2e
[6.x][kbn-pm] Update ora typings. Remove redundant types in commands. (#17099) 2018-03-12 14:07:10 +01:00
Kim Joar Bekkelund 1429347c97
[kbn-pm] Include Kibana's transitive _projects_ in build (#16813) (#17097) 2018-03-12 12:01:11 +01:00
Tim Roes 8ceb857b35
Fix editor overflow issue (#16775) (#17095) 2018-03-12 11:37:17 +01:00
Stacey Gammon ca07b33567
Prevent filter bar modal from hiding under a tile map (#16812) (#17093)
* Prevent filter bar modal from hiding under a tile map

* sp error
2018-03-11 18:04:26 -04:00
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