Commit graph

28866 commits

Author SHA1 Message Date
Felix Stürmer 215ac207fa
[Logs UI] Fix index checkbox overlap of the analysis setup dat… (#49489)
This slightly increases the datepicker popover `z-index` to avoid the checkbox labels (which for some reason have an increased `z-index`) from underneath showing through.

fixes #49245
2019-10-29 18:05:40 +01: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
Larry Gregory 8bd0aacc5f
Spaces - fix react hook deps (#49618)
* fix react hook deps

* removing lint override for spaces
2019-10-29 12:54:21 -04:00
Chris Davies ebb494478a
[Lens] Make date histogram interval more customizable (#49217) 2019-10-29 12:48:30 -04:00
John Dorlus f72be334ec
Snapshots title ie11 misalignment (#48802)
* Removed Flexbox around header and link elements.

* Removed unused EUI component

* Added class to include the ellipses when name is truncated.

* Fixed title in policy_details.tsx

* Fixed buttons and title on policy and repository table.

* Linting fixes.

* Removed unused references.

* Added keys to arrays of elements to resolve React errors.
2019-10-29 09:13:13 -07:00
Marta Bondyra 6c4f3cbb5c
chore: point issue links to choose (#49616) 2019-10-29 15:54:27 +01:00
Angela Chuang 529945bf42
fix query id for tls selector (#49540) 2019-10-29 09:22:53 -04: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
Robert Oskamp 75384e1bcd
[ML] Advanced wizard functional UI tests (#49480)
This PR adds tests for the ML advanced wizard.
2019-10-29 13:36:45 +01: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
Marjorie Jones 5e05bbd05f
[DOCs] Rename some instances of Infrastructure to Metrics (#49195)
* Renaming Infrastructure to Metrics whenever the context is the metrics app.

* More renames, and picking up a few stray references to Infrastructure/Metrics/Logs UI too.

* Fixing typo
2019-10-29 11:29:21 +00:00
Peter Pisljar c09e1cd477
use embeddables in visualize editor (#48744) 2019-10-29 12:00:35 +01:00
Felix Stürmer 51df8afd7e
[Logs UI] Fix chart and table state loss due to loading indica… (#49356)
This changes the result loading indicators of the log rate analysis page such that they are rendered as an overlay to the existing panels. This has the advantage that the page layout doesn't jump during the loading process and the charts and table maintain their filter and expansion states.
2019-10-29 11:51:54 +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
Oliver Gupte c3996e293c
[APM] Add UI Indices runtime configuration (#48079)
* Add UI Indices runtime configuration
- index configuration in settings page
- defaults to kibana.yml configuration values

* fix tests

* Code review feedback and cleanup

* fix i18n

* Code review feedback

* Address code review feedback.

* Fixes bug where legacy data filter was including the
.apm-agent-configuration index which caused failures in those APIs
2019-10-28 20:00:53 -07:00
Clint Andrew Hall 13fb20f533
Fix Runtime Download in Cloud (#49538) 2019-10-28 19:46:20 -05: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
Frank Hassanabad a4f37cd9e0
[SIEM] [Detection Engine] Adds filtering abilities to the KQL REST API (#49451)
## Summary

* Removes the older beginner KQL type of signal creation in favor of newer version with filtering
* Adds ability to create KQL or lucene queries that will work with the UI filters
* UI state with the filters are now savable to re-hydrate UI's on the front end
* Adds `saved_id` ability so the UI can tether dynamic saved queries with signals
* Changed `it` to `test` as `it` is not the alias we use for tests 
* Updated script which converts older saved searches to work with newer mechanism
* Fixed script to accept proper ndjson lines
* Adds validation unit tests for the endpoint
* Increases validation strictness of the endpoints
* Adds more data scripts for testing scenarios
* https://github.com/elastic/kibana/issues/47013


## Testing
* Run `./hard_reset.sh` script 
* Test with both algorithms through this toggle before starting kibana:
`export USE_REINDEX_API=true`
* Convert older saved searches to compatible new query filters by running:
`./convert_saved_search_to_signals.sh ~/projects/saved_searches /tmp/signals`
* Post them`./post_signal.sh /tmp/signals/*.json`
* Hard reset again
* Test smaller set of signals and REST endpoints using the typical scripts of:
```sh
./post_signal.sh
./read_signal.sh
./find_signals.sh
./update_signal.sh
./delete_signal.sh
```
or test using POSTMAN, etc... If you want to test validation. If you see any validation issues let me know as I have validation testing files and can easily fix them add another unit test to the growing large collection we have now. 

Change in your advanced settings of SIEM to use your signals index you configured for verification that the signals show up.

### 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-10-28 17:27:39 -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
renovate[bot] 5b375df8e9 Update moment related packages (#46849)
* Update moment related packages

* unify moment version in yarn.lock

* adapt ro pluralization fixes

* update some bad pluralization in fixtures/snapshots
2019-10-28 12:07:35 -07:00
Chris Davies 6d23793489
[Lens] Pass date range to the query bar (#49485) 2019-10-28 15:04:03 -04:00
Ben Skelker e3b6da981b
Fixes title capitalisations (#49445) 2019-10-28 20:26:15 +02: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
Aleh Zasypkin 57efead954
Correctly process paths in map_of and record_of. Do not swallow and use indent for nested one_of error messages. (#49457) 2019-10-28 19:39:48 +02:00
Matthias Wilhelm df2a99631b Fix missing html formatting in Doc_Viewer (#49326)
* Add detection if a value has been formatted, conditional rendering

* Use markup by formatters, it's escaped for dangerouslySetInnerHTML

* Enable dangerouslySetInnerHTML for displaying values

* Use regex for replace
2019-10-28 18:31:20 +01:00
Steph Milovic bd265d72b0
[SIEM] optimize hosts query (#49409) 2019-10-28 12:23:33 -05:00
Tim Roes 15831b289a
Improve "Create new" UI in dashboard (#49189)
* Change create new UI

* Implement review feedback

* Fix types in tests

* Remove obsolete translations

* Remove unnecessary flexbox
2019-10-28 18:12:37 +01:00
patrykkopycinski 93269e58e5
[SIEM] Add Authentications histogram (#48260) 2019-10-28 17:43:14 +01:00
Christiane (Tina) Heiligers c2672aeaa8
Bug fix:Adds a migration for transforming TSVB vis split_filters (#49000)
* Bug fix:Adds a migration for transforming TSVB visualization split_filters from strings to query:language objects to 7.5

* Changes hard coded migration version to get the version number from the saved object's migrationVersion in failing functional test

* Changes migration number from '7.5.0' to '7.4.2', fixes typo, changes test expectations to more explicit ones
2019-10-28 09:42:14 -07:00
Court Ewing 0b82cfeae7
Remove experimental code app (#49404)
* Fix erroneous code plugin import in apm

* Stop running legacy code plugin

* Stop testing code app and apis

* Remove code plugin source and deprecate config

* Remove code plugin docs

* Remove xpack.code translations

* Remove code import on api_integration

* Remove code privilege from security test

* remove two more mentions of code

* remove code es_archives

* remove code doc images
2019-10-28 11:40:27 -04:00
Dmitry Lemeshko d9a5acf971
FTR: clear browser storage between test suites (#48683)
* clear browser storage on test suite completion

* [logstash/pipeline_list] fix tests dependency

* always load new index data
2019-10-28 09:37:34 -04:00
patrykkopycinski d01099778b
[SIEM] Refactor hosts routing (#47459) 2019-10-28 14:16:49 +01:00
Jean-Louis Leysens 49804a2645
[Console] Restore completer behaviour (#49422)
* Restore completer behaviour

* Move ace logic into shim and update getCursor -> getCursorPosition
2019-10-28 13:54:47 +01:00
Maryia Lapata fb903f4f9f
[Vis: Default editor] Unit tests for number list (#48412)
* Add unit tests for number list

* Remove unused dependency

* Fix code review comments

* Refactor NumberList to set model validity in one place
2019-10-28 15:50:39 +03:00
Maryia Lapata 17464f8612
[Vis: Default editor] Fix validation for bounds margin (#48216)
* Fix validation for bounds margin

* Update custom_extents_options.tsx

* Rename isValid property

* Revert boundsMargin type
2019-10-28 15:23:18 +03:00
Shahzad d9d8398fb1
[Uptime] Issue/48845 Disable filter and Add link to location docs when no location exists (#49175)
* disable search text if no item exists

* update snaps
2019-10-28 16:52:33 +05:00
Jean-Louis Leysens f868fa66fa
[Console][Legacy Editor] Ace Range implementation not being used (#49352)
* Use ace Range implementation, not interface, for instantiating

* Add simple smoke test for use of Ace ranges

* Update test title
2019-10-28 11:47:59 +01:00
Marjorie Jones cbe6fd3e3d
[DOCS] Changes to support the split of the Metrics Guide and the Logs Guide (#48633)
* Linking to new Metrics and Logs documents

* Linking to new Metrics and Logs documents
2019-10-28 09:39:53 +00:00
Liza Katz 6bb30e7190
Allow plugins to register top nav menu items (regression fix) (#48542)
* Move top nav menu to its own plugin
Allow registering additional options from other plugins
Added demo plugin

* Added functional test to validate top nav registration

* Improved names

* Rename array

* Fixed lens tests

* Deleted old NavBarExtensionsRegistryProvider

* Fixed top nav menu test

* Attempt fixing test by clearing ui_actions on stop

* temporary disable test
2019-10-28 10:40:21 +02:00
patrykkopycinski 795d1caa5a
[SIEM] Fix host details page redirect (#48720) 2019-10-27 06:23:51 -07:00
Dmitry Lemeshko f9b0a46dfd
[kbn-expect] add optional error message (#48895)
* [kbn-expect] add optional error message

* review feedback: replace error message with provided one

* add optional message for contain/string
2019-10-26 15:51:45 +02:00
Catherine Liu 9482ba5765
Fixed typo in formatnumber example (#49379) 2019-10-26 06:25:09 -07:00
Nick Peihl 3e89cb54de
Remove mapping type from example url (#49425) 2019-10-25 17:35:16 -07:00
Mikhail Shustov 11d3445b5d
watch ignores resolved to plugins internals (#48629) 2019-10-26 02:06:50 +02:00
Justin Kambic e7d82f29d9
[Uptime] Do not drop edge buckets (#48157)
* Checkpoint first uptime bucket

* Add code to specify interval for histogram chart, delete obsolete formatting code.

* Revert file to master version.

* Update usages of modified helper function.

* Delete obslete snapshot.

* Modify outdated tests and refresh snapshots.

* Update API test fixtures and several tests to avoid flakiness.

* Remove unneeded size field.

* Rename a type.

* Split concerns to two separate functions.

* Update chart formatting label stops and casing to fit latest charts.

* Remove addition of interval to x domain.

* Update tests to accommodate new changes.
2019-10-25 18:42:31 -04:00
renovate[bot] dba5481181 Update dependency @elastic/charts to ^13.5.9 (#49390) 2019-10-25 17:22:34 -05:00
Michael Marcialis 7003c2c6d6
[SIEM] Map Docs Link & Intrinsic Ratios (#49267)
* rough out markup and intrinsic ratio poc

* reorganize comps

* media queries for aspect ratios

* disable ratio when error; add translations

* unit tests, translations & cleanup

* update copy per ben’s suggestions

* snapshots and translations

* move paddingSize prop inline

* change panel selector

* fix FormattedMessage id

* update snapshots
2019-10-25 17:43:10 -04:00