Commit graph

483 commits

Author SHA1 Message Date
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
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
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
Lee Drengenberg db84d62faf
Getting Started - Shakespeare (#16827)
* 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 15:42:48 -05:00
Lisa Cawley 42af0fcde9
[DOCS] Added monitoring upgrade details (#17138) 2018-03-14 13:18:53 -07:00
Glen Smith 66160e6447 Clarify how settings are applied once in keystore (#16902) 2018-03-12 16:39:30 -05:00
lcawley 17efd52255 [DOCS] Added section header 2018-03-09 08:57:38 -08:00
Maxime Veber 8d6f3e8e86
Fix wrong link to kibana docker repository (#16570) 2018-03-08 10:52:34 -06:00
David Moreno Lumbreras 6dd3a08146
[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:38 -06:00
Lukas Olson e9ff31f185 Update Kuery Syntax (#15857)
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 08:29:34 -08:00
Jun Ohtani d0a7a6c8cf
Add _analyze UI link (#16331) 2018-03-06 22:54:27 -08:00
Smeds ce2bb4be0c I added information about status light plugin. (#16571)
* I added information about status light plugin.

* Remove trailing ".git" from url.
2018-03-03 12:01:42 -08:00
Tim Roes 691d964d72
Fix update status documentation (#16885) 2018-02-23 10:40:07 +01:00
Anshita Vishwakarma 32e6cc3f3b Beta tag removed from Kibana-CCS Integration in master branch (#16847) 2018-02-21 17:26:59 -07:00
Spencer 1516e0703c
[server/rewriteBasePath] Support rewriting basePath requests (#16724)
* [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 12:36:19 -07:00
Matt Bargar 6caf0f6217
fix command 2018-02-16 11:20:50 -05:00
Spencer 2c7a1f34cb
[kbn-plugin-generator] add plugin generator to the repo (#16655)
* [kbn-plugin-generator] add plugin generator to the repo

* [plugin-generator] use snake_case plugin name for directory name

* [plugin-generator] fix typo

* [plugin-generator] remove translation support until we resume i18n efforts

* [yarn] update lockfile

* [mocha] remove plugin-generator selector from mocha tests

* [plugin-generator] update generated readme to recommend yarn

* [plugin-generator] add readme to generator pacakge

* [plugin-generator] link from plugin-resource docs

* [plugin-generator] mention very important `kbn bootstrap` script

* [plugin-generator] rework some parts of the README

* [plugin-generator] log actual directory name with system separators

* [plugin-generator] include bootstrap/yarn preinstall check script
2018-02-12 12:23:23 -07:00
spalger 489e64ef7e [plugin-helpers] replace last few uses of old package name 2018-02-08 11:57:08 -07:00
Tim Roes 30acb3d1b6
Remove Angular and vislib vis type docs (#16522) 2018-02-05 21:15:36 +01:00
Lisa Cawley f3bbd76bf2
[DOCS] Build Kibana Guide from kibana repo (#16450) 2018-02-01 10:19:00 -08:00
Court Ewing 829985d96a
Remove tribe node support (#16397)
* Remove tribe node support

Tribe node is being removed from Elasticsearch since it has been
superseded by Cross-Cluster-Search.

* console: remove unnecessary isEnabled

The default behavior for the plugin is to be disabled when its `enabled`
configuration is set to false, so this custom isEnabled function is not
necessary any longer.
2018-01-30 14:36:38 -05:00
Thomas Neirynck 2e02b78a9a
Add enableLabs to docs (#16301) 2018-01-30 11:50:38 -05:00
Nathan Reese 51828870ea
add more details to range option (#16286) 2018-01-29 08:00:59 -07:00
Nathan Reese 924d61fc0a
documentation on how to create new Add Data tutorials. (#16257)
* tutorial docs

* fixes from ycombinator review

* ElasticSearch -> Elasticsearch

* move out of style guide and into README under server/tutorials

* move to asciidocs

* add new line so list is rendered correctly

* changes from gchaps review
2018-01-26 14:42:41 -07:00
Fabien Baligand 1cbeffb20b Add 'Enhanced Table' visualization plugin (#16181) 2018-01-23 16:02:45 -05:00
archana fc34f05caa
[Docs] Append more explanation to Configuring Kibana (#15615)
* [docs] uniform colons

* [docs] Add more text about elasticsearch.ssl settings

* [docs] Add more text about elasticsearch.ssl.verificationMode setting

* [docs] spelling error

* [docs] clarify wording
2018-01-23 10:41:10 -06:00
Yuri Astrakhan 1b70e7400a
Migrating vega_vis from plugin (#15014)
Large PR to migrate Vega plugin into the core.
https://github.com/nyurik/kibana-vega-vis

The code underwent a large number of changes and
reviews discussed in the PR thread:
https://github.com/elastic/kibana/pull/15014
2018-01-13 15:14:04 -05:00
Lukas Olson e6b65fc4c6
Add advanced setting to control quick ranges (#15975)
* Add advanced setting to control quick ranges

* Fix test

* Add docs for quick ranges

* Remove comment
2018-01-12 14:11:42 -07:00
Spencer 4b92c7481c
[docs/logging] document useUTC flag (#16018) 2018-01-12 10:39:24 -07:00
Court Ewing 61c7f21111
Remove angular-translate (#13066)
* remove angular translate

* remove angular-translate deps from yarn.lock
2018-01-12 09:13:42 -05:00
Kim Joar Bekkelund 07a67916c4
Updates for kibana-extra folder (#15471)
* Update docs to handle kibana-extra

* Add info about plugin directory structure to docs
2018-01-11 09:17:04 +01:00
Spencer 0fde087ca2 Switch to Yarn (#15485)
* switch to yarn

* cleanup misc references to npm

* [yarn] loosen dependency ranges so yarn will merge more deps

* fix linting error now that moment uses ESM

* [licenses] font-awesome changed the format of its license id

* Use local yarn

* Misc fixes

* eslintignore built yarn file

* Remove mkdir which doesn't do what it should do

* Check build without upgrading lots of versions

* Fix license check

* too many moments

* Better description

* Review fixes

* Lock to angular@1.6.5

* More specific version locks

* Revert "More specific version locks"

This reverts commit 11ef81102e.

* Revert "Lock to angular@1.6.5"

This reverts commit 3ade68c14c.

* rm yarn.lock; yarn

* Forcing a specific version of React, Angular, Moment

* Using vendored version of yarn in ci

* Use --frozen-lockfile

* fixes
2018-01-10 13:23:43 +01:00
Nathan Reese 265c7b9fbe
add time to visualization status (#15856)
* add time to visualization status

* account for custom time on visualization

* update docs
2018-01-08 09:37:36 -07:00
Walter Rafelsberger b709ee989a
[DOCS] Add Kibana Milestones Visualization plugin to list of known plugins. (#15841)
This PR adds a link to the Milestones Visualization plugin (https://github.com/walterra/kibana-milestones-vis) to the list of known Kibana plugins.
2018-01-05 10:08:59 +01:00
Matt Bargar 3134a69fcc
Update known-plugins.asciidoc (#14370) (#15806)
Add my new plugin 'Markdown Doc View'. And add sign to my plugin 'Notification Center'.
2018-01-02 09:52:15 -05:00
Mike Lutz df6db13875 Adding SPG Conveyor as a known Kibana plugin (#15772) 2017-12-29 11:09:33 -05:00
Yuri Astrakhan 1d92807a18
Doc fix: editorController -> editor (#15607)
There is no `editorController` param in createBaseVisualization.
I think `editor` was meant instead.
2017-12-19 21:04:35 -05:00
Yuri Astrakhan fb583bc460 minor indent fix (#15520) 2017-12-13 11:21:26 -05:00
Yuri Astrakhan 06ebbf4ac7 fixed param order (#15518) 2017-12-11 16:11:10 -05:00
Marius Dragomir 205371cdca
[DOCS] Add windows powershell commands to the tutorial (#15499)
* Added windows powershell commands to the tutorial

* Change to describe using Kibana Console

The instructions looked like Kibana Console format, not curl commands
2017-12-11 17:26:36 +02:00
Yuri Astrakhan 43e68c519a
Use async keyword instead of Promises 2017-12-08 19:09:11 -05:00
Thomas Neirynck 852fa9c6a9
Region map settings clarifications (#14893) (#15421)
* Region map settings clarifications (#14893)

Improve documentation.

This also includes some additions to clarify the new includeElasticMapsService setting.

It also fully qualify all names
2017-12-05 15:01:48 -05:00
Kim Joar Bekkelund 93eb5c1eca
Deprecate --plugin-dir option in plugin installer (#15371) 2017-12-04 18:38:50 +01:00
Kim Joar Bekkelund 48bcd7fc92
No longer recommend manual plugin installs (#15366) 2017-12-04 16:25:50 +01:00
Tim Roes e5d2ff8219
Refactor and improve Visualize Loader (#15157)
* Simplify promise setup logic

* Import template from own file

* Use angular.element instead of jquery

* Add documentation for loader methods

* Add params.append

* Remove params.editorMode

* Clarify when returned promise resolves

* Add element to handler

* Allow setting CSS class via loader

* Use render-counter on visualize

* Use Angular run method to get access to Private service

* Allow adding data-attributes to the vis element

* Refactor loader to return an EmbeddedVisualizeHandler instance

* Use this.destroy for previous API

* Remove fallback then method, due to bugs

* Reject promise from withId when id not found

* Add tests

* Change developer documentation

* Revert "Use Angular run method to get access to Private service"

This reverts commit 160e47d7709484c0478415436b3c2e8a8fc8aed3.

* Rename parameter for more clarity

* Add more documentation about appState

* Fix broken test utils

* Use chrome to get access to Angular

* Move loader to its own folder

* Use a method instead of getter for element

* Add listeners for renderComplete events

* Use typedef to document params

* Fix documentation
2017-12-02 00:44:28 +01:00
Tyler Smalley 359ce96105
Fixes issue with Keystore's stdin option (#15221)
Fixes issue preventing stdin option from being used
Using create to overwrite should reset keystore
2017-11-29 15:59:17 -08:00
Jonathan Budzenski 218986c07e
Create separate startup scripts for development and production (#13806)
* Use separate startup scripts for development and production

* build kibana directly

* [build] Use downloaded node when pre-optimizing

* clearer variable name

* Add breaking changes docs
2017-11-22 12:49:37 -06:00
Peter Pisljar 4e982c0a6d
Introduce lab mode for visualizations (#15050)
* apply patch

add styling

remove cruft

split up concept of experimental and labs

adjust wording

* improve wording

* improve wording & punctuation. remove concept of feedback-url

* remove duplicate labeling between labs/experimental; resolve some typos

* merging isExperimental and isLabs flags to a stage setting

* adding the option to override feedback message back (and improving it)

* updating the docs

* change text labs to lab

* visualize:enableLabsVisualizations to visualize:enableLabs

* fixing github link
2017-11-21 20:49:24 +01:00
Peter Pisljar c56360b908
Improve Region Maps for use without network connection (#15056)
* enable turning on/off of warnings

* add tooltip

* add server setting so users can opt out of connecting to the EMS service

* replace WMS options with custom directive, so we can reuse it in region maps

* add wms settings form to Region Map

* no need to recreate map after leaflet upgrade

* add WMS map to region map

* linting issues

* fix rebase

* improve wording

* add global config

* fix typo
2017-11-21 08:27:39 +01:00
Tim Roes be54f367e9
Remove ready:vis and application.load event (#14988)
* Remove ready:vis event

* Remove application.load event

* Remove commented code

* Fix comment

* Fix broken indentation
2017-11-17 10:46:02 +01:00