Commit graph

26507 commits

Author SHA1 Message Date
Mikhail Shustov
af4bc62954
Route handler interface (#39767)
* route handler rfc

* Update 0005_route_handler.md

* Update 0005_route_handler.md

* typings

* address comments

- headers are strings
- generic --> custom
- add responseError factory

* specify data types. remove confused comment

* update link
2019-07-24 20:29:29 +02:00
Michael Marcialis
74a7dee455
[SIEM] Table Widget Loading Tweaks (#41596)
* add new loader comp

* update load more and paginated tables with new load comp

* remove loadingTitle prop

* add loader to anomalies tables

* fix condition

* add test

* correct inspect button position

* add background prop

* add loader to host and ip details overviews

* update tests and snapshots

* rm unused import

* wip -> when table is loading the first time

* apply xavier’s fix for initial loading state

* rename isEmptyTable to loadingInitial

* possible solution for initial load on anomaly tables

* resolve conflicts

* updating tests

* correct conditionals & enhance loader for future

* make header supplements conditional

* rm unused imports

* change “Rows” to “Rows per page”

* fix row select font size, margin & shift load more

* sentence case for load more button

* correct unused or misnamed translations

* fix tests

* move state hook to useEffect

* move loader to index

* update snapshots

* better translations ids, per xavier

* proper camel case for data-test-subj

* correct console errors per frank

* account for potential -1 count during loading
2019-07-24 14:15:44 -04:00
Melissa Alvarez
141de6cfbd
[ML] Data Frames - KQL bar for querying source data in creation wizard (#41779)
* add kql bar to df wizard

* update kqlFilterBar to be more generic

* update kqlFilterBar snapshot

* remove unecessary check

* wip: update placeholder for kql searchbar in wizard

* update source query in stepState for use in next step

* ensure transform config uses searchQuery on create

* remove unnecessary translation

* upate tests

* update search to searchString for clarity

* add missing translation for explorer bar placeholder

* add translation back in
2019-07-24 13:47:02 -04:00
Thomas Neirynck
5e47011f2b
[Maps] Fix source prefix parsing (#41808) 2019-07-24 12:35:43 -04:00
Lisa Cawley
1058eaf562
[DOCS] Clarifies xpack.security.enabled setting (#41904) 2019-07-24 09:29:11 -07:00
gchaps
f1ca9b50e6
[DOCS] Updates images and adds example to rollup jobs doc (#41839)
* [DOCS] Updates images and adds example to rollup jobs doc

* [DOCS] Edits to rollup text
2019-07-24 08:16:03 -07:00
Mike Côté
3dc4595d6b
Allow migrator to run a reindex script when converting an index to an alias (#41815)
* Allow migrator to run a reindex script when converting an index to an alias

* Apply PR feedback
2019-07-24 10:24:04 -04:00
James Gowdy
c5e553e547
[ML] Fixing basic license redirect (#41876)
* [ML] Fixing basic license redirect

* removing license check for basic features

* adding comments
2019-07-24 14:53:45 +01:00
Jean-Louis Leysens
1fff2d1af0
[Rollup] Fix rendering undefined from job status map (#41438)
* Updated JobStatus' status mapper to handle unknown strings
Added data to test case to ensure that the components using JobStatus can still render with unknown states

* Fixed unnecessary formatting changes and added translation for unknown label JP

* Added Chinese translation for unknown

* Added unknown status spec

* Remove manual addition of translation
2019-07-24 15:25:58 +02:00
Jean-Louis Leysens
01b4169b59
[Rollup] Option to start rollup job right after it gets created (#41573)
* First pass at new start-on-create feature with error handling

* Added tests and did a minor naming refactor for tests

* Combine job create review tests into one file, following steps performed: 1) correctly mock out http requests 2) increase the wait time given the 500ms sleep

* Go with potentially incorrect pluralisation for now

* Use JS paramter default

* Simplify on click event listener

* Cleanup use of lodash imports, fix spec after change to event listener, make code a bit more defensive

* Remove unnecessary span

* Updated checkbox copy

* Moved start after create checkbox to immediate right of start button

* Update checkbox vertical alignment
2019-07-24 15:24:21 +02:00
Daniil Suleiman
ef5af4ce66
[Vis: Default editor] Create vis_options_react_wrapper (#41746)
* Add vis_options_react_wrapper

* Update jest tests

* Fix plugin functional test
2019-07-24 16:20:23 +03:00
Court Ewing
9950b39cf9
[csp] reject legacy browsers by default (#41700)
* [csp] reject legacy browsers by default

The csp.strict config is now enabled by default, so legacy browsers like
IE11 will not be able to access Kibana unless the deployment has
explicitly enabled it.

* docs: csp.strict breaking change
2019-07-24 09:16:52 -04:00
Vitali Haradkou
d8e9d2a7ca
[TSVB] [UNIT] Add tests for ColorPicker component (#40868)
* add tests for ColorPicker component
* update component i18n usage
2019-07-24 16:13:10 +03:00
Xavier Mouligneau
a6ab21094a
[SIEM] Timeline NOT working with unauthorized (#41767)
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
2019-07-24 11:41:11 +02:00
Jean-Louis Leysens
89aa6ac5ad
[SearchProfiler] Parse triple quotes JSON in SearchProfiler editor (#41282)
* Initial pass at introducing XJsonWorker for searchprofiler app:

- Added some copy pasted logic from console (json rules)
- Copied and modified brace's json worker/parser. Added the ability to take """
- Updated existing controller and logic to work with new files

* Added comment

* Fixed type worker.js type issue
Added some more clarifying comments

* semi-colon

* Brought OO inheritance more in line with what ace expects (no `class`)
Added tests

* Clarify ts module declaration for raw loaded worker.js file

* Minor refactor

* Added comment

* Added safe apply mechanism to notify ng about changes to editor content
2019-07-24 10:30:58 +02:00
Liza Katz
87226e8d09
Use index patterns service inside data plugin (rather than importing from ui/public) (#41639)
* Use index patterns from data plugin itself instead of importing from ui/public

* Added mocks to field editor util tests
2019-07-24 11:17:35 +03:00
Alexey Antonov
1ba5a629a3
[Table Vis] Shim new platform (#40732)
* [Table Vis] Shim new platform

* fix mocha tests

* fix mocha tests

* fix _agg_config test

* cleanup

* remove setup.ts

* Set the correct type for the "Data" dependency
2019-07-24 10:58:07 +03:00
Kerry Gallagher
5e267208de [Logs UI] Allow for jumping to the previous and next highlight (#40010)
This PR adds buttons to the highlighting popover that allow for jumping to the previous and next highlights. The intended user experience should be close to the "find" experience of many text editors.
2019-07-24 09:56:39 +02:00
Alexey Antonov
b5fff514de
[Tile Map] Shim new Platform (#41265)
* [Table Vis] Shim new platform

* cleanup

* Set the correct type for the "Data" dependency
2019-07-24 10:55:01 +03:00
Alexey Antonov
119ac5f579
[Vega] Shim new platform - cleanup (#41750) 2019-07-24 10:54:04 +03:00
Liza Katz
17ad42f857
Filtering on a search cell first inclusive then exclusive gives bad results - #39802 (#41754)
* Resolves #39802

* Fixed tests that didn't detect the bug

* Don't expose filter manager's filters, but a copy.

* getPartitionedFilters to use getFilters (for clone)

* Adjust filter gen tests to invert filters now calling addFilters

* remove invertFilter method
2019-07-24 09:08:01 +03:00
Meir Meshi
db07f13253 Ensure visualizations in percentage mode respect the advanced settings percent format (#39044) 2019-07-23 23:47:27 -06:00
WangQianliang
735ea84870
fix(code/frontend): fix directory list margin (#41850) 2019-07-24 13:41:51 +08:00
Liza Katz
de9d823ad4 Fix autorefresh in visualize editor (#41657) 2019-07-23 22:34:49 -06:00
Yang Yang
193c1a20e7
[Code] Support case insensitive repository uri in files Apis and LSP requests (#41665)
* [Code] Support case insensitive repository uri in files Apis and LSP requests.

Use the original repository uri stored in the meta object corresponding to the given uri
rather than the given uri directly.

* [Code] refined returned type of getRepoUriFromMeta
2019-07-24 11:27:25 +08:00
Jen Huang
041b7dcdbe
[SR] Add SLM policies list and detail views (#41302)
* Add new Policies tab

* Allow config to be passed to common callWithRequestFactory

* Add endpoints to retrieve slm policy(ies)

* add typing and deserialization for policy last success and failure details

* add policy list table

* add basic policy details, link to repository and filtered snapshots

* Add policy details view

* Convert hardcoded links to use navigation service

* link to policy details from snapshot details and change snapshot table filtering logic to exact match

* Address PR feedback
2019-07-23 19:56:12 -07:00
Frank Hassanabad
12ea61ef08
[SIEM] Change string of "Top Anomaly Suspect" to "Anomalous Entity" (#41729)
## Summary

Change the string of "Top Anomaly Suspect" to "Anomalous Entity"

Before:
<img width="518" alt="Screen Shot 2019-07-22 at 7 57 55 PM" src="https://user-images.githubusercontent.com/1151048/61677232-09d08380-acbc-11e9-94dd-ab8fb123d446.png">

After:
<img width="512" alt="Screen Shot 2019-07-22 at 8 01 54 PM" src="https://user-images.githubusercontent.com/1151048/61677239-0e953780-acbc-11e9-95d2-3c7854ef34af.png">

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

~~- [ ] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~~

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

~~- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
2019-07-23 20:44:20 -06:00
dave.snider@gmail.com
c2b926e2e7
EUI 13.0.0 (#41723) 2019-07-23 15:09:16 -07:00
Patrick Mueller
23b46f98ff
Convert alert params schema from joi to config-schema (#41801)
This makes alerts and actions use the same mechanism for registering type
validators; using `@kbn/config-schema` instead of `joi`.
2019-07-23 15:36:00 -04:00
Nathan Reese
aba38ee5a9
[Maps] refactor filter actions to use embeddable actions (#41713)
* [Maps] refactor filters to use filter actions

* remove isFilterable from redux state

* more removal of set filterable
2019-07-23 13:28:47 -06:00
Justin Kambic
9a880544bd
[Uptime] Improve useUrlParams hook for Uptime app (#41545)
* WIP moving things around.

* Refactor useUrlParams hook and usages in Uptime app.

* Add unit test for new url params hook.

* Update test snapshots.

* Resolving some issues.

* Add ReactRouter objects to RefreshContext.

* Update url helper and context to better handle cases, simplify hook.

* Add tests for helper function.

* Update url params hook unit tests.

* Replace outdated snapshot.
2019-07-23 15:16:39 -04:00
Nathan Reese
b361d71391
[Maps] clean up tooltip header and footer (#41793) 2019-07-23 13:06:09 -06:00
gchaps
751f2ee2e6
[DOCS] Updates Console doc (#41371)
* [DOCS] Updates Console doc

* [DOCS] Incorporates comments on Console docs

* [DOCS] Updated Console images
2019-07-23 10:58:45 -07:00
Steph Milovic
2a86036293
[SIEM] - Hosts and Network Tables from LoadMore to Paginated (#41532) 2019-07-23 11:41:32 -06:00
gchaps
1ba93c0936
[DOCS] Puts Spaces content on single page (#41536)
* [DOCS] Puts Spaces content on single page

* [DOCS] Incorporates review comments

* [DOCS] Incorporated review comments
2019-07-23 10:25:17 -07:00
Jason Rhodes
526494ac24
Fixes #41787 (#41791) 2019-07-23 13:22:39 -04:00
Steph Milovic
1721b4114f
[SIEM] - Fix Jest test errors and warnings (#41712) 2019-07-23 11:13:59 -06:00
Spencer
9f516d6545 Revert "lock es snapshot to avoid failing CI" (#41539)
This reverts commit 4eca0f3383.
2019-07-23 09:58:12 -07:00
Tim Roes
e1bc154478
GoodBye Notifier (#41663)
* Begin notifier removal

* Remove remaining notifier traces

* Remove dead translations

* Remove Angular from config listener

* Import angular-sanitize explicitly in map
2019-07-23 18:26:50 +02:00
Stacey Gammon
a6fd0c3e2f
turn on filtering tests (#41202)
* turn on filtering tests

* run x-pack-firefoxSmoke ciGroup 40 times, run dashboard tests 20 times per job

* Revert "run x-pack-firefoxSmoke ciGroup 40 times, run dashboard tests 20 times per job"

This reverts commit 5ef02cc53ba5085c3f74431cb6ef20be2d876cde.
2019-07-23 12:18:33 -04:00
Thomas Neirynck
c43f90f050
Fix typo (#41705) 2019-07-23 12:03:37 -04:00
Flexmonster Pivot Table
ac141ea1fd Added Flexmonster Pivot Table to known plugins list (#41655)
* Add Flexmonster Pivot Table to known plugins list

* Update docs/plugins/known-plugins.asciidoc

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
2019-07-23 11:49:45 -04:00
Joe Reuter
f80ff8fd5d
replace all occurences of placeholder in drilldown url template (#41673) 2019-07-23 16:02:37 +02:00
Ahmad Bamieh
9d7cf53eba
[telemetry] Analytics Package (#41113)
* kbn-analytics

* kbn-analytics

* expose provider

* add logger

* performance and stats reporters

* finalize ui stats metric

* functional tests

* remove readme file for now

* update readme

* add types file into to tsconfigs

* Update packages/kbn-analytics/src/report.ts

Co-Authored-By: Josh Dover <me@joshdover.com>

* fix typechecks

* use enum instead of strings for metric types

* getUiStatsReporter -> createUiStatsReporter

* fix special typo in README

* remove unused stop method

* fix tests

* default debug to false

* use chrome.getInjected

* add METRIC_TYPE to jest module mocks

* mock create fn

* handle enabled:false

* init ui_metric in test setup env

* regenerator runtime

* transform-regenerator

* update lock file

* update babel configs

* runtime dep

* add regenerator

* babel configs

* use env-preset

* merge conflicts

* fix workpad telemetry tests

* regeneratorRuntime attempt to fix number 30000

* env targets

* remove module config

* try again

* try without regenerator

* use kbn/babel-preset/webpack_preset only

* runtime

* just use typescript

* update tsconfig

* Caches trackers by app value for infra useTrackMetric hook
2019-07-23 15:46:56 +03:00
Walter Rafelsberger
f766eca04a
[ML] Use NavigationMenu without angularjs wrapper. (#41343)
Follow up to #40830 and #41054 in preparation for single metric viewer migration.
The previous PR introduced the navigation menu as a React component. This PR moves dependencies down from the angularjs wrapper directive directly to the React component so the component can also be used stand-alone without the angularjs wrapper.
For simple angularjs based HTML templates this stand-alone usage is also part of this PR. Unfortunately the PR turned out to be quite big due to: Most page react components had to be wrapped in another <Fragment> to allow the addition of <NavigationMenu> thus leading to large diffs for the components. All component code inside the <Fragment> was not touched though.
2019-07-23 14:42:19 +02:00
Liza Katz
623b70d511
Clean up top nav \ search bar \ query bar directives (#41636)
* Move timepicker (to be deprecated) into old kbn_top_nav

* Deleted search-bar and query-bar directives!

* moved search bar to kibana_react (it's a generic react component, not a service)

* translations

* Moved superDatePicker directive to kbn_top_nav (to be deprecated)
Deleted unused react_component directives call-out and tool-bar-search-box

* TS test fix

* Delete relative options
2019-07-23 15:31:09 +03:00
Aleh Zasypkin
6848a985c6
Add ownership of new platform security plugin to security team. (#41748) 2019-07-23 13:40:33 +02:00
Ahmad Bamieh
131e4c24c3
[i18n] fix i18nrc parsing (#41741)
* check for translations in file

* update template
2019-07-23 14:31:37 +03:00
Pete Harverson
2eb25c2b1d
[ML] Fixes model memory limit for metricbeat system module jobs (#41747) 2019-07-23 11:53:31 +01:00
Felix Stürmer
6ce30ffa0c
Comment out flakey test steps (#41743)
This comments out the problematic portions of the functional test, which caused #41717 to occur.
2019-07-23 11:51:33 +02:00