Commit graph

14668 commits

Author SHA1 Message Date
Liza Katz 19f7e99d3f
Remove deprecated argument include_type_name from ES calls (#50285)
This PR is merged with an error, because these errors happen on master as well. @flash1293 is working on fixing those.

This one should allow us running with the latest es snapshot 



* deprecate include_type_name

* include_type_name

* remove doc from mappings

* Updated timelion mapping

* Updated spaces and uptime mapping

* monitoring apm mapping

* Updated more mappings

* 2 more mappings

* Updated reporting mappings after syncing with @gammon

* Removed deprecated setting
2019-11-12 20:27:37 +02:00
Peter Pisljar 253a10696c
remove visualize loader (#46910) 2019-11-12 09:43:51 -05:00
Maryia Lapata 3a8e65a816
Move table-list-view to kibana-react (#50046)
* Move table-list-view to kibana-react

* Pass ui/* import as props

* Update i18n message ids

* Fix TS

* Fix unit tests
2019-11-12 17:18:02 +03:00
Aleh Zasypkin ad356f5c11
Migrate authorization subsystem to the new platform. (#46145) 2019-11-12 11:31:46 +01:00
Anton Dosov a97c9d3882
Bugfix: Interpreter conversion of string to number should throw on NaN #27788 (#50063) 2019-11-12 11:08:20 +01:00
Mike Côté ea9bb0a0a5
Ability to have telemetry always opted in (#49798)
* Initial work

* WIP changes

* Turn off banner when allowChangingOptInStatus is true

* Fix bugs

* Fix broken jest tests

* Add jest tests for TelemetryForm

* Add TelemetryOptIn jest tests

* Make some adjustments to allow always being opted in

* Disallow turning telemetry completely off

* Fix bug in Joi config

* Keep route there
2019-11-11 18:28:38 -05:00
Mike Côté a746bcec5f
Add "Get Help" and "Kibana Feedback" links to the help popover (#49797)
* Initial work

* Move links to constants

* Update UI based on design and copy

* Apply PR feedback

* Remove unused translations

* Apply requested changes

* Remove some icons
2019-11-11 18:26:12 -05:00
Jonathan Budzenski 1cc2a34745
Removes references to Elasticsearch mapping types (#47610)
* rm types

* fix infra/reindex test

* rm max_adjacency_matrix_filters

* lint

* more fixes

* comment return

* override documentation links

* typo

* return unfedined

* skip highlight test

* lint
2019-11-11 16:41:08 -06:00
Liza Katz a72cb8589b
Move timefilter and PersistedLog ⇒ NP (#49491)
* Move timefilter to NP

* Fixed editor import

* added karma mocks

* More karma mocks

* Change way timefilter is mocked

* Fix timefilter passing in timelion

* attempted revert of mock types
2019-11-11 15:38:16 +02:00
Maja Grubic 8f6c41f268
[Discover] Close filter popup on click outside (#49934) 2019-11-11 13:11:15 +00:00
Liza Katz 29aeec8ce1
Fix disco filters #2 (#50061)
* closes #44349, as well as SDH issue #64

* added tests to cover fix

* eslint

* Fixed test import
2019-11-10 22:25:02 +02:00
Alexey Antonov c3951e9374 Move @kbn/es-query into data plugin - filters folder (#49843)
Dismissing reviews from ml and canvas as this is only an import change. 


* Move @kbn/es-query into data plugin - filters folder

* fix PR comments
2019-11-07 22:02:49 -05:00
Tim Sullivan 4baf5d9751
[Dev Docs] Improve usage collection readme (#50098) 2019-11-07 21:57:28 -05:00
Joe Reuter 349bc12f1e
Shim home app (#48715) 2019-11-07 11:56:19 -05:00
Spencer 0010447f0f
[a11y] add initial accessibility functional tests (#43584)
* [a11y] add initial accessibility functional tests

* add accessibility jobs

* fix config path

* remove percy setup from scripts

* disable color-contrast rule

* apply changes from @myasonik

* define aria-controls/owns props even when suggestions aren't visible

* [ftr/a11y] only throw error when there are errors

* adding tests for management page

* add a11y test for management page

* adding ignore rules' to a11y

* accessibility test for kibana home

* 7 passing tests, 0 failures

* jest snapshot update

* support a11y test in pipeline job

* update a11y test script for pipelines

* use oss compatible ci setup

* fix exclude syntax

* add default exclusion syntax
2019-11-07 10:07:40 -05:00
sainthkh 3f130ba27f Move legacy/server/index_patterns -> src/plugins/data/server (#46537)
Dismissed @elastic/kibana-app review of import changes.

ts-ignored @ts-ignore

* Moved files to plugins/data/server.

* Renamed IndexPatternsService to IndexPatternsFetcher and created new IndexPatternsService

* Set routerPath.

* Fixed type error.

* Changed beats_management _fields_for_wildcard request with data/public/legacy api.

* Fixed changed paths.

* Fixes crashes after merge.

* Updated path for clarity.

* Applied Plugin interface to service.

* Fixed test failure caused by non camel case local variable name.

* Fixed import to IndexPatternsService to IndexPatternsFetcher.
2019-11-06 18:29:11 -05:00
Liza Katz 3d2b1203e4
Remove unneded ui/documentation_links import (#49886) 2019-11-06 13:49:01 -05:00
Brandon Kobel c4d1430372
Revert "No response compression when there is a referer (#47751)" (#49987)
This reverts commit 85e5885ccf.
2019-11-06 10:11:42 -08:00
Maryia Lapata 17383b82f3
[Vis Editor] Fix issue with parent pipeline agg (#48756)
* Add error when there is no histogram agg when using parent pipeline

* Update error message

* Update message

* Get rid of let
2019-11-06 09:54:34 +03:00
dave.snider@gmail.com f8ef2c6a34
remove pound symbol from saved queries (#50038) 2019-11-05 18:59:08 -08:00
Patrick Mueller 5ba237a885
[Telemetry] Remind users about telemetry on each minor version (#49644)
resolves #49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
2019-11-04 23:28:54 -05:00
dave.snider@gmail.com 807103cce5
Improve dashboard filters display to use color as well as text for negated filters (#49939)
* Better key out negative filters

* fragments not spans

* Alter filter bar colors

- Red border for excluded
- Match pinned color to border color

* Fix title by using `useInnerText`

* Fix alignment of add filter button

* Moving SASS variables to its own file
2019-11-01 23:13:46 -07:00
Caroline Horn 49aa62ecfc
Add specificity to EuiComboBox focus ring hack (#49981) 2019-11-01 18:49:09 -04:00
renovate[bot] 73ebd567ad Update dependency rxjs to ^6.5.3 (#49837)
* Update dependency rxjs to ^6.5.3

* move argument type def up for better coverage

* adapt to possibly undefined helpExtension

* complete definition of deprecation$ type

* define types that bindNodeCallback can no longer infer

* define more types that bindNodeCallback can't infer

* be more explicit and accurate about the types for a subject/observable pair

* fix interface error, TS now identifies it

* ignore a return type flaw because types are not being managed properly

* avoid overspecifying types

* allow types to be inferred where possible

* remove unnecessary withLatestFrom()

* reduce number of rxjs versions installed

* update kbn/pm dist
2019-11-01 14:44:21 -07:00
Maryia Lapata dbc9a52fd8
[Visualize] Centralize dependencies in kibana_services.ts (#49293)
* Centralize dependencies for Visualize  plugin

* Centralizing dependencies in editor and embeddable

* Remove unused deps, move imports

* Fix dangerouslyGetActiveInjector

* Move loading directive to kibana_services.ts

* Fix exceptions

* Get rid of injectI18n; fix chrome method invocation

* Update unit tests

* Fix TS

* Move data and Embeddable import

* Import VISUALIZE_EMBEDDABLE_TYPE directly

* Fix deps
2019-11-01 11:24:31 +03:00
Maja Grubic 559ac840c5
[Discover] EUI-fication of the filters (#48452)
* New filter UI

* Prototype of functionality

* EUIFication of filters in Discover

* Adding tests for field_selector component

* Replacing FieldSelector with EuiForm components

* Adding more discover field search tests

* Removing console statement

* Fixing failing functional test

* Removing obsolete snapshot

* design tweaks for filter popover

* use compressed style inputs

* Changing selectors to be EuiButtonGroup

* Removing unnecessary if statement

* Getting rid of ts-ignore warning
2019-10-31 17:53:40 +00:00
Vadim Dalecky 75f31130f0
Dashboard container (#49600)
* feat: 🎸 create dasboard embeddable NP plugin, move panel action

* refactor: 💡 pass in getFactories() fn to "replace" action

* refactor: 💡 move dashboard container actions to NP

* refactor: 💡 remove action files from dashboard container in LP

* refactor: 💡 move dashboard grid to NP plugin

* refactor: 💡 move Embeddable SASS to the NP

* refactor: 💡 move dashboard container panel to NP

* refactor: 💡 move dashboard container viewport to NP

* refactor: 💡 move dashboard constant to constants file

* refactor: 💡 move dashboard_continaer file to NP

* refactor: 💡 move dashboard_container_factory.tsx to NP

* chore: 🤖 disable injected React components

* feat: 🎸 fill in NP plugin

* feat: 🎸 move expand panel action to NP

* feat: 🎸 move replace action panel to NP

* feat: 🎸 move dashboard_contaienr to NP

* chore: 🤖 delete LP dasboard container plugin shim

* chore: 🤖 delete LP dashboard_embeddable_container plugin

* chore: 🤖 point translations to the NP plugin

* test: 💍 re-enable dashboard container tests

* chore: 🤖 fix TypeScript type errors

* chore: 🤖 fix more TypeScript tyeps

* test: 💍 fix import in .js test

* feat: 🎸 use <SavedObjectFinder> in dashboard container

* feat: 🎸 add full screen button to dashboard container

* fix: 🐛 execute Chrome hiding only once

* chore: 🤖 put back temporary type substitutions

While moving this plugin file-by-file those types were not available

* chore: 🤖 revert back kibana_react imports

* fix: 🐛 address review comments
2019-10-31 17:56:39 +01:00
Justin Kambic b4ecd5ab91
[Core] Add different request lib to telemetry_analytics in place of $http (#49671)
* Add axios to telemetry_analytics in place of .

* Remove axios in favor of fetch.
2019-10-31 12:05:38 -04:00
Daniil Suleiman 9e00c78f4c
[Vis: Default editor] Create number_input with numeric value required (#48117)
* Created number_input with numeric value required

* Remove extra license

* Make value be possibly null
2019-10-31 11:27:57 +03:00
Matt Bargar 1dcec9d210
Add nested field support to KQL (#47070)
This PR adds a new syntax to KQL for querying nested fields.

Nested fields can be queried in two different ways:

Parts of the query may only match a single nested doc (bool inside nested). This is what most people want when querying on a nested field.
Parts of the query may match different nested docs (nested inside bool). This is how a regular object field works but nested fields can be queried in the same way. Although generally less useful, there are occasions where one might want to query a nested field in this way.
The new KQL syntax supports both.
2019-10-30 13:07:43 -04:00
Liza Katz 0118bdec29
Pass overlays service to createFilterAction (#49736)
* Pass overlays service to createFilterAction

* Changed import path
2019-10-30 18:21:11 +02:00
Vadim Dalecky a38223d890
Expressions np (#47810)
* refactor: 💡 generalize service getters and setters in expressio

* feat: 🎸 create NP-ready plugin for expressions

* refactor: 💡 flatten expressions plugin and remove service

* chore: 🤖 re-export legacy expressions service dir for Lens

* refactor: 💡 don't import renderer registry statically

* test: 💍 mock expressions service renderers registry in Mocha

* refactor: 💡 clean-up NP expressions pugin

* refactor: 💡 move Expression fonts to NP

* refactor: 💡 register Interpreter entities explicitly

* refactor: 💡 move clog Expression function to NP

* refactor: 💡 move font function and style types to NP

* refactor: 💡 remove ui/chrome from kibana_context function

* feat: 🎸 add ability to consume start core from setup life-cycle

* refactor: 💡 move kibana_context function to NP

* feat: 🎸 improve naming and delete import of missing function

* refactor: 💡 register expression clog and font fn in NP

* chore: 🤖 set AppArch as GitHub folder owners

* refactor: 💡 move Expression "kibana" function to NP

* refactor: 💡 move range function to visualizations plugin

* feat: 🎸 move visDimensions to visualizations plugin

* chore: 🤖 delete unused files

* refactor: 💡 move expression type registration to NP

* refactor: 💡 move createHandlers() function to NP

* feat: 🎸 move Expression executor to NP

* refactor: 💡 re-implement function registry

* refactor: 💡 convert expression type to class

* fix: 🐛 correct TypeScript errors

* feat: 🎸 convert Expressions type registry to class

* feat: 🎸 convert render function registry to class

* fix: 🐛 fix TypeScript errors

* fix: 🐛 fix translations after refactor

* refactor: 💡 move Expression types to NP

* test: 💍 remove unused test

* fix: 🐛 fix Lens import after merge with master

* fix: 🐛 fix TypeScript errors

* refactor: 💡 update expression types

* test: 💍 fix renderer test
2019-10-30 14:57:53 +01:00
Vadim Dalecky a10cf388c1
Fix eslint (#49595)
* fix: 🐛 fix unused persistedLog object

* chore: 🤖 ignore ESLint rule

* fix: 🐛 correct dependencies in useUnmount() hook

* fix: 🐛 fix ESLint errors

* chore: 🤖 disable ESLint rule

* fix: 🐛 add savedQueryService to dependency list

* fix: 🐛 fix ESLint errors in data plugin

* chore: 🤖 fix self-closing ESLint rule

* test: 💍 update Jest snapshot

* refactor: 💡 memoize persistedLog in more idiomatic way

* chore: 🤖 remomve unused import

* chore: 🤖 revert possible test breaker

* fix: 🐛 fix query bar merge errors
2019-10-30 12:44:38 +01:00
Joe Reuter 1fab577f8a
Kibana app migration: Local application service (#48898) 2019-10-30 12:15:34 +01:00
Jaime Soriano Pastor ed9cdd7afe
Add CockroachDB Metricbeat module to Kibana Home (#49672) 2019-10-30 11:43:27 +01:00
Søren Louv-Jansen e3b0fc0626
Allow server to start despite incompatible ES nodes in the cluster (#49490) 2019-10-30 10:55:26 +01:00
Wylie Conlon e3ec773004
[Lens] Remove default title, tweak text for consistency (#49394)
* [Lens] Remove default title, tweak text for consistency

* Remove unused

* Text update
2019-10-29 13:51:53 -04:00
Chandler Prall 94202a9eab
Upgrade EUI to v14.8.0 (#49375)
* Upgrade EUI to v14.8.0

* update snapshot for determinism
2019-10-29 11:04:24 -06:00
Chris Davies ebb494478a
[Lens] Make date histogram interval more customizable (#49217) 2019-10-29 12:48:30 -04:00
Marta Bondyra 6c4f3cbb5c
chore: point issue links to choose (#49616) 2019-10-29 15:54:27 +01:00
Spencer 19ea92abb7
move react/jsx-a11y rules into shared react preset (#49244)
* move react/jsx-a11y rules into shared react preset

* autofix react/jsx-closing-tag-location

* autofix react/no-unknown-property

* manually fix react/no-unescaped-entities

* maually fix react/jsx-pascal-case

* manually fix react/prefer-stateless-function

* disable known violations in specific plugins/areas

* remove code override
2019-10-29 06:15:33 -07:00
Alexey Antonov 80d17b744d
Convert agg_types/__tests__ to JEST (Buckets folder) (#49333) 2019-10-29 15:28:54 +03:00
Liza Katz a6d0b6018b
Move Storage ⇒ NP kibana_utils (#49448)
* Move storage to kibana_utils

* Updated all references to Storage and replace places where it was referenced to as "store" to avoid confusion.

* fixed tests

* Delete data legacy dependencies plugin

* Imports fix

* update snapshots
2019-10-29 14:16:08 +02:00
Peter Pisljar c09e1cd477
use embeddables in visualize editor (#48744) 2019-10-29 12:00:35 +01:00
Liza Katz 19c4f872cc
Move filter manager ⇒ NP (#48391)
* Moved filterManager to NP plugin

* Fixed applying filters to dashbaord.

* Minor fixes

* fixed types

* fix jest tests mock of filter

* Updated karma mccks

* Fixed lens test

* fixed import

* Removed comment
2019-10-29 11:55:24 +02:00
Nathan Reese ce521bb281
[Maps] hide map visualization types with default kibana.yml settings (#49103)
* [Maps] hide map visualization types with default kibana.yml settings

* add docs explaining xpack.maps.showMapVisualizationTypes

* clean up docs

* fix docs build

* fix typescript failures

* move docs to troubleshooting section

* add message about xpack.maps.showMapVisualizationTypes in coordinate map and region map docs

* doc updates based on gchaps feedback

* Update docs/visualize/regionmap.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/visualize/tilemap.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
2019-10-28 18:30:25 -06:00
Spencer 69f47a9b90
remove code-plugin specific build task and related node module (#49525) 2019-10-28 15:40:11 -07:00
Mikhail Shustov b6591eb0bd
Provide uiSettings service in NP (#48413)
* provide ui settins client via context

* update mocks

* update types and expose setDefaults to plugins

* move ui settings routes to NP

* add typings fro test kbn server

* move integration test & improve typings

* hide client private methods, update tests

* add unit tests for get_upgradable_config

* inline writeErrors into createOrUpgradeConfig to simplify testing

* regen docs

* add functional tests for ui_settings service

* unify test suites

* add types for sipertest in core_plugin tests

* tsify core_plugins tests

* add test for empty saved config

* update renovate

* rename get/setDefaults to reguster

* regen docs

* regen docs

* Update src/core/MIGRATION.md

Co-Authored-By: Josh Dover <me@joshdover.com>
2019-10-28 16:06:12 -04:00
Josh Dover 23a9058cc4
Migrate ui/registry/feature_catalogue to New Platform plugin (#48818) 2019-10-28 13:08:30 -05:00
Josh Dover 2d1c239fdd
Migrate necessary ui/autoload functionality to NP (#48689) 2019-10-28 12:58:29 -05:00