Commit graph

16289 commits

Author SHA1 Message Date
CJ Cenizal
02b9e929a7
[UI Framework] Fix IE11 bug which caused kuiToolBarSearch to grow too wide when there is only a single kuiToolBarSection sibling. (#15215) (#15225)
* Fix IE11 bug which caused kuiToolBarSearch to grow too wide when there is only a single kuiToolBarSection sibling.
* Fix bugs with KuiListingTableToolBar rendering empty sections. Update docs example to demonstrate a tool bar with a search and a section.
2017-11-28 14:52:27 -08:00
Søren Louv-Jansen
c88ef71e00
[Chrome] Bootstrap Angular into document.body (#15158) (#15208) 2017-11-28 23:13:12 +01:00
Matt Bargar
e24e50a09c
Query the index defined default_field when a field isn't explicitly provided (#15101) (#15209)
In 7.0 ES put a limit on the number of fields that a query can expand to. Since a search term without an explicit field selection hits all fields by default, a kibana user could get an error if the index they're searching against has more than 1024 fields. With lucene, the ES admin could fix this by changing the default_field in their index settings. Kuery still had a problem though, because multi_match did not support default_field. The ES team kindly added default_field support to multi_match for us, so this PR updates Kuery to rely on default_field when a user submits a query without an explicit field.
2017-11-28 16:35:18 -05:00
Jonathan Budzenski
e60351952d
Bump react-grid-layout (#15067)
* Bump react-grid-layout

* Restore getSelection mock after test
2017-11-28 14:29:25 -06:00
Stacey Gammon
8520f7d9b7
Clean up dashboard padding and coloring (#14811) (#15206)
Fixes some coloring issues with dashboards with the new margin settings. Makes everything consistent between mode / theme.
2017-11-28 14:22:27 -05:00
Thomas Neirynck
ad7f1c074b
reverts metric visualization (#14052) (#15177)
Uses the previous html/css rendering code instead of the svg-based rendering for simple metrics.

This backport required manual edits and js-linting.
2017-11-28 13:33:08 -05:00
Stacey Gammon
cfef2281dd
Fix issue with storing the error object, not string, add tests (#15085) (#15200) 2017-11-28 13:03:55 -05:00
Thomas Neirynck
3a94a7c1c5
fix comparison (#15176) (#15194)
This fixes the labs behavior.
2017-11-28 11:52:03 -05:00
Matt Bargar
23fccb53a1
Temporarily disable scripted field filter tests (#15169) (#15174)
Commenting out 4 tests that are failing due to elastic/elasticsearch#26760 so we can bump ESVM snapshots. We'll need to revert this PR once elastic/elasticsearch#26760 is fixed.
2017-11-27 16:58:03 -05:00
Tim Sullivan
654e1ad485
[Logging] more tests and added robustness to log formatting (#15035) (#15162)
* [Logging] more tests and added robustness to log formatting

* empty string for default error message, along with TODO question comment

* try to use stack trace from error when there is no error message

* simplify using the stack as the default error message

* destructure get from lodash

* default no-message to static string instead of error stack

* fix tests
2017-11-27 12:03:44 -07:00
CJ Cenizal
be640a1d11
Fix spacing beneath Visualize Wizard step 1 title. (#15136) (#15138) 2017-11-22 21:03:45 -08:00
Brandon Kobel
b5fb052e31 Revert "Adding libesvm@3.8.8 as a devDependnecy to workaround a bug in 3.8.9 (#15113)" (#15118) (#15130)
This reverts commit a5c6fb443c.
2017-11-22 19:11:00 -06:00
CJ Cenizal
676be53de4
Fixes require statements to use explicit loader statements (#14725) (#15127) 2017-11-22 12:13:47 -08:00
Chris Roberson
428d543f1f
[Management] Handle CCS better in index pattern creation (#15064) (#15124)
* Handle ccs better

* Fix test

* Even safer

* Use lodash get
2017-11-22 15:10:45 -05:00
CJ Cenizal
020c224795
Create toggleEditingQueryDsl and isQueryDslEditorVisible methods for clarity. Fix bug with Query DSL Editor not initially displaying due to Ace editor not being updated. (#15087) (#15125) 2017-11-22 12:04:02 -08:00
Brandon Kobel
c2b79a2b5f
Adding libesvm@3.8.8 as a devDependnecy to workaround a bug in 3.8.9 (#15113) (#15116) 2017-11-22 09:31:21 -05:00
Tim Roes
d415c36935
Fix broken function call (#15107) (#15108) 2017-11-22 09:07:15 +01:00
Spencer
466fb4b010
[6.x] [savedObjects] Use index template (#14271) (#15103)
* [es][savedObjects/index] put template on each savedObject write

The elasticsearch plugin currently checks for the Kibana index on each iteration of the healthCheck, and creates it if it does not exist. This removes that step from the healthCheck and instead, before each savedObject is written to elasticsearch, ensures that Elasticsearch has the necessary index template should the write result in index creation.

The healthCheck still has the `patchKibanaIndex()` logic, which checks the type in the Kibana index and adds any missing types. This step now does nothing when the Kibana index does not exist, and does what it has always done when it does.

* [ftr] remove unused kibanaIndex service

(cherry picked from commit b1ef897dafeb6d43fe279776e44a9d793a389dc3)

* [savedObjects/integration] create now creates kibana index

* [es/healthCheck] remove use of format()

* [es/healthCheck/tests] use sinon assertions

* [es/patchKibanaIndex] test for kibana index missing behavior

* [savedObjects/errors] add tests for EsAutoCreateIndexError

* [savedObjects/config] deprecate and remove savedObjects.indexCheckTimeout config

* use dangling commas consistently

* [ui/error_auto_create_index] fix class names

* [ui/savedObjectsClient] no need to specify basePath

* [eslint] fix linting issue
2017-11-21 18:26:29 -07:00
Spencer
8f4a61d166
Fix fieldFormat plugins (#14984) (#15096)
* [ui/registry] allow custom provider invokation

* [fieldFormats] define custom formats as functions of FieldFormat class

* [fieldFormats/registerFieldFormat] call format creator to get class

* [fieldFormats/fieldFormatsService] fix tests

* [fieldFormats/registerFieldFormat] add tests

* [metrics/tickFormatter] fix import from test
2017-11-21 17:04:44 -07:00
Lukas Olson
48e648b59f Show nothing for match all query (#14644) 2017-11-21 15:55:25 -07:00
Nathan Reese
2ea45b830c
feature directory copy (#15047) (#15094)
* feature directory copy

* update home page copy

* icons - ya

* saved objects icon
2017-11-21 14:24:18 -07:00
Nathan Reese
609d5c15fb
IndexedArray - ignore case when ordering array (#15069) (#15095)
* update IndexedArray sorting to ignore case

* remove _.cloneDeep because it removes functions from objects

* use slice to avoid sorting original array

* use spread operator for copying arrays

* Convert all values into strings to avoid complicated logic
2017-11-21 14:23:52 -07:00
Peter Pisljar
d68bc2aedb
Introduce lab mode for visualizations (#15050) (#15092)
* 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 22:11:22 +01:00
Stacey Gammon
f74044a12d
add some new tests that the uiState migration in the url will benefit from (#15063) (#15093) 2017-11-21 16:05:32 -05:00
Tim Roes
6eba02212a
Fix Kibana crashing when resizing a tag cloud too small (#15001) (#15089)
* Don't allow d3-cloud to run on 0 size, fix #14833

* Add test that validates correct resizing
2017-11-21 21:59:57 +01:00
Tim Roes
f3a058e1d8
Adding scope to all table headers, fix #12401 (#15079) (#15090)
* Add scope for all th in Kibana

* Add scope to <th> in ui framework

* Update jest snapshots with scope

* Fix wrong usage of colgroup
2017-11-21 21:48:10 +01:00
Peter Pisljar
28d8c3dc88
fixing gauge update logic so it wont break tsvb (#15076) (#15088)
* updating gauge/metric to new version

* fixing, tests were failing

# Conflicts:
#	src/ui/public/vis/vis_update.js
2017-11-21 21:23:50 +01:00
Peter Pisljar
9c1f955a35 extending and updating documentation for visualize (#14441)
* extending and updating documentation for visualize

* updating based on review
2017-11-21 20:57:27 +01:00
Peter Pisljar
39b14bed02 adding documentation for visualization development (#14252)
* adding documentation for  visualization development
2017-11-21 20:54:54 +01:00
Peter Pisljar
425239ef9e removing more tile map tests which are flaky (#15082) 2017-11-21 20:02:45 +01:00
Stacey Gammon
a9ce9eee36
Hide all panel titles option at the dashboard level (#15006) (#15080)
* Hide all panel titles option at the dashboard level

* Hide panel titles in edit mode too
2017-11-21 12:53:30 -05:00
Jonathan Budzenski
a492c01fcd
Adds task to export a CSV of all dependencies (#15068)
* Adds task to export a CSV of all dependencies

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Fixes tests and changes argument name to `out`

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Uses csv as argument for output file

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Removes unused columns

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* [license csv] Fetch all licenses by default, add release flag to only generate release dependencies
2017-11-21 10:30:52 -06:00
Tim Roes
a1313e223a
Make sorting and resizing the chart in TSVB keyboard accessible, fix #14343 (#15058) (#15075)
* Allow resizing charts via keyboard

* Use React updater function

* Allow sorting of series via keyboard
2017-11-21 10:06:45 +01:00
Peter Pisljar
37682b7074
Improve Region Maps for use without network connection (#15056) (#15074)
* 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 09:08:03 +01:00
Spencer
5732e1f60b
[6.x] [dashboard/functionalTests] stabilize initialization ordering (#15031) (#15070) 2017-11-20 19:57:29 -07:00
Nathan Reese
e8dc6736df
make react route finer grained so other apps don't route to home page while angular is routing to those apps (#15059) (#15062) 2017-11-20 17:02:56 -07:00
Spencer
09e582f82d
[6.x] [precommit hook] add dev script (#14890) (#15065)
* [precommitHook] move to dev script

* [eslint] fix lint error

* [dev/eslint] do simply boolean checks first

* [dev] use shared REPO_ROOT constant

* [dev/File] precompute relative/ext of path

* [dev/eslint] fix relative import

* [dev/eslint] fix typos

* [grunt] remove unused run:eslintStaged config

* [dev/run] only create log if we are going to use it

* [dev/run/isFailError] ensure return value is Boolean

* [dev/precommitHook] use less intermediate vars
2017-11-20 17:00:37 -07:00
Stacey Gammon
3a7b2f52be
Reactify full screen mode placeholder and remove from scope (#14886) (#15061)
* Reactify full screen mode placeholder and remove from scope

With the toggle in react, no need to store it on scope.

* Simplify implementation by bringing in chrome.setVisible internal to the react placeholder

* rename FullScreenModePlaceholder => ExitFullScreenButton

* div => KuiButton

* Add jest tests for exit full screen button

* Use native Object.values.map instead of loadash _.map

* get rid of unnecessary return value
2017-11-20 15:40:42 -05:00
Stacey Gammon
2a4600f84a
ensure time picker open in retry loop (#15034) (#15054)
* ensure time picker open in retry loop

* clean up isTimepickerOpen to use testSubjects.exists
2017-11-20 10:53:40 -05:00
Stacey Gammon
82bcf81026
[6.x] Add debounce to visualize search filter so we don't send a request on every character press (#15039)
* Fixes https://github.com/elastic/kibana/issues/14908 (#15003)

* Cancel debounce when component unmounts

* remove trailing whitespace

* Remove more trailing whitespace
2017-11-20 08:38:34 -05:00
Peter Pisljar
9a0b6b589f removing failing tilemap tests (#15048) 2017-11-20 13:18:46 +01:00
Stacey Gammon
dbe7b0c4c7
Fix mistakes added in bwc url test PR (#15038) (#15041)
* Fix mistakes in bcc tests

* Correct data-test-subj name
2017-11-17 20:06:04 -05:00
Nathan Reese
9a7e9f1a51
Set timeout and terminate_after parameters when fetching terms for Input Controls (#14977) (#15040)
* set parameters like suggestions api

* provide timeout and terminate_after in initial state instead of using search_source set

* remove shard_size param and add comment about needed to replace searchsource with suggestions API
2017-11-17 17:08:51 -07:00
Stacey Gammon
3783e41664
Add BWC url tests for 6.0 (#15033) (#15036)
Also adds some stabilization by refactoring some retries and
expectations.
and fixes a bug that snuck in between two PRS where the pie slice css
changed.
2017-11-17 18:06:42 -05:00
Stacey Gammon
b842651c9e
[6.x] Add a couple tests with queries and saved searches linked to visualizations (#14878) (#15025)
* Add a couple tests with queries and saved searches linked to visualizations (#14878)

* Add a couple tests with queries and saved searches linked to visualizations

Fix issue when edit link is clicked too soon and embeddable hasn't finished loading

* attempt to fix flakiness

* remove duplicate lines

* Use the correct pie slice css
2017-11-17 16:04:03 -05:00
Spencer
c75698d83e
[6.x] [ftr] default window size (#14834) (#15032)
* [ftr/mocha] revert Mocha UI assigments after loading test files

* [ftr] add beforeTopLevelSuite and afterTopLevelSuite lifecycle hooks

* [ftr] add defaultWindowWidth and defaultWindowHeight options

Adds two configuration parameters to the functional test runner which
will set the windowSize before running the tests in any file and
restores the original window size when the tests complete.

Individual test files can set the windowSize within its own before() or
beforeEach() handlers using the same `command.setWindowSize()` command.

* [ftr/assignmentProxy] use better naming

* [ftr] restore initial window size after each suite

* [ftr] improve error message for unexpected suite definitions

* [ftr/remote] remove configuration option, rely on suite-level changes

* [ftr] fix stack manipulation order

* [ftr/remote] write tests for window size management
2017-11-17 13:13:00 -06:00
Nathan Reese
0381286b63
give info msg instead of error msg when no default index pattern (#15010) (#15028)
* give info msg instead of error msg when no default index pattern

* fix tests

* use _.get instead of _.has plus turnary operator
2017-11-17 09:44:59 -07:00
Tim Roes
638e0d3c62
[Accessibility] Load angular-aria for kibana module (#14969) (#15015)
* Load angular-aria for kibana module

* Fix indentation

* Add documentation
2017-11-17 13:52:43 +01:00
Tim Roes
f26f5e0901
Remove ready:vis and application.load event (#14988) (#15017)
* Remove ready:vis event

* Remove application.load event

* Remove commented code

* Fix comment

* Fix broken indentation
2017-11-17 12:20:05 +01:00
Peter Pisljar
0b5052aac2
pie chart labels (#12174) (#15016)
* pie labels

* add simple unit test

* fixing dashboard test

* fixing basedo on review

* simplifying conflict resolution

* removing unused code

* cleanup code

* minor changes based on review

* updating option templates to match new design

* updating truncate_labels to work with chars instead pixels
2017-11-17 12:13:08 +01:00