Commit graph

28808 commits

Author SHA1 Message Date
Dario Gieselaar
f317c25852
[APM] Use callWithInternalUser for agent configuration endpoin… (#50211)
* [APM] Use callWithInternalUser for agent configuration endpoints

Closes #50050.

* Review feedback

* Use internalClient for agent conf queries only
2019-11-13 15:42:46 +01:00
Corey Robertson
7bb968c554
[Canvas] Fix incompatible ie11 method (#50007)
* Fix incompatible ie11 method

* Comment about origin of polyfill
2019-11-13 08:59:50 -05:00
Artyom Gospodarsky
3a2e865b2f
Move mockFields and mockIndexPatterns to relevant directories (#50012)
* Move mockFields and mockIndexPatterns to relevant directories

* Restructure stubs store

* Remove test code from production files

* Restructure stubs store
2019-11-13 17:26:30 +04:00
James Gowdy
167dd7f5a0
[ML] Server info service refactor (#50302)
* [ML] Server info service refactor

* removing new job defaults

* changes based on review

* renaming all ml server info getter functions

* missed a file
2019-11-13 11:05:49 +00:00
Pierre Gayvallet
e6ea2bf16b
Remove internal platform types exports (#50427)
* remove exports of internal core types

* updates documentation

* rename internal types file
2019-11-13 09:30:38 +01:00
Dario Gieselaar
6c3ee583c8
[APM] Document apm_oss.metricsIndices and `apm_oss.sourcemap… (#50312)
Closes #49847.
2019-11-13 08:54:18 +01:00
Ahmad Bamieh
35a5b770d3
[Telemetry] Server side fetcher (#50015)
* initial push

* self code review

* ignore node-fetch type

* usageFetcher api

* user agent metric

* telemetry plugin collector

* remove extra unused method

* remove unused import

* type check

* fix collections tests

* pass kfetch as dep

* add ui metrics integration test for user agent

* dont start ui metrics when not authenticated

* user agent count always 1

* fix broken ui-metric integration tests

* try using config.get

* avoid fetching configs if sending

* type unknown -> string

* check if fetcher is causing the issue

* disable ui_metric from functional tests

* enable ui_metric back again

* ignore keyword above 256

* check requesting app first

* clean up after all the debugging :)

* fix tests

* always return 200 for ui metric reporting

* remove boom import

* logout after removing role/user

* undo some changes in tests

* inside try catch

* prevent potential race conditions in priorities with =

* use snake_case for telemetry plugin collection

* usageFetcher -> sendUsageFrom

* more replacements

* remove extra unused route

* config() -> config

* Update src/legacy/core_plugins/telemetry/index.ts

Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>

* Update src/legacy/core_plugins/ui_metric/server/routes/api/ui_metric.ts

Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>

* config() -> config

* fix SO update logic given the current changes

* fix opt in check

* triple check

* check for non boolean

* take into account older settings

* import TelemetryOptInProvider

* update test case
2019-11-13 09:18:57 +02:00
Xavier Mouligneau
59e0a1cba1
[SIEM] Detection engine placeholders (#50220)
* attempt at getting nav working

* fix detection-engine href redirect issue

* rough out basic page routing

* kql placeholder

* update page and panel headers

* rough out card table poc styles

* change HeaderPanel to HeaderSection

* cleanup and unit test updates

* rough out utilityBar poc

* clean up UtilityBar naming and styles

* support popovers in utility bar

* refactor icon side

* UtilityBar unit tests

* remove page tests for now

* adjust routes

* add comment

* cleanup chart

* open/closed signals content toggle

* remove EuiFilterButton icons

* fix misaligned popover button

* add split prop for HeaderSection

* fleshing out activity monitor table

* update global header to include logo

* fix tests

* correct table types; thanks Garrett!

* LinkIcon comp poc

* fix bugs, errors, tests

* rm import

* table cleanup

* correct merge errors

* switch All Rules to EuiBasicTable

* expand table types and values

* fleshing out all rules table

* rough out rule details

* move chart to separate comp

* update supplement layout

* example rule fail

* switch to new discover-style search

* add ProgressInline comp

* update unit tests and snapshots

* cleanup

* correct merge weirdness

* move text styles to all subtitle items

* correct invalid nav markup; update tests; cleanup

* fix console errors

* add empty page

* change to EuiButtonEmpty in HeaderGlobal

* overflow popover

* rough out edit layout

* new WrapperPage comp POC

* cleanup

* var for timeline gutter

* tests and snapshots update

* fix type + review + re-arrange code

* adding feature flag + fix route issue

* fix type with unit test

* Removing unused translation
2019-11-12 20:54:31 -05:00
Shahzad
9c38e3ef31
[Uptime] Donut chart loader position centered vertically (#50219)
* added height for snapshot como

* added constant for height
2019-11-13 02:25:08 +01:00
Patrick Mueller
2c49ce74b8
update telemetry banner notice text (#50403)
Simplifies the telemetry banner for customers.
2019-11-12 18:17:23 -05:00
Lukas Olson
573f99054a
Fix aborting when searching without batching (#49966) 2019-11-12 15:16:48 -07:00
Joel Griffith
fada20d523
[Telemetry] Remove telemetry splash page and add conditional messaging (#50189)
* Removing tel splash page in UI layer

* Removing more components

* New disclaimer text

* Removing telemetry i18n text

* More i18n text removals

* Snapshot updates

* Snapshot tests + quick links for tel opt-out when possible

* Fixing TS issues in test
2019-11-12 13:47:40 -08:00
Joe Reuter
5c6eb9c6ce Revert chromedriver update (#50324)
* 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

* Revert "update chromedriver dependency to v78 (#49737)"

This reverts commit 4a696b939a.
2019-11-12 15:30:55 -06:00
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
Nathan Reese
aa638895ee
[Maps] add settings to maps telemetry (#50161) 2019-11-12 10:25:58 -07:00
Peter Pisljar
253a10696c
remove visualize loader (#46910) 2019-11-12 09:43:51 -05:00
patrykkopycinski
4feb783413
Fix misuse of react-router and react-router-dom (#50120) 2019-11-12 15:33:54 +01: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
Dima Arnautov
b9a43a1788
[ML] Stats bar for data frame analytics (#49464)
* [ML] stats for analytics jobs

* [ML] alight stats position

* [ML] refactor getAnalyticFactory, remove analytics stats bar component

* [ML] align layout for anomaly detection

* [ML] align layout

* [ML] show failed jobs count

* [ML] Anomaly detection jobs header

* [ML] test

* [ML] fix action columns

* [ML] add type for createAnalyticsForm

* [ML] move page title, prettier formatting
2019-11-12 13:42:23 +01:00
Robert Oskamp
d00be3438c
[ML] Make navigation in tests more stable (#50132)
This PR fixes the ML navigation.
2019-11-12 06:04:50 -05: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
renovate[bot]
1930691e4d Update dependency @elastic/charts to v14 (#49947) 2019-11-12 04:32:50 -05:00
James Gowdy
0e3237e03a
[ML] Adding cloud specific ML node warning (#50139)
* [ML] Adding cloud specific ML node warning

* fixing include

* adding callout and cloud checks

* fixing translations

* removing positive look behind in regex
2019-11-12 09:03:27 +00:00
Clint Andrew Hall
468dff72e8 Fixing bugs in the Shareable Runtime (#49965)
* Fixing bugs in the Shareable Runtime

* Updating snapshots
2019-11-11 20:32:14 -05:00
Justin Kambic
b661d1d9e1
Revert router base name for Uptime plugin to use hash in default path. (#50095) 2019-11-11 19:02:57 -05: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
Nathan Reese
9fdbf82ab3
[skip-ci] Replace coordinate map in Kibana getting started docs with Maps (#50167)
* [Maps] replace coordinate map with Elastic Maps in Kibana getting started docs

* update dashboard getting started page

* update screen shot

* Update docs/getting-started/tutorial-visualizing.asciidoc

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

* review feedback

* update dashboard instructions to include step to set time fitler

* clean up more instances for vector style

* review feedback
2019-11-11 15:34:45 -07:00
Dima Arnautov
538d4864b9
[ML] Indicate missing required privileges for import in File Data Viz (#50147)
* [ML] show a tooltip which indicates missing required privileges for data import

* [ML] fix export

* [ML] PR comments
2019-11-11 22:58:20 +01:00
Frank Hassanabad
ab5f411753
[SIEM][Detection Engine] Removes technical debt and minor bug fixes (#50111)
## Summary

* Removes technical debt of name being in the params now that the regular alerting has name as a first class citizen.
* Only creates new signals on an update if it sees that saved objects return 404
* Changes the conversion script of saved searches to rules to be every 5 minutes for tests.
* Changes the logger levels to be mostly quiet by using debug instead of info.
* Small fixes for when we return false for errors on 0 found signals when that is not an error. 
* Added a delete all api keys for more cleanups when developing 

For testing things on the backend this is the `kibana.dev.yml` settings I use for this PR which enables the siem debug but filters out the others and enables additional request information for testing:

```yml
logging.verbose: true
logging.events:
  {
    log: ['siem', 'info', 'warning', 'error', 'fatal'],
    request: ['info', 'warning', 'error', 'fatal'],
    error: '*',
    ops: __no-ops__,
  }
```

### 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~~

- [x] [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-11-11 13:02:09 -05:00
Joe Reuter
cbad2beea9
[Graph] Remove inferred edges leftover code (#50006) 2019-11-11 16:03:31 +01:00
Jean-Louis Leysens
0491589d50
[SearchProfiler] Fix console error message when umounting (#50105)
* Safer access of input ref

* Remove unnecessary "!" [skip ci]
2019-11-11 09:42:36 -05:00
Robert Oskamp
e2d3c87269
[ML] Skip advanced wizard categorization test (#50141) 2019-11-11 09:33:20 -05: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
Dario Gieselaar
15f2ebcdb8
[APM] Script optimization of APM-specific tsconfig (#49868)
* [APM] Script optimization of APM-specific tsconfig

* Don't break bootstrap process

* Document TS optimizations
2019-11-11 14:35:29 +01:00
Maja Grubic
8f6c41f268
[Discover] Close filter popup on click outside (#49934) 2019-11-11 13:11:15 +00:00
István Zoltán Szabó
4860c055e1
[DOCS] Fixes typo in ML related privileges. (#50142) 2019-11-11 07:44:37 -05:00
Søren Louv-Jansen
d86b6c7288
[APM] Add _debug=true to APM docs (#50093)
* [APM] Add `_debug=true` to APM docs

* Fix typo
2019-11-10 21:28:49 +01: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
spalger
78e9d93268 skip flaky suite (#50079) (#50074) (#48709) (#50078) 2019-11-08 09:59:48 -05: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
Andrew Cholakian
cd94184f86
[Uptime] Use EuiSelect instead of ComboBox for ping history (#49700)
Use EuiSelect instead of ComboBox for ping history

Resolves elastic/uptime#98
2019-11-07 18:24:38 -05:00
Tiago Costa
a014241a3c
fix(NA): correctly reference babel plugin into the node babel preset (#50090) 2019-11-07 17:25:00 -05:00
Chris Cowan
bca4e01cf3
[Metrics UI] Fixing Outbound Traffic metric for Inventory View (#49986) 2019-11-07 10:48:59 -08: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