Commit graph

17050 commits

Author SHA1 Message Date
Søren Louv-Jansen 3ec8d2ba8d
[Home] Update APM instructions (#17331) (#17336)
* [Home] Use {config.kibana.version} in APM instructions

* update APM server text
2018-03-22 17:19:52 +01:00
Lukas Olson b665a30c26 Kibana query language autocomplete (#15945)
* First stab at refactoring typeahead

* Don't double submit on enter

* Add item templating

* Introduce simple kuery language

* Rename to kql and add modules

* Update KQL syntax

* Automatically insert matching pairs

* Don't match quotes after alphanumeric chars

* Get field and value suggestions

* Remove accidental changes

* Remove unnecessary test

* Don't submit on enter

* Fix typeahead

* Suggest matching recent searches

* Suggest operators

* Suggest conjunctions

* Use template, separate suggestions into separate modules

* Whoops, add this module back

* Add clarifying comment

* Fix history log key

* Don't update suggestions on every key press

* Fix key handling

* Update terminology to be clearer

* Fix typo

* Simplify building of nodes

* Don't always hide on submit

* Check items exists

* Add icon directive which wraps EuiIcon.

* kql design start

* remove comment bits

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

* Add test

* Put persistedLog on scope so it can be tested

* Fix typos

* Build up AST for sublist by returning functions that take a field name

* Remove single quoted strings and add double quote to special characters

* Build nodes with arg nodes instead of args themselves

* Add support for exact phrase search for quoted values

* Update typeahead items when language changes

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

* This commit makes Bargs very happy cuz it does a lot

* Add wildcard field support to range query

* Remove range support for wildcard values

* Remove KQL as a separate language

Updates kuery to use KQL's grammar. This will lead to a smoother
transition for both us and Kuery users. We mainly added KQL as a
separate language so that we could notify Kuery users that the syntax
had changed. I realized we could do the same by trying to parse their
query strings with the old grammar if the new grammar fails, and if the
old grammar parses successfully we can display an error message with a
link to the docs describing the syntax changes. Since Kuery now uses the
more simple KQL syntax, I've also re-enabled the filter bar when Kuery
is selected.

* Fix typeahead behavior

* Update conjunctions

* Use scope apply

* Suggest conjunctions after ranges

* Support strings in wildcard node constructor and add tests for wildcard node

* test updates

* Removing unused serializeStyle and toKueryExpression, updating tests

* Fix functional test

* Fix typo

* Show fields that match in any part of the name

* Alter order of operators

* Preserve focus after selecting by click

* Ports tests for `fromKueryExpression` to `fromKqlExpression`

* More KQL syntax tests

* Suggest conjunctions after ranges

* Fix suggestions inside parens

* fromLiteralExpression tests

* remove serializeStyle arguments which no longer exist in the function definition

* tests for getFields

* Case insensitive search for field names

* update tests for is.js

* add wildcard fieldname test for range.js

* Fix removed div

* Fix line spacing for autocomplete suggestions

* Fix conjunction suggestions with escaped preceding literals

* Escape special characters in fields and values

* Don't suggest the value that's already selected

* Update icons

* Sort prefix first

* Simplify cursor detection and suggest booleans

* Use quotes for suggested values

* get rid of references to KQL

* Don't show errors from parsing

* That didn't even exist

* Use config to determine if values are suggested

* Update suggestions on home/end

* remove hack

* Update reference to kql

* Suggestions for quoted values

* Clean up grammar

* Better support for cursor inside spaces

* Create grunt task to generate parsers from peg files

* Simplify wildcard handling

* Don't filter out the exact fields/values

* Update parsing modules

* Fix peg task

* Make operator syntax more visible

* Update OR verbiage

* Simplify and improve match pairs

* Revert "Simplify wildcard handling"

This reverts commit 915861beab.

* Support escaped backslashes inside quoted strings

* Support escaped keywords

* Remove lodash dependency cuz w33ble

* Escape user input and fix conjunction description

* Clear suggestions after submitting

* Fix insertion of suggestion to account for selection

* Remove unnecessary?

* Remove extraneous file

* Better name for method

* Move functions out of event handler

* Don't wrap result in promise

* Don't show kuery suggestions for lucene

* some cleanup and polish for kql autocomplete

* Omit description completely for values

* Don't suggest and/or for quoted strings that end in spaces

* Submit recent search suggestions on select

* Scroll selected suggestion into view

* Better handling of key events and hiding typeahead

* Update suggestions to work in other apps with multiple index patterns

* Only update suggestions if not submitting

* Hide suggestions on focus

* Simplify wildcard (again)

* Fix console error

* Remove references to kql

* Fix match pairs so that suggestions occur with cursor in correct place

* Memoize value suggestions

* Debounce model updates

* Add tests for suggestion providers

* Add setting and docs

* Add custom error, helper for detecting leading wildcards, and check for
leading wildcards in the Value rule of the grammar.

* Better handling of suggestion clicks

* Dedup suggestions

* Sort keywords first

* Fix value suggestions memoizing

* Check if query exists

* Reduce size of dialog and fix ranges

* Create grunt task to generate parsers from peg files

* Lazy load typeahead items

* Fix wildcard tests

* Fix value suggestion tests

* Fix typeahead tests

* Fix value suggestion memoize resolver

* Leave comment

* Add a ttl for the value suggestion resolver

* Move grunt config to config/

* Bargs can suck it

* Fix more tests that bargs broke (and one I did too)

* Fix tests
2018-03-22 08:52:30 -07:00
Kim Joar Bekkelund da8573606c
Fix several unhandled rejections (#17326) (#17329) 2018-03-22 16:36:11 +01:00
Spencer ccdf59e319
[6.x] [kbn-es] download to destPath.tmp rather than /tmp (#17322) (#17323)
When kbn-es downloads a snapshot, it writes the in progress download to
`/tmp` rather than the destination path in case the download fails part
way through, then renames the file from `/tmp` to the final location.
This is a good practice, but in CI the `/tmp` directory isn't stored on
the same disk as the project, which causes a rename error to occur
because we're attempting to rename across devices.

This updates the download logic to write to `${destPath}.tmp` instead,
and do the same renaming, so that we can avoid cross-device errors.
2018-03-21 17:49:52 -07:00
Tyler Smalley ffd2fe83e3
[kbn-es] Package for managing Elasticsearch during dev and testing (#17168) (#17273)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-21 17:48:49 -07:00
Spencer 3820258699
[dev-utils/procRunner] wrap stop and close promises in timeouts (#17320) (#17321)
In an attempt to debug random stalls we are seeing in CI, the proc runner will now send SIGKILL if a process does not exit after receiving the standard exit signal it receives (usually SIGTERM). Additionally, if the child process object never emits "close" or "exit" another timeout will trigger an error
2018-03-21 17:08:52 -07:00
Lukas Olson 12246483d6 Create grunt task to generate parsers from peg files (#17069)
* Create grunt task to generate parsers from peg files

* Leave comment

* Move grunt config to config/
2018-03-21 16:56:18 -07:00
Yuri Astrakhan eb9de427eb
bumped Vega dependencies to v-3.2.1 & vl-2.3.1 (#17314) (#17319) 2018-03-21 19:05:14 -04:00
CJ Cenizal b7e768d12b
Upgrade EUI to 0.0.33. (#17315) (#17317) 2018-03-21 14:47:26 -07:00
CJ Cenizal 7ec8cbe65d
Add link to the EUI docs to Kibana docs (#11835) (#17316)
* Add 'Developing Plugins' section to the docs, with a link to the EUI Framework docs.
2018-03-21 14:18:45 -07:00
Stacey Gammon 65f7f638c4
Don't use transforms (#17175) (#17308)
* Don't use transforms

* dismiss toasts so they don't interfere with the snapshot tests

* try again

* Fix styling during expanded panel mode

* See if putting the sleep back fixes the build.

* fix typo
2018-03-21 16:37:03 -04:00
Nathan Reese b37282ef64
Add option to allow links in Markdown Visualization in open in a new tab (#16817) (#17305)
* Markdown component

* only render markdown when string has changed
2018-03-21 12:12:54 -06:00
Nathan Reese c163b0895e
Add data instructions: Vertically align text to submit button (#17290) (#17300)
* Add data instructions: Vertically align text to submit button

* update test snapshot
2018-03-21 10:35:52 -06:00
Thomas Neirynck 16e3a9c9cd
reintroduce percentiles to metrics (#17243) (#17259) 2018-03-21 12:28:32 -04:00
Chris Roberson f17ffa25dd
Properly handle the opt-out time field option (#17269) (#17279)
* Properly handle the opt-out time field option within index pattern creation

* Remove debug

* PR feedback

* Comments

* Fix tests
2018-03-21 08:26:39 -04:00
CJ Cenizal a9c7678549
Add back support for markdown in custom banners. (#17289) (#17291)
* Revert "Revert "Add back support for markdown in custom banners. (#17280)" (#17287)"
This reverts commit 29cbbde599.
* Remove references to Bootstrap banner notifications.
* Prevent non-string banners from being displayed.
2018-03-20 16:56:34 -07:00
Spencer 3ba95d2bff
[yarn] upgrade sha.js pre-emptively due to license changes (#17292) (#17293) 2018-03-20 16:32:33 -07:00
Spencer b39a2c9966
[optimize/webpack] support __webpackPluginProvider__ uiExports (#17281) (#17285)
Allow plugins to integrate more deeply with webpack where necessary by supporting `__webpackPluginProvider__` uiExports which will be called and expected to return a wepack plugin that will be included in the compiler configuration that Kibana uses.
2018-03-20 16:32:17 -07:00
CJ Cenizal ecffcad31f
Revert "Add back support for markdown in custom banners. (#17280)" (#17287) (#17288)
This reverts commit e531759984.
2018-03-20 14:45:38 -07:00
Nathan Reese e5c76695bf
range slider, include max value (#17274) (#17282) 2018-03-20 15:25:51 -06:00
CJ Cenizal 0b6dc7c826
Add back support for markdown in custom banners. (#17280) (#17283) 2018-03-20 14:18:31 -07:00
Matt Bargar fcc928c70e
Don't error on non-existent fields, use given name instead (#17177) (#17262)
We found out these errors cause problems on dashboards with panels based
on different index patterns. If a field exists in one index pattern
and not another each search will throw an error. It also changes the
filtering behaviour of the panels with the missing field. Unlike lucene
which will filter out all results that don't have that field, these
errors will prevent the query for the missing field from being added
to the request to ES and the docs with the missing field will still show
up in the results. We could consider changing this behaviour, there are
valid reasons why someone might want to see those results, but to keep
things familiar I think we should preserve lucene's behaviour for now.
2018-03-20 15:41:40 -04:00
Kim Joar Bekkelund a76d1b6e89
[plugin helpers] Using --pure-lockfile instead of --frozen-lockfile (#17275) (#17277) 2018-03-20 20:37:16 +01:00
Nathan Reese eef43e1e95
disable filter pill edit button when filter is controlled by input control (#14971) (#17276)
* disable filter pill edit button when filter is controlled by panel

* use span insted of i for icons

* update text to say Kibana
2018-03-20 12:13:21 -06:00
jimgoodwin 9da4f3b862 Release notes for version 6.2.3 2018-03-20 13:27:24 -04:00
Bill McConaghy f5ba3025bd
moving plugin template to React and EUI (#16937) (#17253)
* moving plugin template to React and EUI

* fixing method reference error

* adding whitespace and comments per PR feedback

* adjusting test

* fixing test

* reducing Angular dependency and fixing issue with hack not loading properly

* fixing tests

* reacting to PR feedback
2018-03-20 08:44:05 -04:00
Nathan Reese c659eca14f fix dashboard grid test timing issue (#17250)
* add 50 extra pixel to move to ensure panel goes above first panel
2018-03-19 19:52:31 -07:00
Spencer d987f1d488
[npm] upgrade elasticsearch-js (#17219) (#17251) 2018-03-19 12:57:11 -07:00
John Dorlus 655d69c59d
Bumped chromedriver to 2.36 which fixes bustage on Chrome 65. (#17252) (#17254) 2018-03-19 15:41:24 -04:00
Nathan Reese 018c1b8747
Replace angular-bootstrap-colorpicker with EuiColorPicker (#17222) (#17244)
* remove angular-bootstrap-colorpicker

* add form-control class to make things like better
2018-03-19 13:37:24 -06:00
Jonathan Budzenski 5b1dc045e1
[6.x] add scripts/kibana{_keystore,_plugin,} (#17122) 2018-03-19 13:23:59 -05:00
Tim Roes 2a4584b545
Fix wrong usage of EuiKeyboardAccessible (#17198) (#17241) 2018-03-19 17:47:20 +01:00
Søren Louv-Jansen e2f7c8a68c
[Home] Add instructions for APM on Cloud (#17163) (#17245) 2018-03-19 16:38:57 +00:00
Chris Roberson 937139877d
[Management] Add buffer time to ensure this test consistently passes when it should (#17200) (#17238)
* Add buffer time to ensure this test consistently passes when it should

* Move buffer to the function
2018-03-19 10:49:11 -04:00
Tyler Smalley 9f16b6af66 Adds additional CC licenses (#16969)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-16 16:41:25 -07:00
CJ Cenizal b47e470fb0
replace title by data-title (#17048) (#17118) 2018-03-16 15:41:34 -07:00
Spencer a2eb2429a6
[6.x] rollback chromedriver (#17224) (#17226)
* rollback chromedriver

* yarn.lock
2018-03-16 14:30:25 -07:00
Nathan Reese 5ad27b4951
remove min-height from content class (#17205) (#17218) 2018-03-16 14:00:39 -06:00
Nathan Reese 72669f264f
update chromedriver to 2.36.0 (#17152) (#17207) 2018-03-16 12:24:22 -06:00
Nathan Reese f0e0ab108c
Remove pivotal-ui (#17181) (#17203)
* remove from input controls

* remove from tutorial

* remove from visual builder

* update package.json
2018-03-16 11:06:51 -06:00
CJ Cenizal e3c65bbe68
Convert Notifier.banner method to use banners service. (#17193) (#17204)
* Convert Notifier.banner method to use banners service.
2018-03-16 09:03:57 -07:00
Tim Roes d1c56e3a76
Fix IP ranges labeling issue in pie chart (#17067) (#17144)
* Fix IP ranges labeling issue in pie chart

* Fix tests
2018-03-16 08:24:27 +01:00
CJ Cenizal d8356310a8
Fix kbn-info tooltip in firefox and chrome (#17162) (#17187)
* Move tooltip out of inner child of button
* Trigger tooltip on mouseenter instead of focus
2018-03-15 15:26:42 -07:00
Thomas Neirynck 46641f942e
Removes the angular dependency from tag cloud (#15779) (#17182)
- Implements tag_cloud as a Base Visualization
- Use React for labels
- Introduce screenshot comparison unit tests
2018-03-15 15:48:50 -04:00
Jonathan Budzenski af8a04c5f1
[console] Update snapshot API (#16767)
* snapshot.create_repository.json

* snapshot.create.json

* snapshot.delete.json

* snapshot.delete_repository.json

* snapshot.get.json

* snapshot.get_repository.json

* snapshot.restore.json

* snapshot.status.json

* snapshot.verify_repository.json

* rm snapshot_restore.js
2018-03-15 12:45:39 -05:00
Jonathan Budzenski d7563c6977
[console] Update indices API (#16744)
* index.json

* indices.analyze.json

* indices.clear_cache.json

* indices.close.json

* indices.create.json

* indices.delete_alias.json

* indices.delete_template.json

* indices.delete.json

* indices.exists_alias.json

* indices.exists_template.json

* indices.exists_type.json

* indices.exists.json

* indices.flush_synced.json

* indices.flush.json

* indices.forcemerge.json

* indices.get_alias.json

* indices.get_field_mapping.json

* indices.get_mapping.json

* indices.get_settings.json

* indices.get_template.json

* indices.get_upgrade.json

* indices.get.json

* indices.open.json

* indices.put_alias.json

* indices.recovery.json

* indices.refresh.json

* indices.rollover.json

* indices.segments.json

* indices.shard_stores.json

* indices.shrink.json

* indices.split.json

* indices.stats.json

* update_aliases.json

* indices.upgrade.json

* indices.validate_query.json

* rm indices.js

* indices.put_settings.json

* rm settings.js

* indices.put_template.json

* rm templates.js

* rm delete mapping

* cleanup requires
2018-03-15 12:43:41 -05:00
Jonathan Budzenski 209c4df1c0
[build] Turn on optimizeBuild logging (#16205) 2018-03-15 12:34:49 -05:00
Søren Louv-Jansen 7b79d3aff5
Add .nvmrc file (#17145) (#17174)
* Add .nvmrc file

* Update contributing docs

* Fix typo in `nvm use`

* Update "install node" text

* Add test to ensure .nvmrc and .node-version are identical

* Use async/await instead of promise

* Feedback
2018-03-15 16:57:01 +01:00
archana f7eed88df5 Update packages/README.md (#17167)
* Update packages/README.md

* Update packages/README.md

* Split

* Update README.md
2018-03-15 02:32:32 -05:00
archana ee45b74858 Correct casing in kbn-dev-utils (#17166)
* Remove kbn-dev-utils

* Restore kbn-dev-utils with proper casing
2018-03-15 02:00:05 -05:00