Commit graph

28220 commits

Author SHA1 Message Date
renovate[bot] 2fe45dce75 Update dependency backport to v4.7.3 (#48021) 2019-10-12 20:01:20 -07:00
Christiane (Tina) Heiligers 3476b19332
[Saved Queries] Saved query list pagination (#47646)
* modifies getAllSavedQueries to return the total count along with the saved queries requested for the page parameters provided. Sets defaults to 'perPage' and 'activePage' parameters for getAllSavedQueries

* Separates out getting the total number of saved queries from the call to get all saved queries

* Adds unit tests for getSavedQueryCount and getAllSavedQueries

* Uses findSavedQueries with pagination to fetch saved queries for a current page

* renames functions

* Updates saved_query_service_tests

* Removes exposed perPage and page parameters from getAllSavedQueries, fetching the total saved query count internally

* Deletes extra call to fetch the saved query count

* Saved query management component can only use the savedQueryService only once mounted. The initial async functions were running outside of effects

* Changes undefined to empty string in first argument to findSavedQueries
2019-10-11 16:56:50 -07:00
Nathan Reese f8d6b4c3ed
[Maps] Increase tooltip max width and move feature pagination controls to top of tooltip (#47645)
* [Maps] wider tooltips

* move all pagination state to header

* move jest tests to TooltipHeader test file

* update snapshots

* clean up

* more cleanup

* fix regression for creating filters

* fix scss import
2019-10-11 16:40:54 -06:00
Poff Poffenberger d399103c0c
[Canvas] i18n for Expression Input editor (#47767)
* i18n for expression input reference component

* wip

* Better i18n for expression input

* Add bold markdown token into the constants
2019-10-11 17:09:55 -05:00
Brandon Kobel 9235db5ff7
Reenabling the privileges test, and removing the includeActions test (#48027)
* Reenabling the privileges test, and skipping the one that includes
actions

* Making the security team the codeowner
2019-10-11 15:02:53 -07:00
Justin Kambic f0e450649d
[Uptime] Add Donut chart (#47176)
* Add donut chart.

* Merge donut chart with snapshot histogram panel.

* Update broken test snapshot.

* Undo removal of gray color from histogram chart.

* Use proper color values for donut chart and legend.

* Move donut chart to charts directory.

* Add snapshot tests for new chart components.

* Merge donut chart with snapshot histogram panel.

* Revert d3 version.

* Revert yarn.lock.

* Revert code to be compatible with older d3 version.

* Delete duplicated files.

* Clean up code.

* Improve const names.

* Update outdated snapshots.

* Fix broken type.

* Simplify function, add comment.

* Remove unused translations.

* Fix broken chart component.

* Implement designer feedback.

* Fix regression.

* Implement additional designer feedback.

* Fix issue that caused residual paths to remain on subsequent paints of donut chart.

* Update obsolete test snapshots.

* Revert yarn.lock.

* Rename repurposed translation.

* Delete obsolete translations.

* Update busted test snapshot.
2019-10-11 17:14:02 -04:00
Matt Bargar 22e6d3dfdd
Fixes an issue in Discover where an unsubmitted change to the query (#47908)
I believe the cause of this issue is that we weren't saving the app state after updating it from the saved query. So the new query would be in memory but not in the URL. Something would cause the old app state to get read from the URL and override the changes. Simply adding a call to state.save after changing the query in app state seems to have solved it.

Visualize didn't have this issue, but I'm guessing there was nothing causing the old state to be read from the URL. So I applied this fix to Visualize as well to avoid any issues in the future.
2019-10-11 17:01:22 -04:00
Nik Everett 5ea66df44d
Docs: Fixup deprecation for asciidoctor (#48018)
Asciidoctor sees `,` as the edge of parameters and chokes on one of our
deprecation warnings, rendering funny looking garbage. This wraps the
whole parameter in `"` which makes it look good. It *does* add `"`s
around the result in AsciiDoc, but we plan to migrate from AsciiDoc
"real soon now".
2019-10-11 15:56:52 -04:00
Dima Arnautov f500f4139a
[ML] Check unsaved changes for Job edit form (#47926)
* [ML] confirmation modal for closing a job flyout with unsaved changes

* [ML] fix onClose callback

* [ML] change modal behaviour

* [ML] check form changes before closing
2019-10-11 19:53:51 +02:00
Mengwei Ding 9957026e2a
[Code] Fix new platform configs (#47881)
* [Code] Fix new platform configs

* fix path
2019-10-11 10:38:16 -07:00
Chris Roberson 867acbbf15
[Monitoring] Fix time filter woes (#47486)
* Fix time filter woes and add tests

* Fix up tests and fix loading states for non ssp tables

* Only add onChange if searching is enabled

* Replace missing function
2019-10-11 13:21:25 -04:00
Clint Andrew Hall 27cbdf5f50
[feature][Canvas] Share Workpads in other Websites (#46278)
* [Canvas] Embedding Workpads in other Websites (#42545)

* Testing for Workpad Snapshots

* Rename Snapshots to Shareables; update documentation. (#46513)

* [canvas][shareables] Add Localization + Tweaks (#46632)

* Add localization + tweak naming

* Fix duplicate key

* Update storyshots

* [shareables] Unsupported Renderer Warning (#46862)

* [shareables] Unsupported Renderer Warning

* Update snapshots; add test

* Addressing Feedback

* [canvas][shareables] Simplify and complete testing (#47328)

* Simplify

* Updates

* Finishing up

* A few tweaks

* Fix eslint errors; how would those happen??

* Fix CI build of runtime; assorted visual tweaks

* Update x-pack/legacy/plugins/canvas/shareable_runtime/test/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* Addressing feedback

* Remove null-loader from root package

* re-add null-loader until mitigation is found

* [perf] Fix unsupported renderers performance issue (#47769)

* [perf] Fix perf issue with unsupported renderers

* Fixing snapshots

* Addressing review feedback (#47775)

* Addressing feedback

* Addressing feedback (#47883)

* Branding Changes (#47913)

* Branding Changes

* Update snapshots
2019-10-11 12:15:41 -05:00
Spencer 0a85478d41
[failedTestsReporter] load github issues on demand (#47914) 2019-10-11 09:56:47 -07:00
spalger a2c234d7f0 [renovate] auto open @elastic/charts prs 2019-10-11 09:54:56 -07:00
spalger 0002b84344 [renovate] eliminate separate PRs for minor/major versions 2019-10-11 09:54:43 -07:00
Varun Sharma 525f708f24 Update README.md with changes in I18n engine APIs (#47290) 2019-10-11 16:53:36 +01:00
Joe Reuter 4de9290b98
[Graph] Improve wording (#47324) 2019-10-11 17:42:52 +02:00
Ahmad Bamieh 0564396523
remove .required from shouldShowTelemetryOptIn prop (#47940) 2019-10-11 18:39:57 +03:00
Michail Yasonik d0c9f84bd1
Read warning to screen readers for duplicate saved objects (#47568) 2019-10-11 21:03:25 +05:30
Rob Waight e9e8b1ddc8
[DOCS] Include server.cors configuration settings (#47701)
* Include `server.cors` configuration settings

Include `server.cors` configuration settings

* [DOCS] Update `server.cors` formatting

Update formatting in the `server.cors` configuration settings
2019-10-11 10:29:34 -05:00
Jonathan Budzenski 37828dbabf
[deb/rpm] set default babel cache path (#47907)
* [deb/rpm] set default babel cache path

* \\n
2019-10-11 10:24:26 -05:00
Jonathan Budzenski d41ea22f63
[build/deb] use older systemd StartLimitInterval (#47909)
* StartLimitIntervalSec -> StartLimitInterval

* [build/deb] use older systemd StartLimitInterval
2019-10-11 10:20:36 -05:00
James Gowdy 71b353f495
[ML] Adding advanced job wizard (#46781)
* [ML] Adding advanced job creator

* removing comment

* initial UI changes

* initial detector modal

* adding datafeed step

* adding json link to datafeed step

* linking json editor to jobCreator

* improvements to detector modal

* improving detector modal

* updating start datafeed behaviour

* fixing types

* i18n fixes

* updating descriptions based on old tooltips

* adding default frequency

* adding default query delay

* adding scroll size default

* possibly fixing translation issue

* fixing jest test

* fixing job cloning

* data test subject ids

* using default mml for population and advanced

* adding no detector warning

* removing index signature

* adding frequency custom hook

* adding mlcategory constant

* i18n changes

* removing children prop

* setIsValidQuery

* updating custom  hooks

* disabling future steps

* disabling future steps

* misc changes based on review

* removing early return from hook based components

* adding mlcategory to influencer list

* using job type constants

* fixing type failures

* disabling flaky mml functional test

* correcting disabled test

* fixing function test expect

* disabling all ml function tests
2019-10-11 15:37:22 +01:00
Dario Gieselaar 819f334c85
[APM] Replace ui/kfetch with core.http (#47635)
* [APM] Replace ui/kfetch with core.http

Closes #46548.

* Remove kfetch mocks in tests

* Expose HttpFetchError from src/core/public/index

* Make HttpFetchError public

* Simplify tests for ServiceOverview
2019-10-11 16:35:29 +02:00
Spencer 26fc5c5046
[kbn/es] use an ES_TMPDIR that is within the install path (#47901)
* [kbn/es] use an ES_TMPDIR that is within the install path

* support tests which don't pass installPath
2019-10-11 07:13:22 -07:00
Justin Kambic 40a6c526f8
Add test to ensure that URL params are dropped from URL search if the new value is empty. (#47905) 2019-10-11 10:04:43 -04:00
Sebastian Grodzicki 9f7bc6482f
[Infra UI] Update docs to reflect renaming to Metrics (#47927)
* Rename Infrastructure UI to Metrics UI

* Rename Infrastructure app to Metrics app

* Rename Infrastructure to Metrics
2019-10-11 15:49:38 +02:00
Vadim Dalecky 5e2deb49a6
fix: 🐛 handle correctly basic falsy types in getType() (#47930) 2019-10-11 15:24:16 +02:00
Chris Roberson f8a5c66d7c
[Monitoring] New platform migration - Server shim (#46507)
* WIP

* More NP refactoring

* Hook up infra postInit logic

* Fix broken tests

* Cleanup
2019-10-11 09:20:44 -04:00
Chris Roberson 04f42c4600
[Timefilter] Convert to ISO string instead of JS string (#47722)
* Convert to ISO string instead of JS string

* Add test
2019-10-11 09:18:08 -04:00
Ben Skelker f591b595a6
[SIEM] Add button with link to license management in ML popup (#47841)
* Add button with link to license management in ML popup

* Corrections to button styling

* Updated button icon

* Update snapshots

* Correcting json translation files

* Fix zh_CN json file

* And now fixing the translation file properly
2019-10-11 15:32:04 +03:00
Joe Reuter b43bdf6f09
downgrade vega-tooltip to maek it IE compatible (#47928) 2019-10-11 14:06:59 +02:00
Pete Harverson cd735fd46e
[ML] Adds new SIEM auditbeat, winlogbeat and packetbeat modules (#47848)
* [ML] Adds new SIEM auditbeat, winlogbeat and packetbeat modules

* [ML] Removed rare_country_for_user jobs

* [ML] Removed rare_country_for_user jobs from manifests
2019-10-11 12:51:13 +01:00
Dima Arnautov 860b074340
[ML] Enhance created_by check for custom rules (#47825)
* [ML] delete created_by only for wizards

* [ML] use CREATED_BY_LABEL enum

* [ML] move processCreatedBy
2019-10-11 13:26:34 +02:00
Carlos Pérez-Aradros Herce dfceb68325
Add CouchDB Metricbeat module tutorial to Kibana home (#47811) 2019-10-11 13:00:54 +02:00
Joe Reuter 739807926e
fix usage of save modal callback (#47492) 2019-10-11 12:57:16 +02:00
Jean-Louis Leysens cf4c571951
[Console] Mappings for 7.5 (#47735)
* First pass of spec update to OSS plugin

* Update existing doc links

* Move data_frame files to new depreceated namespace

* Removing this setting per https://github.com/elastic/elasticsearch/pull/47717

* Add new files

* Added transforms overrides

* Updated deprecated data transforms file names
Fixed broken __template's
Updated autocomplete for new transforms endpoints
2019-10-11 11:36:17 +02:00
Dario Gieselaar 18257fbab4
[APM] Make sure toasts work for failed useFetcher calls (#47802)
* [APM] Make sure toasts work for failed useFetcher calls

toasts.addWarning is a class method, and fails when called without bound context, which was what happened in useFetcher notifications.

* Remove unnecessary destructuring
2019-10-11 10:46:19 +02:00
Maja Grubic d62879547a
Adding KibanaContextProvider to IndexPatternDimensionPanel component (#47773) 2019-10-11 09:42:59 +01:00
Alexey Antonov 8bf2a4f227
[Automation] TSVB doesn't allow to perform basic functions showing no fields available (#47860) 2019-10-11 11:33:03 +03:00
Matthias Wilhelm c13faab6ba
Improve kbnTableHeader directive that causes warnings in console (#47829) 2019-10-11 09:38:01 +02:00
Liza Katz 0d7dfbadec
Reconstruct setup\start data shim APIs (due to savedObject N/A in setup) (#47851)
* No saved objects client in data.setup

* replace old loading of data/public/setup

* test fixes

* fix list_control_factory

* range_control_factory
2019-10-11 07:56:59 +03:00
Yulong 871601b20c
[Code] replace nodegit with native git (#45491)
* [Code]  use native git to iterate git files
* [Code] use native git to clone/update repository
* [Code] git history using native git
* [Code] use native git to read file tree and file content
* [Code] fix the 'bad file' warning from status api
* [Code] use native git to handle worktree
* [Code] use native git to resolve references
* [Code] use native git to handle blame / diff
* [Code] patch git binaries in kibana build script
* [Code] migrate unit tests to use native git
2019-10-11 11:32:03 +08:00
Davey Holler 1455932110
Adding an overflow popover for the breadcrumbs. (#47551) 2019-10-10 17:30:54 -07:00
Phillip Burch 875c725e61
[Infra UI] Save and Load Views for Metrics Explorer and Inventory Page (#46713)
* Added UI components and ability to interact with saveObjects api

* Remove unused files

* [Infra-ui] make saved views work

* Implement UI polish and feedback

- Added checkbox for including time
- Updated all copy to use `FormatedMessage`
- Add default view to flyout

* Cleaner implementation of default view.

* Make it easier to use saved views on more than just inventory

* Add percy test for saved views flow

* Fix order of operations for test

* Add ability to save metric explorer views

* Add delete confirmation for deleting view

* Add visual regression test for saved views on metric explorer page

* Add save icon to give a visual clue

* Add a toast to handle error cases for fetching and saving

* Fix type error

* Fix i18n id

* Small copy and ux tweaks

* Adding new saved view type and mappings for inventory-view

* Adding Metrics Explorer saved object mappings

* Changing how saved object mapping is included

* Implement design changes

* Fixing mappings

* Use the Metrics Explorer saved object type

* Remove hard coded view type

* Change structure to match how saved object attibutes are being saved

* Remove hard coded view type

* Fix alignment

* Fixing types

* Better caching

* Add another dep

* Fixing flyout width
2019-10-10 19:25:13 -05:00
Nathan Reese 4fc75515d8
[Maps] retrieve geo_point value from docvalue_fields instead of _source (#47389)
* [Maps] retrieve geo_point value from docvalue_fields instead of _source

* add functional test ensuring _search request only pulls what is needed

* clean up i18n translation fiels
2019-10-10 18:07:46 -06:00
Spencer e4cee1fa1c
Update contributing.md to use autoFix: true for ts files 2019-10-10 17:01:07 -07:00
Nik Everett fd94e17fb5
Docs: Fix for asciidoctor (#47876)
Asciidoctor is a bit more picky about somethings. This fixes them for
it.
2019-10-10 17:18:38 -04:00
Thomas Neirynck 578522186e
[SIEM][Maps] Use vector tiles for rendering EMS basemap (#47867) 2019-10-10 17:14:38 -04:00
Spencer 2bd9699a64
cleanup es even if test fails (#47868)
* cleanup es even if test fails

* use correct beforeAll/afterAll hooks for jest
2019-10-10 14:10:45 -07:00