Commit graph

25903 commits

Author SHA1 Message Date
Kaarina Tungseth 8df31cb755
[DOCS] Add brew install instructions. (#38417)
* [DOCS] Add brew install instructions. Closes #38220

* Link fix

* Removed inline notes from index

* Fixed table format

* Updated with tap changes

* Comments from Deb
2019-06-20 08:51:51 -05:00
Alison Goryachev d4abdc7a06
[IM] warn user before closing or deleting kibana index (#39018) 2019-06-20 09:48:08 -04:00
CJ Cenizal bcb9d5fc92
Fix broken reference to prependBasePath in Remote Clusters shim. (#39277) 2019-06-20 06:46:47 -07:00
Casper Hübertz bc1e90068e
[APM] Fixed positioning of CTA button (#39332) 2019-06-20 14:54:06 +02:00
Henry Wong 658d50440e
[code] Enrich the client capabilities with markup kind. (#39153)
In the lsp specification, initialize request can provide capability
options to the language server. However, for the minimize influence on
other language servers, nest capabilitiy options into `initialOptions`.
If there is no client capability options explicitly, use the one nested
 in `initialOptions`.
2019-06-20 13:47:55 +08:00
Fuyao Zhao 887151da10
[Code]: Upgrade ts langserver version (#39321) 2019-06-19 19:49:02 -07:00
Yulong 5ad6ae7616
[Code] Cancel requests if workspace is unloaded (#39062)
* [Code] Cancel requests if a workspace is unloaded
* [Code] clear unnecessary code proxy
2019-06-20 09:32:41 +08:00
Brandon Morelli 9ade19f22c
[docs] Fix broken doc link (#39320) 2019-06-19 17:38:25 -07:00
Brandon Morelli 30e5f9b79b
[docs] Fix broken doc build (#39319) 2019-06-19 16:40:03 -07:00
Chris Cowan 487ab80725
[Infra UI] Metrics Explorer Documentation (#37040)
* First pass at the Metrics Explorer tutorial, it's rough

* docs: fix build errors and formatting

* docs: content changes

* Making filter step a little more accurate

* An attempt to answer the why

* Update docs/infrastructure/metrics-explorer.asciidoc

Co-Authored-By: Brandon Morelli <bmorelli25@gmail.com>
2019-06-19 17:49:11 -05:00
Chris Cowan a9badb9af2
[Infra UI] Fixes 38141 - Allow Metrics Explorer to set KQL filters in TSVB (#38280)
* Change TSVB link to use KQL for filters; Apply filterQuery to TSVB requests

* Add test for filterQuery in TSVB data

* Reverting yarn.lock

* updating tests; removing derivedIndexPattern

* Removing commented out code

* Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/populate_series_with_tsvb_data.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/populate_series_with_tsvb_data.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/populate_series_with_tsvb_data.ts

Co-Authored-By: Felix Stürmer <weltenwort@users.noreply.github.com>

* Escaping possible double quotes in id fields and adding test case
2019-06-19 17:47:48 -05:00
Zacqary Adam Xeper e22d7d795a
[Logs UI] Shrink log stream when window is resized (#38937)
* [Logs UI] Shrink log stream when window is resized

* Avoid using window resize events for width
2019-06-19 16:25:50 -05:00
Vadim Dalecky 071a52d4d4
No common registry implementation (#39168)
* refactor: 💡 use new Map() in Embeddables

* refactor: 💡 remove IndexPatternCreationConfigRegistry

* refactor: 💡 make indexPatternTypes registry semantic

* fix: 🐛 fix TypeScript errors
2019-06-19 22:21:15 +02:00
Spencer 7ef28ce5df
[build/archive] avoid concurrent archive to prevent OOM (#39292) 2019-06-19 12:48:02 -07:00
Matthias Wilhelm 99c1597e93
Fix broken "View single document" link of Discover using Elasticsearch 8.x (#39178)
* Remove type from ES request at doc view
- in ES 7.0 types were deprecated
- in ES 8.0 types were removed
Using ES 8.0 'View single document' of Discover didn't work

* Remove type from 'View single document' link

* Add functional test
2019-06-19 21:14:52 +02:00
Lisa Cawley 0f68492e38
[DOCS] Refreshes screenshot for monitoring ML (#39222) 2019-06-19 10:51:24 -07:00
CJ Cenizal cfd6109fb6
Add setting for disabling use of triple quotes in the Console output pane. (#39114)
* Fetch settings only when polling is turned on.
2019-06-19 10:22:27 -07:00
Stacey Gammon ddcb58331f
Split up angular dashboard directive and controller class (#39188)
* remove unused scope param

* Split up app and app controller into two files

* incorporate docTitle changes, plus type
2019-06-19 13:08:33 -04:00
Nathan Reese 7b5b6e4e02
[Maps] Move set view to toolbar control, show zoom level in view control (#38925)
* break out ToolsControl from ToolbarOverlay component

* move set view control to toolbar overlay component

* fix i18n

* use cchaos approved top calculation in scss

* fix functional tests by updating lat,lon, and zoom state when props change

* do not set state from props in constructor, only set state from props in getDerivedStateFromProps

* provide default value for isSetViewOpen in store

* just pass needed params to connect
2019-06-19 10:53:25 -06:00
Walter Rafelsberger 1ca0953832
[ML] Data Frames: Rename target index to destination index. (#39239)
Renames all occurrences of "Target Index" to "Destination Index" in both code and UI to match how it is referred to in the transform configuration.
2019-06-19 18:48:15 +02:00
Artyom Gospodarsky b6f472af59
[TSVB] Replace deprecated moving_avg by moving_fn aggregation (#36624)
* Take model options away in a separate file

* Connect user scripting to models

* Add inputs to the panel for managing alpha, beta, gamma params

* Cover model types and scripts by tests

* Change default export of the bucket transform to the permanent one and write tests for moving_average

* Add a migration script from mov_avg to mov_fn

* Remove redundant translations

* Remove old tests

* Fix issues of PR

* Revert yarn.lock

* Fix issues regarding localization

* Remove extra license

* Remove redundant translations

* Move the replaceMovAvgToMovFn hook to 7.3.0

* Fix reviews

* Add a migration test

* Set proper default values and turn hint on for holt-winter only

* Format touched files by Prettier

* Import settings from moving_avg

* Wrap changes to the try/catch statement and log exceptions
2019-06-19 19:47:41 +03:00
Artyom Gospodarsky cba7edbf22
Convert fractional interval to the next lower granularity (#38880)
* Don't let the interval being too small
* Convert fractional values to the next lower granularity
2019-06-19 19:36:17 +03:00
Tiago Costa c574f50d3d
chore(na): revert relative cache-loader (#39266) 2019-06-19 17:01:51 +01:00
Mengwei Ding 88a5a86349
[Code] Improve error logging (#39137)
* [Code] Suppress the get index request count error if index request has been cancelled

* [Code] Skip index data migration if the original index does not exist
2019-06-19 08:38:54 -07:00
Matthias Wilhelm c6df2424de
Add _routing to angular 'track by' value (#38873)
This allows duplicate ids in one index, which are possible by using the _routing param
2019-06-19 17:19:04 +02:00
Stacey Gammon 184111d971
Migrate old style queries stored in filters array (#38945)
* Migrate old query filters

* Null check instead of undefined for more completeness

* remove unnecessary undefined check

* Use good defaults, not undefined, for brand new dashboards.

* fix: typescript errors

* be explicit instead of matchinline snapshot.

* default to Kuery when there is no query given
2019-06-19 11:09:25 -04:00
Mikhail Shustov a75d777bea
New Platform and Legacy platform servers integration (#39047)
* New and Legacy platforms share http server instance.

Required to use a common security interceptor for incoming http requests

* generate docs

* remove excessive contract method

* add test for New platform compatibility

* address comments part #1

* log server running only for http server

* fix test. mutate hapi request headers for BWC with legacy

* return 503 on start

* address @eli comments

* address @joshdover comments
2019-06-19 16:32:37 +02:00
Matthew Kime 80eb1e1583
d13n docTitle (#39162)
* refactor doc title so it can be used outside of angular service
2019-06-19 09:31:42 -05:00
Larry Gregory 7e4e8fee54
Spaces - New Platform Migration, Step 1 (#35429)
* crude test updates

* remove custom server typedef

* allow spaces to aquire security plugin after init

* split CoreSetup into CoreSetup and PluginsSetup

* move interfaces to new plugin

* init interceptors in legacy plugin

* fix import

* add placeholder kibana.json

* use NP Elasticsearch service instead of legacy ES Plugin

* cleanup imports

* don't destructure the es client

* introduce request facade

* document reason for getSecurity

* prefer relative imports from src/core

* fix typo in filename: inteceptors --> interceptors

* fix imports; remove stray ts-ignore

* improve typings for spaces client

* rename InterfaceExcept --> Omit

* don't use legacy config in NP

* additional comment

* shim NP config service

* fix merge from master

* revert relative imports into src/core and src/legacy

* shim capabilities modifier into new platform

* removing placeholder kibana.json

* fix prettier problem

* temporary: patch NP 'setUrl'

* migrate onRequest interceptor to NP, without tests

* fix ts error

* testing and deps cleanup for onRequestInterceptor

* replace spaces's usages of request.getBasePath with http.getBasePathFor

* add explicit timeouts for jest interceptor tests

* attempt to fix imports

* use NP logging instead of faked implementation

* revert stray yarn.lock change

* attempt to stablize and fix tests

* update jest config to include src/core/server/mocks

* fix plugin config typings

* add service tests

* fix merge

* allow spaces service to also work with legacy requests

* update interfaces to confirm to new internal/external API convention

* re-enable some post auth interceptor tests

* add explicit timeouts for tests

* prefer modifyUrl instead of manual url modification

* update logger shim to conform to PluginInitializerContext

* remove spaces ConfigClass

* don't weaken type declaration for scoped cluster client calls

* remove legacy server from SpacesCoreSetup

* remove spaces service cache

* remove legacy server as an interceptor dependency

* use modifyUrl on the raw request too

* remove unused import

* cleanup typings

* replace onRequest interceptor with new onPreAuth interceptor

* fix onPostAuth tests

* temporarily copy modifyUrl into spaces plugin

* fix mock export

* fix merge from master

* spaces scopedClient always uses updated ES client and config

* improve typings for usage collector

* rename isLegacyRequest -> isFakeRequest

* use updated NP base path API

* remove commented code

* only expose scoped spaces client

* use OptionalPlugin instead of getSecurity

* update imports of Saved Objects Service to use new src/core/server location

* update core docs
2019-06-19 10:08:54 -04:00
Alison Goryachev a1ed573cde
check permissions before loading license management actions (#39183) 2019-06-19 09:14:37 -04:00
Dario Gieselaar 101dea21dd
[APM] Display parsed user agent in Transaction Details (#39064)
* [APM] Display parsed user agent in Transaction Details

- Update Transaction typings to include user_agent
- Display user agent fields in Transaction Details if available

* Replace identity with Boolean to prevent unnecessary lodash import
2019-06-19 14:56:14 +02:00
Kerry Gallagher 0e22e51bd9
Add CSS rule to accomodate height fix (#39063) 2019-06-19 13:52:52 +01:00
Nathan Reese 81c15adf34
[Maps] Update Vector Style docs to define vector styles per feature type (#39214)
* [Maps] Update Vector Style docs to define vector styles per feature type

* remove intro to point, polygon, and line sections

* Update docs/maps/vector-style-properties.asciidoc

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

* Update docs/maps/vector-style-properties.asciidoc

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

* Update docs/maps/vector-style-properties.asciidoc

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

* Update docs/maps/vector-style-properties.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
2019-06-19 06:13:55 -06:00
Filip Rydzi d75ec76780 Visualization - Scale to Data Bounds with a value (#38774)
Checking the Scale to Data Bound option may cause that the bar, which value equals to the lower bounds is hidden. To avoid that, you can define bottom margin. Via bottom margin you specify a value, which lowers the lower bounds when displaying the plot.

close #38536
2019-06-19 12:40:21 +02:00
Maryia Lapata a6e800efdd
Vis editor: make IP Ranges inputs compressed (#37476)
* Create IpRangeType and IpRanges controls

* Add validation

* Refactoring

* Add behavior when discarding changes

* Refactoring: create common input list

* Remove old template

* Move add btn to input_list, add placeholder

* Remove unused directives

* Remove unused translations

* Refactoring

* Use EuiButtonGroup instead of toggle button

* Update options ids, add aria-labels

* Make inputs compressed

* Remove unused translations
2019-06-19 13:38:11 +03:00
Pete Harverson 85e8ee758b
[ML] Set noopener feature for custom URLs which use absolute URLs (#39161)
* [ML] Set noopener feature for custom URLs which use absolute URLs

* [ML] Add comments around regex testing for external URL
2019-06-19 11:34:02 +01:00
Vadim Dalecky 24d186c32f
fix: 🐛 expose plugins contracts (#39201)
Looks like plugin contracts got lost in last PR.
2019-06-19 11:47:03 +02:00
Yulong 0120f7cb57
[Code] Fix some texts cannot be hovered in blame page (#39233) 2019-06-19 14:38:30 +08:00
Matthias Wilhelm 37418ac5df
Test IndexPatternsApiClient request URI (#39152) 2019-06-19 07:18:01 +02:00
spalger 40fc31de46 remove tests completely to avoid outdated snapshot errors 2019-06-18 22:13:21 -07:00
spalger 7d9becec72 correct flaky test comment (#25077) 2019-06-18 20:47:23 -07:00
spalger a5ea282cb6 disable flaky tests (#39205) (#36579) 2019-06-18 20:44:44 -07:00
Yulong 0ed5ce2d03
[Code] Fix hard coded doc version link in app (#39232) 2019-06-19 10:54:39 +08:00
Matthew Kime 0ef77d31ed
github-checks-reporter improved retry (#39213)
* bump github-checks-reporter
2019-06-18 19:42:06 -05:00
CJ Cenizal 085f65d7a7
Allow users to disable polling in Console (#38949)
* Add ability to turn autocomplete suggestions polling on and off.
  - Add button for manually refreshing the suggestions.
  - Change buttons to use the EUI classes.
2019-06-18 17:40:20 -07:00
Aaron Caldwell b1911e9269
[File upload] New plugin: file upload (#36404)
* Add file upload x-pack plugin

* Clean up

* Remove unneeded cluster config

* Remove unneeded test

* First pass basic telemetry (not connected).

* Basic telemetry connected

* Review feedback

* Revise telemetry to use savedObjectRepository. Capture metrics on app and file types

* Lots of cleanup, consolidation of logic

* Clean up, reorg

* Update telem tests and telem functions

* Add back import data model

* Clean up and update telemetry tests

* Fix telemetry test issues and update corresponding code

* Up chunk limit to 30 MB

* Add file upload telemetry to saved objects management builder

* Missing space

* Add descriptive comments to dynamic keys in telemetry fields

* [Maps] [File upload] Geojson upload (#36410)

* Client side basics

* File added and default named correctly

* Connect transient layer removal to file import component

* Simplify transient layer removal

* Move file import ui over to new file upload plugin and make more generic

* Add post-processing option to file upload. Make component json-specific

* Add flag for source indexing

* Revise import layer workflow to be separate from add layer workflow

* Differentiate between normal sources and import sources. Add back layer add/next button

* Update indexing boolean in component after file upload & parse

* First pass rough indexing from maps working on specific use cases

* Update parsing logic to handle geojson formats

* Index pattern added following index creation

* Pass onsuccess callback to file_upload to add layer to maps app

* Handle mulltipolygon type in es geo utils

* Add functionality to make es layer permanent and switch to edit panel

* Add to index if exists or create new

* Make plugin API more intuitive. Set up to handle remove action

* Pass transient removal call through to file import

* Clean up layer viewing logic for temp and perm layers

* Remove change source from import screen

* Add option to provide mappings array and pass geo_point and geo_shape to array

* Add support for multiple mappings select and index naming

* Match style of import file button to add layer for now

* Remove duplicate case handling resulting from merge

* Move geo processing logic over to file upload plugin for reuse

* Remove old geo_shape formatting from geo_point code

* Set default index data type. Remove unneeded stringify request logic

* Check for custom processor object which contains function

* Move file picker to separate component

* Some cleaning. Add geojson clean & validate code

* Catch file parsing errors and notify user

* Disable index type if valid file not referenced

* Set error messaging on invalid index name used

* Add index pattern checking logic and error handling

* Dynamically populate geo index options

* Set index data type earlier in the workflow. Don't duplicate requests

* Pass back index ready status from plugin and connect to layer next button

* Increase max bytes to ~50MB

* Don't parse files over max size & warn user. Also, remove toasts and warn similarly to other components

* Uploaded file default label: 'fileToImport' -> 'Import File'

* Expand out feature properties for mapping

* Pass through telemetry data to plugin back-end

* Clean up indexing flow. Separate creation of index patterns. Add new index pattern create callbacks

* Pass back info for indexing failures but don't connect to UI yet

* Fix telemetry test issues and update corresponding code

# Conflicts:
#	x-pack/plugins/file_upload/server/telemetry/telemetry.test.ts

* Add file upload telemetry to saved objects management builder

* Missing space

* Add descriptive comments to dynamic keys in telemetry fields

* Divide up the import layer add workflow on the maps side and tweak to avoid layer color change

* Fix bug affecting file preview replacement not updating coordinate index type

* Remove index pattern. Organize effects. General clean up

* preIndexTransform -> transformDetails

* Update proptypes

* Cleaning, organizing

* Add index name guidelines. Show conditionally

* Add file size, type guidance. Filter on file size, not chunk size. Small tweaks to file/index tips

* Zoom to layer extent on preview of imported data

* Revert "Revise import layer workflow to be separate from add layer workflow"

This reverts commit 3b35f5371d.

* Handle import file determination to accomodate add layer flow. Update card wording

* Decompose addLayer component into smaller pieces. Add placeholder import progress component

* Dynamically change footer button text for context

* Move import card to top of sources

* Get basic progress tracking in place

* Allow second layer (indexed layer) to get removed. Reconnect file remove. Small UI tweaks

* Add link to management for further index mods

* Fix i18n failures

* Add file parsing progress indicator & text

* Reset importView on source reset

* Add dynamic chunking to handle fluctuating data sizes common to geo features

* Don't duplicate index request if request in flight

* Modify json upload and import to use JS classes & react class component state

* Transition remaining file_upload components over to class/component structure with state

* Move functions into index_settings class

* Review feedback

* Add fetch with timeout

* Split out import editor into separate component and clean up logic

* Clean up add layer panel/button title logic

* More cleanup

* Tweaks to success and error handling flow

* Handle success/error handling on add/view indexed data

* Jump to indexing complete on error. Handle nothing returned to client app

* Update name/location of source select css file

* Update import source card border color and icon

* Suggest name for index based upon file name

* Add validation to auto-suggested index name/pattern

* Use constants for geo_point and geo_shape in mappings

* Update geojson upload card/description

* Catch-all review feedback

* Fix internationalization syntax errors

* Review feedback

* Get index names and patterns only when needed

* Make addLayer async again to fix zoom to extent issue, waits on just the async syncDataForLayer function (which is async)

* Remove panel description as derived state and shift to function

* Remove geojson fit to extent for now

* Remove unused class selector

* Remove unneeded i18 wrapper for what's already passed in as an i18 element

* Revise import state to be handle via redux. Some json upload args changes

* Review feedback. Some cleanup and bug fixes

* Roll back store actions changes and layer_addpanel changes related to color change

* Follow scss file naming conventions for source_select

* Review feedback

* Restore clobbered layer_control view to master state. Add source_select css

* Update import to use plugin local indexPatternService, not maps'

* Review feedback, mostly i18n. Also add index to scss path

* i18n translation updates

* Assign error message to values rather than error object

* Update getMapColors to filter out transient layer

* Wrap Feature as FeatureCollection in Maps

* Add jest tests for geo processing functions. Add fixes for single feature handling

* i18n

* Review feedback. Test cleanup/fixes

* Update layer add panel footer logic to still show when source not selected

* Fix issue of not recognizing MultiPoint type. Remove throw logic for now

* Update telemetry with newly required placeholder function

* Prevent external modification of nested geojson objects

* i18n translation updates

* Revert "Fix issue of not recognizing MultiPoint type. Remove throw logic for now"

This reverts commit d692f913f8.

* Revert "Prevent external modification of nested geojson objects"

This reverts commit 0ea9fd3336.

* yarn.lock update

* [File upload] Remove dynamic fields from mappings, code and telemetry test (#38902)

* Remove dynamic fields from mappings, code and telemetry test

* Add file-upload-telemetry to spaces and es archiver test mappings

* Don't create telemetry saved object if none exists, create on first update instead

* Back out es archiver mappings update
2019-06-18 18:32:31 -06:00
Nathan Reese 20bbb9c164
[Maps] add Symbol orientation style property (#39129)
* add UI for symbol orientation styling

* set icon-rotate layout property

* fix jest test with new default style property value

* remove some references to scaled and use styling instead
2019-06-18 18:09:33 -06:00
Todd Kennedy 519eef17b1
[feat] restore headers property (#39206)
* [feat] restore headers property

* add tests

* patch: add headers
2019-06-18 16:12:24 -07:00
Josh Dover b8423952c0
[RFC] ApplicationService mounting (#36477) 2019-06-18 14:32:34 -05:00
Angela Chuang 0bf36ac252
[SIEM] Update Scale types for charts (#38512)
* change Scale types for charts

* update mock data

* add unit test for rendering charts with configs

* add timezone and formatter for charts

* update mock implementation for ui/chrome

* update snapshot
2019-06-19 02:51:26 +08:00