Commit graph

25692 commits

Author SHA1 Message Date
Thomas Neirynck
f5ad4c05a6
[Maps] Prepare EMSClient for vector tile support (#42384) (#42612) 2019-08-05 13:13:54 -04:00
Spencer
ffe8d77302
[7.x] [x-pack/ftr] refactor types to be more accurate/consiste… (#42552) 2019-08-05 08:45:34 -07:00
Chandler Prall
4295fe2d3c
Upgraded EUI 13.0.0 -> 13.1.1 (#42298) (#42604)
* Upgraded EUI 13.0.0 -> 13.1.0

* Bump to 13.1.1

* Reset MutationObserver polyfill to original operation

* Reset x-pack's MutationObserver polyfill to original operation
2019-08-05 09:26:43 -06:00
Kerry Gallagher
a70145e6fb
[InfraUI] [LogsUI] Accessibility fixes (#41883) (#42514)
* Fixes #40411 - Add aria-label to search input

* Fixes #40425 - Align gear icon aria-labels

* Fixes #40419 - Make use of EuiDescribedFormGroup in the source configuration panel

* Add data-test-subj attribute back for functional test

* Revert "Fixes #40419 - Make use of EuiDescribedFormGroup in the source configuration panel"

This reverts commit 5075777e53.
2019-08-05 15:24:52 +01:00
James Gowdy
8c4bcb431f
[ML] Adding job cloning to new wizards (#42370) (#42597)
* [ML] Adding job cloing to new wizards

* refactor

* renaming CombinedJobConfig

* moving cloning to jobCreator classes

* using job service cloner to remove stats

* making overrideConfigs protected

* changing duration to timeRange
2019-08-05 15:17:06 +01:00
Tim Roes
7c6aea8bce
Add icon for geo_shape fields in Discover (#42087) (#42596) 2019-08-05 14:46:09 +02:00
James Gowdy
03bceeec8f
[ML] Fixing ml when spaces feature is disabled (#42564) (#42587)
* [ML] Fixing ml when spaces feature is disabled

* correcting grammar in comment

* fixing typo
2019-08-05 12:43:55 +01:00
James Gowdy
139afe3971
[ML] Merging job wizards feature branch to master (#42339) (#42586)
* [ML] Adding new job wizards services (#40718)

* [ML] Adding new job wizards services

* adding ts-ignore for incomplte kibana timefilter type

* [ML] New job wizards UI (#40748)

* [ML] New job wizards UI

* small refactor

* fixing type problems

* updating snapshots

* updating translations ids for temporary new job links

* updating translation ids

* fixing population by field selection

* small refactor to by field select

* moving component descriptions to separate files

* moving chart grid component into own file

* fixing event rate count detector

* fixing decimal place rounding

* changes based on review

* more changes based on review

* fixing test

* [ML] Adding created_by to job (#41015)

* [ML] Adding json preview (#41078)

* [ML] Adding job json preview

* fix typo

* [ML] Fixing view results button (#41077)

* [ML] Adding generic custom settings functions to job creator (#41046)

* [ML] Adding generic custom settings functions to job creator

* fixing typo

* [ML] Adding advanced section to job details step (#41157)

* [ML] Adding advanced section to job details step

* disabling model plot for population

* changes based on review

* updating include paths

* [ML] Adding additional settings section to job details step (#41339)

* [ML] Adding additional settings section to job details step

* changes based on review

* [ML] Adding basic job validation (#41459)

* [ML] Adding basic job validation

* removing observable

* small refactor

* comments and refactors

* disabling create job button

* adding duplicate job and group id checks

* disabling next on invalid wizard step

* changes based on review

* removing unused includes

* [ML] Adding advanced job validation (#41634)

* [ML] Adding advanced job validation

* clean up

* function rename

* updating tests

* show some previous step info

* removing . from validation titles

* fixes advanced validation duration check

* removing include

* [ML] Changing wizard layout (#41802)

* [ML] Changing wizard layout

* adding a comment

* fixing wizard step link issue

* removing greyed out controls in summary

* filtering out basic validation results

* adding wizards steps back into summary

* moving idFilterList

* removing unused includes

* [ML] Adding date picker to time range step (#41978)

* [ML] Adding date picker to time range step

* adding comments

* sorting influencers

* removing euiSize for width

* [ML] Displaying job creation errors (#42165)

* [ML] Displaying job creation errors

* removing unnecessary try/catch

* [ML] Updating index pattern type (#42269)

* [ML] Updating index pattern type

* changes based on review
2019-08-05 12:42:59 +01:00
James Gowdy
887437829b
[ML] Fixing empty index pattern list (#42299) (#42575) 2019-08-05 11:03:47 +01:00
Alexey Antonov
43389744ac
[Tag Cloud] Shim new platform (#42348) (#42576)
* [Tag Cloud] Shim new platform

* fix PR comments
2019-08-05 12:35:30 +03:00
Alexey Antonov
92a3e2bc90
[Metric Vis] Shim new platform (#42240) (#42577)
* Add New Platform mocks for data plugin

* [Metric Vis] Shim new platform

* move metric_vis_controller to components folder

* fix PR comments

* change interpreter type for colorRange and font

* change interpreter type for colorRange and font
2019-08-05 12:35:17 +03:00
Alexey Antonov
593d1cac38
[TSVB] Shim new platform (#39169) (#42579)
* Shim server side to new platform

* Shim public to new platfrom

* Break by services

* Add dependencies to the TSVB plugin

* Change folder structure for the shim

* Pass services as a second argument of setup() and small fixes

* Add start() to the Plugin

* Get rid of the Private

* Pass the core to setup()

* Get rid of NP folder

* Set config to timezoneProvider()

* Take an external dependency from EditorController

* Take an extra dependency out from Request Handler

* Rename metricsPlugin to Plugin

* Fix reviews

* Add types to .setup()

* Change types of TSVB

* Divide the plugin, its setup config and and entry point

* Get rid of @ts-ignore

* Add a server type to the CustomCoreSetup interface

* Revert kbn_vis_type settings

* Restructure public assets

* Move setup.js inner to the legacy.ts

* clean up

* fix PR commnets
2019-08-05 12:35:06 +03:00
CJ Cenizal
8697967087 Disable flaky request lib tests. Add es_ui_shared plugin to CODEOWNERS. 2019-08-04 12:39:28 -07:00
Mikhail Shustov
c2aafcff93
Document HTTP service (#42331) (#42558)
* improving naming, add TSDoc

* re-genereate docs

* use response name in migration guide

* Apply suggestions from code review

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

* place docs near the related code

* re-generate docs

* mark code as example to reduce noise in http-service.md
2019-08-04 12:57:34 +02:00
Luke Elmers
ee3b21f698
[7.x] Initial conversion of Index Patterns service to TypeScript. (#39247) (#42288) 2019-08-03 06:44:19 -06:00
Angela Chuang
ef4e54a3f8
[SIEM] Add chart interactions - update date picker after brush selection on charts (#42440) (#42559)
* add click and brush events

* replace setAbsoluteRangeDatePicker

* fix type error

* remove a not necessary export
2019-08-03 20:23:38 +08:00
Brandon Kobel
5b002848ea
[docs][skip ci] Maps read only access (#35561) (#42553)
* Adding read only access to the maps docs

* Removing redundant x-pack label, maps is already x-pack only

* Apply suggestions from code review

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

* Switching to using a Note
2019-08-02 15:57:27 -07:00
Spencer
91b40d2559
[7.x] [ftr/cheerio] improve cheerio types to include test subj… (#42541) 2019-08-02 15:50:17 -07:00
gchaps
92d318adf8 [DOCS] Updates images and content in Dashboard docs (#42500)
* [DOCS] Updates images and content in Dashboard docs

* [DOCS] Incorporated feedback
2019-08-02 14:54:01 -07:00
Chris Cowan
73f6926b3c
[Infra UI][Logs UI] Fix autocomplete to use proper derived index pattern (#42287) (#42543)
* [Infra UI] Fix autocompete on inventry page to use proper indexPattern

- Closes #42275
- Removes derivedIndexPattern
- Adds createDerivedIndexPattern(type: 'logs' | 'metrics' | 'both')
- Replaces all instances of derivedIndexPattern from WithSource with
results of createDerivedIndexPattern()

* Fixing a missed conversion

* Removing useCallback
2019-08-02 14:52:52 -07:00
dave.snider@gmail.com
27f1696f4e
EUI 13.0.0 (#41723) (#42540) 2019-08-02 13:45:20 -07:00
Spencer
32219d2c11
[7.x] [basePathProxy] add __UNSAFE_bypassBasePath route (#4120… (#42450) 2019-08-02 13:41:36 -07:00
Chris Cowan
d32d59bd21
[7.x] [Infra UI] Add cloud metrics and cloud/host info to metadata endpoint (#41836) (#42536)
* [Infra UI] Add cloud metrics and cloud/host info to metadata endpoint (#41836)

* [Infra UI] Add cloud metrics and cloud/host info to metadata endpoint

* Adding cloud metrics

* Correcting the pod host/cloud info

* Adding tests to metadata for new cloud/host info

* Fixing test to include machine.type

* Adding aws test data

* Refactor metadata container into hook

* Functionally complete

* updating tests

* Removing Metadata GraphQL endpoint and supporting files

* Moving types under common/http_api and prefixing with Infra

* adding filter for aws.ec2 dataset

* move away from fetch to useHTTPRequest

* Add decode function to useHTTPRequest; rename data to response;

* Changing from Typescript types to IO-TS types and adding checks at client and server

* Fixing field type
2019-08-02 13:13:47 -07:00
Tyler Smalley
ec83196b55
Increase max-old-space-size for builds (#42218) (#42539)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-02 12:33:12 -07:00
Vadim Dalecky
9cefd7e9ce
[7.x] Inspector 👉 New Platform (#42164) (#42530)
* refactor: 💡 remove SASS and clean up InspectorView component

* refactor: 💡 clean up inspector, convert .js -> .ts

* feat: 🎸 add Inspector NP plugin boilerplate

* feat: 🎸 move view registry to NP, move types, add registerView

* docs: ✏️ move inspector README to NP plugin

* refactor: 💡 move ui/inspector/ui to NP

* refactor: 💡 move Inspector adapters to NP

* refactor: 💡 move Inspector.isAvailable to New Platform

* refactor: 💡 move Inspector.open to New Platform plugin

* test: 💍 move Inspector tests to NP plugin

* chore: 🤖 fix imports

* feat: 🎸 update translations

* test: 💍 fix failing translation snapshot

* test: 💍 fix yarn test:browser tests

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* [ML] [Job wizards] switching to new kibana context provider

* fix: 🐛 specify translation path directly to the plugin

* docs: ✏️ add comment about Webpack config fix

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* Update src/legacy/ui/public/inspector/build_tabular_inspector_data.ts

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* feat: 🎸 improve types as per review

* fix: 🐛 remove <InspectorView> comp and fix view layouts

* test: 💍 improve mocks
2019-08-02 18:36:18 +02:00
Zacqary Adam Xeper
6b6e979063
[Logs UI][a11y] Announce name of column on remove column button (#41695) (#42529)
* [Logs UI][a11y] Announce name of column on remove column button

* Use title instead of aria-label

* ariaColumnName => columnDescription

* Move template string out of i18n

* Revert label id change

* Inject i18n to field title

* Change title to Remove {columnDescription} column

* Replace injectI18N with i18n.translate

* Fix i18n
2019-08-02 11:29:45 -05:00
Lukas Olson
1432a09666 Merge remote-tracking branch 'upstream/7.x' into 7.x 2019-08-02 09:25:24 -07:00
Aaron Caldwell
23551622e7
[Maps][File upload] Set geojson indexed layer defaults for bounds and global (#41789) (#42524)
* Set 'map bounds' and 'global query' default to 'false' for indexed geojson layers

* Add constants file

* Clean up

* Dynamically determine whether or not to filter by map bounds based upon docCount
2019-08-02 09:56:46 -06:00
Aaron Caldwell
e5fd578e38
Add 'task:' prefix to maps and oss vis telemetry _id (#42460) (#42523) 2019-08-02 09:26:03 -06:00
Mike Côté
a0961f2fea
Make alerting properly space aware (#42081) (#42525)
* Make alerting properly space aware

* Fix broken jest tests

* Fix broken integration test

* Cleanup pt1

* Add spaces integration tests

* Fix type check failure

* Apply PR feedback pt1

* Use TS types from spaces plugin

* Fix broken tests

* Apply PR feedback pt1

* Fix getBasePath to return server.basePath when spaces is disabled

* Apply new API changes to tests
2019-08-02 11:22:06 -04:00
Garrett Spong
ecf3fba931
[SIEM] Adds Machine Learning section to 'Using the SIEM UI' docs (#42399) (#42521)
## Summary

Adding `Anomaly Detection with Machine Learning` section to docs for new Machine Learning features.

Example generated docs:

![image](https://user-images.githubusercontent.com/2946766/62312719-2a32d780-b44c-11e9-9967-4639eedf05d5.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)~
- [x] 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)
- [x] [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-08-02 08:50:16 -06:00
Matt Bargar
65258a4ed8
Put filters back in the filter context where they belong (#42095) (#42496)
Filters were never really meant to take part in scoring in the first place. This PR puts filters back in the filter context where they were in 4.x so they can benefit from the filter cache.
2019-08-02 10:36:00 -04:00
Maryia Lapata
696928676c
[Vis Default Editor] Add unit tests for DefaultEditorAgg, DefaultEditorAggGroup (#42140) (#42510)
* Add unit tests

* Change file type from tsx to ts

* Update default_editor_agg_group_helper.test.ts

* Update unit tests

* Update default_editor_agg.test.tsx

* Fix code review comments
2019-08-02 11:51:11 +03:00
Liza Katz
27a04dcb46
Move SearchBar back to data plugin. (#42449) (#42492)
Restored an empty service for Saved Queries to use
2019-08-02 09:13:06 +03:00
Matthias Wilhelm
2c8efa49ac
Add missing doc for dateNanosFormat (#42459) (#42506) 2019-08-02 08:08:46 +02:00
Mikhail Shustov
c90f663309
revert PR 36804 (#42333) (#42443) 2019-08-02 07:56:05 +02:00
Tim Sullivan
42597aadeb
[Reporting/Performance] Convert some RxJS to Typescript (#42102) (#42476)
* [Reporting/Perf] changes for typescript conversion

* bad merge

* review feedback

* feedback changes on null checking values

* Tweak logic so we don't parse undefined
2019-08-01 15:42:39 -07:00
Patrick Mueller
174ccaa5a3
Change http result of action/alerts find api (#42393) (#42479)
This PR changes the shape of the result of the HTTP find endpoints
for actions and alerts, from the raw result from saved object find,
to:

    {
      page: 1,
      perPage: 10000,
      total: 1,
      data: [ {item}, {item} ... ],
    }

The changes are:

- `per_page` renamed to `perPage`
- `saved_objects` renamed to `data`
- each item is an object with the `id` of the item, and the
  properties from the `saved_objects[x].attributes` copied into
  that (eg, for actions, that will be `description`, `actionTypeId`
  and `config`)

see: issue https://github.com/elastic/kibana/issues/41828#issuecomment-514398058
2019-08-01 17:40:55 -04:00
John Dorlus
85fd39b0d4
Switched order of tests so license downgrade test runs last. (#42312) (#42480)
* Added 5 second sleep to let thte page load before checking for title.

* Changed the order of the license file to last. Removed sleep because it wasn't the problem.

* Addes skip cloud tag so this test doesn't run on cloud.

* Added a comment in config to leave the license file last because it's destructive.
2019-08-01 21:35:41 +00:00
Tim Sullivan
164cf0306f
[Reporting/React] Convert setState calls to async in table listing (#42419) (#42485) 2019-08-01 14:27:27 -07:00
Liza Katz
bf907b48f0
[7.x] Shape data plugin into standard shim form (#42238) (#42446)
* Merge to 7.x

* lint
2019-08-02 00:19:42 +03:00
chongzhe
c45ec427c1
[Code] Add doc for 7.3 (#42392) (#42487) 2019-08-01 13:34:10 -07:00
Chris Roberson
9441a865e9
[Monitoring] Clearer MB migration state on the overview page (#41898) (#42462)
* Just show an icon if action is necessary, otherwise show nothing

* Update copy

* Update copy based on state

* Updated logic and copy

* Update copy
2019-08-01 14:43:54 -04:00
Chandler Prall
8fdd7ac54f
Correct the I18n service definition of euiStat.loadingText (#42354) (#42447)
* Correct the I18n service definition of euiStat.loadingText

* Update i18n_service snapshot
2019-08-01 12:43:20 -06:00
Larry Gregory
d107d0845e
[7.x] Expose saved object import/export from core (#42022) (#42458)
* expose saved object import/export from core

* additional tests

* removing unused mock

* updater snapshots

* add objectLimit to saved objects service

* don't export the import/export functionality from core; only types

* documenting exported types

* export missing type
2019-08-01 13:55:26 -04:00
Chris Roberson
1597b30132
[Monitoring] Metricbeat migration for logstash, beats and apm (#40442) (#42455)
* Support for logstash

* Beats support

* Fix cherry-pick api issue

* Support for logstash

* Updates for beats and logstash

* APM migration working

* Tweaks for beats migration

* Update copy for setup new button

* If on cloud, disable setup mode

* Handle new beat flow better

* Better phrasing for APM

* Add beat type to disable step

* Fix i18n issue

* Fix jest tests

* Fix api tests

* PR feedback

* Update copy

* Remove unnecessary code

* Undo changes that are now in a separate PR

* Disable more links

* Fix overview link for logstash

* PR feedback

* Fix tests

* PR feedback

* PR feedback

* Capitalize Beat per PR feedback
2019-08-01 13:40:18 -04:00
Matt Bargar
ba516a41f5
Add advanced setting to turn off search on Discover's initial page load (#42036) (#42408)
Discover currently executes a search as soon as it loads. For some users this is useful. But for others it may return worthless results at the expense of extra load on their ES cluster and increased page load times, making it harder to get to the data they actually want. This PR adds an advanced setting allowing users to turn off the "search on page load" functionality in Discover.
2019-08-01 13:23:07 -04:00
Chris Roberson
01d4b698b7
[Monitoring] Metricbeat migration net new user experience (#39832) (#41666)
* ES net new user experience

* Adding sorting support

* WIP

* Progress on the ES nodes listing page

* Fix the loading page

* Kibana net new user experience

* Remove unnecessary files

* Remove this one too

* Add this file back in

* Add a way to add the cluster uuid to global state once monitoring is enabled on a stack product

* Ensure this PR can be merged to master by hiding the functionality behind direct links

* Add messaging for net new user experience on Kibana instances page

* Ensure we poll for more data as soon as they are done in the flyout

* PR feedback

* Fix api tests

* Add `skipLiveData` flag to avoid fetching data from the running stack products

* Add comment
2019-08-01 12:19:27 -04:00
Patrick Mueller
95b5f542f8
Refactors action http request and response bodies (#42273) (#42444)
Part of the http cleanup of alerts and actions; see:
https://github.com/elastic/kibana/issues/41828

Previously the http request/response bodies for actions was
basically saved object signatures.  This change makes those
request bodies (except for the search APIs, TBD) plain old
objects instead.

Additionally, the action type secrets have been split out of
action type config completely - they are now in a separate
object, so there's no need for the `unencryptedAttributes: string[]`
property in the action type itself.  That also means there's a
new validator function in the action type, to validate the
secrets.

The mappings have also changed, so that the saved object property
names are a little less unwieldy;

    actionTypeConfig        -> config
    actionTypeConfigSecrets -> secrets
2019-08-01 11:29:45 -04:00
Alexey Antonov
4735a1c662
implement color rules unit tests (#42247) (#42439)
* implement color rules unit tests

* remove debug test

* remove debug usage
2019-08-01 17:49:18 +03:00