Commit graph

15513 commits

Author SHA1 Message Date
Felix Stürmer
a2727ececf [context view] Use _doc for tie-breaking instead of _uid (#12096)
Using fields with docvalues (like `_doc`) for tie-breaking yields
significantly better performance than using `_uid`, which lacks
docvalues at the moment. The downside is that sorting by `_doc` by
default is not stable under all conditions, but better than no
tie-breaking at all.

The new setting `context:tieBreakingFields` enables the user to
customize the list of fields Kibana attempts to use for tie-breaking.
The first field from that list, that is sortable in the current index
pattern, will be used. It defaults to `_doc`, which should change to
`_seq_no` from version 6.0 on.

In addition to just showing a notification, errors that occur while
loading documents from the database will be stored as part of the
`loadingStatus` along with a reason code (if known). This is used to
display more nuanced and helpful error messages to the user.

The first such error message indicates a missing or invalid tiebreaker
field required for sorting the context.
2017-06-08 12:21:52 +02:00
Árpád Poprádi
a271d7c935 [UI Framework] Reactify actionItem (#12142)
* issue 12137 Reactify ui_framework/components/action_item
* use KuiMenu and KuiMenuItem in the doc_site view
2017-06-07 16:41:59 -07:00
Árpád Poprádi
e2a5b27d5a [UI Framework] Reactify kuiEvent and related CSS components (#12226) (#12228)
* Implement KuiEvent,KuiEventSymbol,KuiEventBody,
            KuiEventBodyMessage,KuiEventBodyMetadata
            and theirs tests

* Update docs examples
2017-06-07 15:25:58 -07:00
Mark Robert Henderson
18b571eda9 Adding for and id attributes to labels and form elements in Field Chooser (#12215)
* Adding for and id attributes to labels and form elements
2017-06-07 15:24:37 -07:00
Nathan Reese
7a18262276 Accessibility: Sharing UI - associate labels with controls (#12143)
* associate labels with inputs

* aria-describedby to associate links to label and input to help text
2017-06-07 09:19:09 -06:00
Chris Cowan
290840509d Fixes for Dashboard Context for both TSVB and Timelion (#12214)
* Decoupling TSVB from timelion

* Changing behavior back to the provider pattern

* Fixing Timelion's dashboard context provider

* Moving dashboard_context out of Timelion and TSVB into Kibana
2017-06-06 18:54:55 -07:00
Mark Robert Henderson
abe3fb1fa3 11851 a11y discover field chooser headers (rebased version) (#12211)
* Discovery heading refactor and a11y tabbing

* CSS Changes based on @cjcenizal's feedback

* Updating docs examples

* adding font-weight: normal
2017-06-06 16:40:18 -07:00
Joe Fleming
1ffa6df523 Replace node-uuid with uuid (#12209)
* replace node-uuid with uuid package

* fix all the uuid call sites
2017-06-06 15:15:53 -07:00
Stacey Gammon
7e5bdee893 Remove encoding dashboard listing links (#12195)
encodeQueryComponent turns spaces into +’s. I’m not sure of it’s
purpose but it will cause dashboards not to open correctly when used in
this context.
2017-06-06 14:53:28 -07:00
Kim Joar Bekkelund
8723121676 Remove unused nav background code (#11026) 2017-06-06 14:49:41 -07:00
Joe Fleming
c400d604dd remove intern setup (#12201)
#10937 seems to have brought this file back, likely as part of a bad merge resolution
2017-06-06 13:30:26 -07:00
Chris Cowan
26aec5e976 Import / Export API for Dashboards (#10858)
* Initial implementation

* Deduping final data array. Adding index patterns from saved searches

* Adding import

* Finishing import implimentation

* Adding tests for export

* Adding tests for import

* Filtering out bad ids

* Adding options for exclude and force

* Fixes per request by PR reviewers

* Adding a check for empty ids

* Use SavedObject API

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

* Omits missed objects, adds tests

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

* Moves import to SavedObjectsClient

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

* Fixing a bug with missing index patterns

* Fixing spacing issues (because the format is weird on this array which is too much for eslint to handle)

* Fixing tests and renaming file

* Changing paths to /api/kibana/dashboards/(export|import); adding validation to export

* Single call signature and use async/await

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

* Adding try/catch to JSON parses; Removing payload from export;

* removing redundent code

* Changing test to only use query arguments

* Removing bad panel from test data

* Return errors for bulkCreate objects

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

* Changing everything to named imports; removing deps from everything; fixing tests to reflect named imports

* Refactoring to use async/await pattern
2017-06-06 13:25:59 -07:00
CJ Cenizal
13681d32b7 Add snapshots for Warning Button tests. (#12202) 2017-06-06 13:10:15 -07:00
Brandon Kobel
8379729d86 Adding a warning button and making the notifier use it for warnings (#11829)
* Adding a warning button and making the notifier use it for warnings

* Adding 'warning' to the BUTTON_TYPES

* Fixing test
2017-06-06 14:56:33 -04:00
Stacey Gammon
718fdc066a Preserve the saved vis url when using the add new vis link from dashboard (#11932)
* Preserve the saved vis url when using the add new vis link from dashboard

Fixes https://github.com/elastic/kibana/issues/11078

* Store the edit url in browser history as well

* Fix tests by reordering them.

* add a more explanatory comment
2017-06-06 14:52:17 -04:00
Joe Fleming
262bcb411a Use es6 exports, replace module.exports (#12084)
* use es6 exports in fixtures

* use es6 exports in test_utils

* use es6 exports in src/ui

* use es6 exports in src/utils

* use es6 exports in src/server

* use es6 exports in timelion

* use es6 exports in core plugins, but not console

* use es6 exports in console

* use es6 exports in src/cli

* use eslint --fix for no-extra-semi rule

* selectively disable kibana-custom/no-default-export

* replace define() with exports

* clean up some object exports

in these cases, named exports are the better replacement

* use es6 exports in src/optimize, where possible

* fix uses of named exports

* fix some imports in console

* revert postcss optimizer to module.exports

* [timelion] put shared code in common directory

* fix url module export

don't export as default, rely on the named export

* convert define modules in src to export

* convert ui-bootstrap to cjs module

* lint webpackShims

no reason not to, they pass when the no-var rule is disabled

* fix new code not using es6 exports

* fix some straggling exports
2017-06-06 10:11:59 -07:00
spalger
992684962b master development is now for alpha3 2017-06-06 10:08:52 -07:00
Árpád Poprádi
20dc42957c [UI Framework] Reactify menu (#12135)
* Reactify ui_framework/components/menu
2017-06-06 09:01:07 -07:00
spalger
1bec910f7f bump to 6.0.0-alpha2 2017-06-06 08:04:30 -07:00
Court Ewing
0d048c5f10 docs: 6.0.0-alpha2 release notes 2017-06-06 07:56:58 -07:00
CJ Cenizal
cfe0e7bca0 Simplify markup for CardGroup at the expense of added specificity in the styles. (#12183) 2017-06-05 17:00:35 -07:00
CJ Cenizal
7b7cf51ffe Improve Filter Editor UI (#12161)
* Use labels consistently in Filter Editor dropdown. Improve screen reader and keyboard accessibility.
* Convert 'Edit Query DSL' from button to toggle link.
* Add link to documentation.
2017-06-05 16:33:31 -07:00
Shaunak Kashyap
27745f72a3 Revert the Getting Started page (#12154)
* Revert "When on an embedded page, bypass Getting Started gate check (#12040)"

This reverts commit 05293f1c8d.

* Revert "Making tweaks. (#12003)"

This reverts commit aa3fa06f61.

* Revert "Functional tests for the Getting Started page (#11850)"

This reverts commit 099178a7ca.

* Revert "Prevent flicker on Getting Started page (#11826)"

This reverts commit c4b3ade27d.

* Revert "Getting Started page (#11805)"

This reverts commit 32eff371f2.

* Remove check for Getting Started page from navigateToApp
2017-06-05 14:18:30 -07:00
Spencer
bd40b9d9e8 [indexPatterns/create] deprecate expand setting (#12156) 2017-06-02 15:42:19 -07:00
Lukas Olson
013b7943dc Filter editors (#11375)
* Add terms filter

* First stab at inline filter editors

* Cleanup

* Move endpoint to server

* Add delete button to filter editor

* Add sort prefix first utility

* Sort ui-select items by prefix first

* Add sortPrefixFirst tests

* Use small text input instead of styles

* More keyboard-driven filter creation

* Add custom dsl edit support

* Add more actions

* Add alias support

* Simplify label

* Allow freeform entries

* Fix visualize

* Support for dashboard

* Move styles to less and fix visual issues

* Rename map_match to map_phrase

* Detect scripted filters for filter editors

* Simplify range map

* Use match_phrase instead of terms

* Fix scripted exists

* Support scripted phrases

* Don't show DSL editor for new filters

* Disable save unless valid

* Fix error when searching for numbers

* Return correct error and dont suggest values for numbers

* Only suggest filterable fields

* Clear params on field change

* Clear suggestions on field change

* Cache response

* Preserve selected params

* Fix multiple selection

* Don't overflow on multiselect

* Show tooltip on long values

* Use different input for different types

* Show all actions again

* Move dsl editor to directive

* Update filter query dsl editor

* Clean up code

* Move filter field select into own directive

* Move filter operator select into own directive

* Move utils to separate file

* Move field options to field directive

* Move operator options to operator directive

* Move params under operator type

* Move params editor into own directive

* Move param editors to own directives

* Don't highlight values

* Don't use unnecessary onChange

* Use text input if no suggestions

* Remove unused updateFilter

* Enhance params editors
Move params editors to separate file and present different editors based on field type

* Update save filter api

* Update save filter api

* Fix a couple tests

* Fix more tests

* Fix map phrase test

* test cleanup

* Hide editor on esc key

* Use first index pattern if none specified

* FilterEditorUtils test and fix range error

* fix date phrase

* Date format should allow date math values

* Only show add filter button if there are index patterns

* Look up field from indexPatterns service rather than passed index patterns

* Use basepath instead of relative path

* Feedback from bargs

* Don't show filter bar when ya shouldnt

* don't reload panel saved objects

* Show date math instead of formatted date

* Focus on params even when not ui-select

* Hide editor on delete

* Update styles to BEM format

* Update styles

* Add more tests

* Don't show pin/disable

* Fix bug where saving a filter edit without making changes messed up pinning

* Update styles to camelcase

* Fix cutoff from top of screen for ui-select

* Add accessibility

* Align to top

* Align inputs and add placeholders

* Dynamic input sizing

* Fix dashboard panel test
2017-06-02 15:23:05 -07:00
Spencer
e5deca679c [IndexPatterns] Support cross cluster search (#11114)
* [indexPatterns] support cross cluster patterns

* [vis] remove unused `hasTimeField` param

* [indexPatterns/create] fix method name in view

* [indexPatterns/create] disallow expanding with ccs

* [indexPatterns/create] field fetching is cheaper, react faster

* [indexPatterns/resolveTimePattern/tests] increase readability

* [tests/apiIntegration/indexPatterns] test conflict field output

* [indexPatterns/fieldCaps/readFieldCapsResponse] add unit tests

* [test/apiIntegration] ensure random word will not be valid

* [indexPatterns/ui/client] remove unused import

* remove use of auto-release-sinon

* [indexPatterns/create] don't allow expand when cross cluster

* [indexPatternsApiClient/stub] use angular promises

* [indexPatterns/create] add tests for base create ui behaviors
2017-06-02 14:26:58 -07:00
Nathan Reese
24a662cb7d remove check for ng-untouched class from formControlInvalid mixin (#12153)
* remove check for ng-untouched class from formControlInvalid mixin

* updated generated dist file

* add comment to avoid re-introducing Angular classes in the future
2017-06-02 15:02:11 -06:00
Stacey Gammon
40bc831d80 Update dashboard based on url changes (#12123)
* Update dashboard based on url changes

* make clickSelector a retry in case it fails the first time
2017-06-02 12:38:47 -04:00
Colm O'Shea
829e0bd64d Add force-local flag to tar archiving on windows (#11914)
This commit adds the ability to archive tars on windows builds.
As windows filepaths have colons in them (i.e. c:/kibana)
tar thinks it is accessing a remote datasource.

Adding the --force-local flag tells tar to archive a local file.
2017-06-02 10:04:03 -05:00
archana
04ee900924 [UI Framework] Compile ui_framework.css (#12140) 2017-06-02 09:16:06 -05:00
Colm O'Shea
2e5a9af100 Bump grunt-run to 0.7.0 (#12127) 2017-06-02 09:15:45 -05:00
Peter Pisljar
7801483f7e area chart should render even with single data point (#12057)
* removing constrain for at least 2 data points

* cleaning up
2017-06-02 15:39:36 +02:00
Aleh Zasypkin
fb40168305 Use proper Content-Type request header instead of kbn-version and kbn-xsrf for server CSRF check. (#12019) 2017-06-02 15:09:46 +02:00
CJ Cenizal
f054b53a72 Fix appearance of united CardGroup. (#12132) 2017-06-01 21:20:52 -07:00
Spencer
14014872aa [eslint] Upgrade to latest shared eslint config (#12129)
* [eslint] upgrade to latest eslint-config-kibana

* [eslint] autofix violations discovered by updated rules

* [eslint] remove import resolver
2017-06-01 17:52:39 -07:00
dave.snider@gmail.com
ea90df7a93 Add expression component to KUI (#11774)
Adds expression component and documentation to KUI.
2017-06-01 16:00:07 -07:00
archana
46c832d27b [UI Framework] Change menu to unordered list (#12102)
* [UI Framework] Change menu to unordered list

* Add usage comments

* Update events_sandbox example

* Improve comments and regenerate css

* Improve comments
2017-06-01 11:23:13 -05:00
Aleh Zasypkin
4bc4c58d8c Get rid of auto-release-sinon in favour of built-in sinon.sandbox functionality. (#12099) 2017-06-01 10:27:08 +02:00
Spencer
42c1a0b4fc [uiSettings] refactor style (#12052)
* [uiSettings] es6-ify

* [uiSettings] fix tests

* [uiSettings/mirrorStatus] remove unneeded param

* [uiSettings] remove return-before-logic

* [uiSettings] refactor assertRequest() to match styleguide

* [uiSettings] do not treat this.getDefaults() as async

* [uiSettings] fix assertRequest() checks

* [uiSettings] test assertRequest() logic
2017-05-31 23:13:52 -07:00
Spencer
b7f519704a [jenkins/ftr] bail on first functional test failure (#12111) 2017-05-31 14:18:58 -07:00
Spencer
132f9b4d29 [npm] remove whatwg-fetch dependency (#12110) 2017-05-31 13:58:57 -07:00
Thomas Neirynck
2270a6c24f Add Region Map Visualization
- Users can now create choropleth maps. This requires configuring an inner join between the results of a term-aggregation and a reference vector layer. This vector layer needs to be in the GeoJson format. By default, Kibana uses vector layers serverd by a data service hosted by Elastic. Users can also bring in their own layers by adding configuration entries in the kibana.yml. These need to point to a CORS-enabled data service that accepts requests from the Kibana application.
- For clarity, the tilemap is renamed to Coordinate Map.
- A new manifest is published by Elastic. this includes metadata for the available tilemap services, as well as metadata for the available vector data layers.
2017-05-31 16:56:02 -04:00
CJ Cenizal
e2a862c552 Bump css-loader dependency to play nicely with Yarn. (#12103) 2017-05-31 13:52:19 -07:00
Stacey Gammon
20e5eae94f Clean up clone tests to new style so they actually run (#12032)
* Clean up clone tests to new style so they actually run

* Use new retry service

* Use correct case with the dashboard copy name
2017-05-31 16:36:03 -04:00
CJ Cenizal
fe215adc4d Change flexbox rules of Dashboard Panel visualization containers so that they don't get squeezed by the spy. (#12038) 2017-05-31 11:59:22 -07:00
Spencer
66a127d3b8 [indexPatterns/create] remove check for interval/name in name watcher (#12101) 2017-05-31 11:49:35 -07:00
Stacey Gammon
8f297170b4 Fix firefox scroll issue (#12031)
* Fix firefox scroll issue

* add comment for the change in the css
2017-05-31 14:39:37 -04:00
Spencer
8d16d1e4a6 [indexPatterns/create] dedupe refreshTimeFieldOptions() (#12007) 2017-05-31 10:40:33 -07:00
Stacey Gammon
5bc5c03ab8 fix dashboard view/edit flaky test (#12026)
* attempt to fix dashboard view/edit flaky test

hope to fix https://github.com/elastic/kibana/issues/12014

* Need to wait for global loading indicator to be hidden once top nav is visible

* use Error object for throw

* inline function only used once
2017-05-31 12:29:08 -04:00
Peter Pisljar
b53724bb36 vislib gauge chart (#10336)
* gauge chart

* adding ranges and color options

* adding green to red color pallete

* adding more options

* fixing based on tanya's review

* fixing label positions

* improving range settings

* percentage mode applies to legend

* hidding labels when too long

* updating based on ui rview

* rebasing on master

* adding unit tests

* adding selenium tests

* fixing tests

* adding metric gauge type

* removing metric vis

* adding metric and goal charts

* updating options

* fixing bugs

* fixing based on review from Thomas

* updating icons

* fixing tests

* updating based on last review

* hide some settings if only one range

* fixing tests

* removing unsupported aggs

* fixing defaults

* fixing options

* fixing error with inverse color schema

* adding spacing to info icon

* fixing some tiny issues
2017-05-31 09:30:18 +02:00