Commit graph

26514 commits

Author SHA1 Message Date
Mikhail Shustov
3f728334d0
AuthResultData configures response headers (#41775)
* extend AuthResultData with response headers

* add tests

* update docs

* rename headers --> requestHeaders to clarify intention

* update docs

* address comments
2019-07-25 07:40:59 +02:00
Oliver Gupte
b74f9312ff
[APM] Remove dependency on ui/chrome in favor of newer core APIs (#41868)
* [APM] Remove dependency on ui/chrome in favor of newer core APIs

* [APM] fix broken tests by mocking useCore hook
2019-07-24 21:22:14 -07:00
CJ Cenizal
d4d8e157d1
Fix minor Console regressions introduced during EUIfication. (#41089)
- Snakecase help_example.txt filename.
- Hide polling options when no autocomplete options are selected.
- Apply className to settings modal so its width doesn't change when the polling options are hidden.
- Only fetch changed autocomplete settings when modal is saved.
2019-07-24 20:48:34 -07:00
WangQianliang
f4b4ca73c3
fix(code/frontend): should not fetch unnecessary data in source view page (#41334) 2019-07-25 09:30:14 +08:00
Patrick Mueller
ab6aca2f1b
Adds index action as built-in action (#41592)
* Adds index action as built-in action

* resolve PR comments

- moved `nullableType` to a module so it can be reused across action types
- changed index action param `body` to `documents`, and it's no longer an
  object or array, it's only an array
- rename index action param `execution_time_field` to `executionTimeField`
- remove index action param `doc_id` as it's no longer relevant (only useful
  in the single document story previously)
2019-07-24 17:45:15 -04:00
Mike Place
eaaedd4f07
Break out beats modules by type in telemetry (#34695)
* Break out beats modules by type in telemetry (rebase)

* Test fix
2019-07-24 21:05:20 +00:00
Mikhail Shustov
9601eff437
Validate route schema as a static property (#41652)
* declare validate as static object instead of factory

* add context for route validation errors

* update docs

* add check for valid schema

* address comments
2019-07-24 21:18:56 +02:00
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