Commit graph

17097 commits

Author SHA1 Message Date
Bhavya RM
64ea452a0c
Functional tests to add index alias reference (#17343)
Test to make sure Kibana handles index alias reference.
2018-03-23 13:01:50 -04:00
archana
0f49d67db3
Replace tooling-log instances with @kbn/dev-utils (#17324) 2018-03-23 10:54:38 -05:00
Matt Bargar
abd9ee9848
Avoid mutating global moment object (#17341)
* Clone the moment object before using it to generate reporting data
so that calling .utc() doesn't mutate global state.

* fix tests

* do less work on each digest cycle
2018-03-23 11:25:44 -04:00
Tyler Smalley
e5e025d732
[kbn-es] Allows error to bubble up (#17358)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-23 07:28:45 -07:00
Deb Adair
cdfe716f0d [DOCS] Fixed rendering of video link to vega intro. 2018-03-22 20:19:27 -07:00
CJ Cenizal
6567f35660
Fix bug with discover time interval IconTip not interpolating values. (#17359) 2018-03-22 16:59:02 -07:00
CJ Cenizal
a7147f2ca7
Improve feedback in Discover (#16771)
* Add Painless scripted field error callout to Discover. Remove recursive beginSegmentedFetch call.
* Add getDocLink service. EUIfy Discover 'no results' state.
* Rename initSegmentedFetch to handleSegmentedFetch to differentiate it from beginSegmentedFetch.
2018-03-22 12:48:19 -07:00
Matt Bargar
aeaf57dd97
Add query enhancements opt-in switch to query bar (#17232)
Makes our language updates more visible to users and removes mentions of Kuery as a separate language. Users still get the old lucene experience by default, but have the option to opt-in to "experimental query features" directly in the query bar. Goal is to get more feedback by making these new features more prominent and less of a jump from lucene.
2018-03-22 15:47:52 -04:00
Spencer
d20b047481
[ftr/tests] update fixture to avoid race condition in tests (#17295) 2018-03-22 12:01:39 -07:00
Nathan Reese
01f3cb0ea5
change elastic cloud link in add data (#17345) 2018-03-22 12:28:37 -06:00
CJ Cenizal
e3f4868b3a
Remove kbn-info directive. Replace with icon-tip directive wrapper around EuiInfoTip. (#17227)
* Remove kbn-info directive. Replace with info-tip directive wrapper around EuiInfoTip.
* Add CSS shim to prevent flicker.
* Refine wms options tooltips copy.
* Fix uneven layout of Top Hit options.
2018-03-22 11:06:32 -07:00
Lukas Olson
0f00c23a68
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:51:35 -07:00
Tim Roes
9d78eda48e
Add feedback link to experimental banner in Vega (#17334) 2018-03-22 16:36:20 +01:00
Tim Roes
1cce16602d
Make the experimental banner blue instead of orange (#17332) 2018-03-22 16:26:40 +01:00
Søren Louv-Jansen
4ba3a226b6
[Home] Update APM instructions (#17331)
* [Home] Use {config.kibana.version} in APM instructions

* update APM server text
2018-03-22 16:11:24 +01:00
Kim Joar Bekkelund
f9d6850568
Fix several unhandled rejections (#17326) 2018-03-22 15:02:44 +01:00
Spencer
026d140aaf
[kbn-es] download to destPath.tmp rather than /tmp (#17322)
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:46:12 -07:00
Lukas Olson
6bac181a74
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:42:23 -07:00
Spencer
14cfade0b4
[dev-utils/procRunner] wrap stop and close promises in timeouts (#17320)
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 16:17:51 -07:00
Yuri Astrakhan
db4896a64e
bumped Vega dependencies to v-3.2.1 & vl-2.3.1 (#17314) 2018-03-21 17:44:27 -04:00
CJ Cenizal
c577802759
Upgrade EUI to 0.0.33. (#17315) 2018-03-21 14:44:02 -07:00
CJ Cenizal
f6ac21a5f4
Add link to the EUI docs to Kibana docs (#11835)
* Add 'Developing Plugins' section to the docs, with a link to the EUI Framework docs.
2018-03-21 14:16:32 -07:00
Stacey Gammon
42f7aef739
Don't use transforms (#17175)
* 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 14:27:07 -04:00
Nathan Reese
68443d3aed
Add option to allow links in Markdown Visualization in open in a new tab (#16817)
* Markdown component

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

* update test snapshot
2018-03-21 08:44:00 -06:00
Spencer
2eb019ffd2
[yarn] upgrade sha.js pre-emptively due to license changes (#17292) 2018-03-20 16:09:10 -07:00
CJ Cenizal
cc255de9b1
Add back support for markdown in custom banners. (#17289)
* 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:05:35 -07:00
CJ Cenizal
29cbbde599
Revert "Add back support for markdown in custom banners. (#17280)" (#17287)
This reverts commit e531759984.
2018-03-20 14:44:00 -07:00
Spencer
9882cfb400
[optimize/webpack] support __webpackPluginProvider__ uiExports (#17281)
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 14:34:02 -07:00
Nathan Reese
730461a65c
range slider, include max value (#17274) 2018-03-20 14:31:01 -06:00
CJ Cenizal
e531759984
Add back support for markdown in custom banners. (#17280) 2018-03-20 13:30:23 -07:00
Chris Roberson
dd412f3bbe
Properly handle the opt-out time field option (#17269)
* Properly handle the opt-out time field option within index pattern creation

* Remove debug

* PR feedback

* Comments

* Fix tests
2018-03-20 15:21:32 -04:00
Kim Joar Bekkelund
a25f0c0ccb
[plugin helpers] Using --pure-lockfile instead of --frozen-lockfile (#17275) 2018-03-20 19:32:20 +01:00
Nathan Reese
0ca3984503
disable filter pill edit button when filter is controlled by input control (#14971)
* 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 11:14:55 -06:00
Tyler Smalley
82e17f435f
[kbn-es] Package for managing Elasticsearch during dev and testing (#17168)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-20 08:30:15 -07:00
Nathan Reese
4a501cb4d2 fix dashboard grid test timing issue (#17250)
* add 50 extra pixel to move to ensure panel goes above first panel
2018-03-19 19:51:56 -07:00
Matt Bargar
aa586c29ee
Don't error on non-existent fields, use given name instead (#17177)
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-19 16:36:18 -04:00
Thomas Neirynck
8b5a8f51a7
reintroduce percentiles to metrics (#17243) 2018-03-19 15:57:52 -04:00
Bill McConaghy
3069bf5ab6
moving plugin template to React and EUI (#16937)
* 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-19 15:13:03 -04:00
John Dorlus
cf93b0468b
Bumped chromedriver to 2.36 which fixes bustage on Chrome 65. (#17252) 2018-03-19 15:09:03 -04:00
Spencer
a02f5bf179
[npm] upgrade elasticsearch-js (#17219) 2018-03-19 11:49:52 -07:00
Chris Davies
f736c4b930
Stop dashboard panel errors from visually overflowing their containers (#17214) 2018-03-19 10:01:05 -07:00
Søren Louv-Jansen
791215584c
[Home] Add instructions for APM on Cloud (#17163) 2018-03-19 15:36:24 +00:00
Nathan Reese
4ca65024ab
Replace angular-bootstrap-colorpicker with EuiColorPicker (#17222)
* remove angular-bootstrap-colorpicker

* add form-control class to make things like better
2018-03-19 09:17:32 -06:00
Tim Roes
ef4145837e
Fix wrong usage of EuiKeyboardAccessible (#17198) 2018-03-19 15:50:47 +01:00
Chris Roberson
a42bda52a9
[Management] Add buffer time to ensure this test consistently passes when it should (#17200)
* Add buffer time to ensure this test consistently passes when it should

* Move buffer to the function
2018-03-19 09:09:51 -04:00
John Dorlus
a31ec148f4
Adding firefox to test suite (#17195)
* Created general driver to accept an argument select the driver to run.

* Added environment variable for driver, changed package.json to use custim leadfoot, and made changes to browserdriver to use any driver.

* Made changes per PR.

* Fixed all nits.
2018-03-16 23:05:10 -04:00
Tyler Smalley
dc0ce9e2b9 Adds additional CC licenses (#16969)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-16 16:40:29 -07:00
Nathan Reese
690ef5a006 rollback chromedriver (#17224)
* rollback chromedriver

* yarn.lock
2018-03-16 14:29:04 -07:00
Nathan Reese
4934b195f1
remove min-height from content class (#17205) 2018-03-16 13:04:06 -06:00