Commit graph

36025 commits

Author SHA1 Message Date
gchaps
2de9f44431
[DOCS] Identifies cloud settings for Monitoring (#76579) 2020-09-03 08:17:55 -07:00
gchaps
1f3ede8058
[DOCS] Identifies Cloud settings in Dev Tools (#76583) 2020-09-03 08:15:23 -07:00
Nicolas Chaulet
3d911573b2
[Ingest Manager] Better default value for fleet long polling timeout (#76393) 2020-09-03 11:05:59 -04:00
Luke Elmers
64b772613b
[data.indexPatterns] Fix broken rollup index pattern creation (#76593) 2020-09-03 08:13:33 -06:00
John Schulz
2db789598b
[Ingest Manager] Split Registry errors into Connection & Response (#76558)
* Split Registry errors into Connection & Response

* Ensure a url in ResponseError message. Add tests
2020-09-03 09:12:43 -04:00
Xavier Mouligneau
299c3f5a54
[Security Solution] add an excess validation instead of the exact match (#76472)
* add an excess validation instead of the exact match

* fix readble type + unit test

* review I

* remove buildRouteValidation to use buildRouteValidationWithExcess
2020-09-03 09:10:32 -04:00
Mikhail Shustov
e9e0ca3782
Introduce TS incremental builds & move src/test_utils to TS project (#76082)
* move test_helpers to the core

* create base tsconfig

* all tsconfigs use the base one

* use test_helpers exposed from the src/core

* move getFieldFormatsRegistry to data plugin

* add test_utils project

* compile types after checkout

* add a stub for platform tsconfig.json

* fix broken import

* fix broken path to the base config

* set tsBuildInfoFile for project without outDir

* do not commit tsbuildinfo file

* do not check output d.ts files

* fix type error

* use separate config to build types

* rollback changes to include paths

* mute import zone error

* rename files to avoid references to tsd

* do not use tsd for type tests

* include all ts files in project

* run buildRefs before type check to ensure the latest version

* store tsbuildinfo locally

* update paths to base config

* comment out core/tsconfig.json

* remove ui path

* fix wrong tsbuildinfo path
2020-09-03 14:20:04 +02:00
Liza Katz
4c5e75e437
fix bad merge (#76629)
Merged to fix master
2020-09-03 15:17:23 +03:00
Alejandro Fernández Haro
e32c282bc5
[Newsfeed] Ensure the version format when calling the API (#76381)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-03 12:06:49 +01:00
Mikhail Shustov
2a547914b7
remove server_extensions mixin (#76606) 2020-09-03 13:02:23 +02:00
Pierre Gayvallet
e976bddf81
Remove legacy applications and legacy mode (#75987)
* remove legacy mode and legacy service

* fix tests

* remove txt file

* fix xpack code

* fix types

* remove legacy test

* fix integration tests

* remove legacy reference

* yet another legacy reference

* handle uptime app special case

* update generated doc

* address review comments

* remove legacy fields from ChromeNavLink

* few fixes

* remove legacy API from docTitle service

* ChromeNavLink.href is now mandatory

* update generated doc

* remove legacyMode leftovers

* remove ChromeNavLink.active

* update generated doc
2020-09-03 12:23:57 +02:00
Matthias Wilhelm
7134cd7b7e
[Discover] Fix sidebar element focus behavior when adding / removing columns (#75749)
* Use field.name instead of idx for key in li element

* onClick adds focus to button

* prevent Chrome jumping back to last focused element
2020-09-03 11:36:27 +02:00
Liza Katz
411048ae09
Replace FetchOptions with ISearchOptions (#76538)
* Replace FetchOptions with ISearchOptions and update usage

* Merge the client and server ISearchOption types into common

* docs
2020-09-03 12:30:31 +03:00
Mikhail Shustov
cd86b81b82
Move streams utils to the core (#76397)
* move utils/streams to the KP

* allow imports from src/core/server/utils

* ts-ify

* import streams from KP

* remove unnecessary ts-expect-error

* fix kbn-es-archiver build

* lost export

* copy array in createListStream

* remove streams from legacy utils

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-03 10:57:03 +02:00
Sonja Krause-Harder
ebc50e6c69
[Ingest Manager] Wording & linking improvements (#76284)
* Improve wording on add agent flyout.

* Add agent explanation to agent flyout.

* Add link to data stream page.
2020-09-03 10:45:28 +02:00
Pierre Gayvallet
593298ee31
remove legacy kibana plugin (#76064)
* remove legacy kibana plugin

* as ES as a dependency to security instead of kibana

* remove 'kibana' plugin presence check in so mixin

* moved the `kibana` config section to the server
2020-09-03 10:20:20 +02:00
Sébastien Loix
182e0de18f
[Form lib] Fix regression on field not being validated after reset to its default value. (#76379) 2020-09-03 08:58:05 +02:00
Pierre Gayvallet
210d6f2df1
Legacy SO import: Fix bug causing multiple overrides to only show the last confirm modal (#76482)
* Legacy SO import: Fix bug causing multiple overrides to only show the last confirm modal

* eslint

* fix for loops
2020-09-03 08:50:03 +02:00
Oliver Gupte
d3416c0189
[APM] Service maps layout enhancements (#76481)
* Fixes storybook anomaly score generation and better utilizes available screen space

* Closes #71770 for APM service maps by replacing breadthfirst layout with
one from the cytoscape-dagre extension. Also replaces the taxi edges
with cubic bezier edges. Finally, this adds the ability to drag
individual nodes around the service map.

* Removes unused code

* removes commented line of code

* - Adds ability for scripts/notice.js to check files with the .tsx file extension
- Adds attribution for `applyCubicBezierStyles`

* Refine comment text and MIT license url
2020-09-02 21:39:03 -07:00
Frank Hassanabad
2f017b0e85
[Security Solution][Detection Engine] Remove RuleTypeSchema in favor of Type for TypeScript (#76586)
## Summary

Removes RuleTypeSchema in favor of Type for TypeScript. Does break out one function called `parseScheduleDates` into its own file to remove a circular ref issue.
2020-09-02 21:48:41 -06:00
Yara Tercero
aab8d3c7dd
[Security Solution][Exceptions] - Updates enum schema and tests (#76544)
## Summary

Mistmatch caught between the io-ts type and the corresponding typescript enum. Currently, io-ts does not have support for enums - as a workaround I had made a matching typescript enum type. Tests were added to try to ensure the two stayed in sync, but didn't do a straight up comparison of the two.

Updated the tests to now error if the keys do not match.
2020-09-02 20:07:40 -04:00
Matthew Kime
ee2ceef9bb
Index Pattern class - remove toJSON and toString (#76246)
* remove toJSON

* remove toJSON, toString

* fix ml url

* Update actions_panel.tsx

* fix url

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 17:20:14 -05:00
spalger
46aef4b1e0 skip failing suite (#76581) 2020-09-02 15:18:37 -07:00
Constance
1ffe24955c
Split up and clarify Enterprise Search codeowners (#76580)
@elastic/enterprise-search-frontend is a shared team of both app-search-frontend and workplace-search-frontend, but combining it into one group means only 1 reviewer is required (as opposed to 1 per team).
2020-09-02 14:53:58 -07:00
Josh Dover
9519fcd4a2
Fix issue where defaultAppId redirect could fire outside home app (#76415) 2020-09-02 15:08:43 -06:00
Matthew Kime
5467f31640
Remove dependencies from index pattern field and index pattern list (#75185)
* Remove dependencies from index pattern field and index pattern list
2020-09-02 16:00:23 -05:00
Yara Tercero
c46e77712a
[Security Solution][Exceptions] - Adds sort order for exception items (#76537)
## Summary

**Components affected:** ExceptionsViewer

**Current behavior:**
  - when a user edits an exception item, the order of the exception items in the viewer changes. This creates confusion and looks like updates weren't applied (even though they were, just item order changed)

**New behavior:**
  - when a user edits an exception item, the order of the exception items in the viewer don't change. Sort order is now based on `created_at`
2020-09-02 16:44:42 -04:00
Quynh Nguyen
aac84240b2
[ML] Extend MlUrlGenerator to support other ML pages (#75696)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2020-09-02 14:52:10 -05:00
spalger
d9dc47ef36 skip flaky suite (#76551) 2020-09-02 12:17:49 -07:00
Scotty Bollinger
6f94bf7d2a
[Enterprise Search] Migrate shared components used in Workplace Search Groups (#76345)
* Add shared images and export file

* Migrate SourceIcon component

* Add util to format routes

We need a way to format routes using parametrized routes in Workplace Search. We used to the `react-router-named-routes` library, but it is 5 years old has has no typings. I extracted the function we needed into a util.

* Update recent_activity to use formatRoute

For the 7.9 Kibana MVP, we used a temporary function to generate this route. Aligning this component to use the helper other parts of the app will use after migration.

* Add types and constants

Various types and constants migrated for use in groups component

* Migrate SourceRow component

Also adds a mock for contentSources. For now the array only has one item needed for this test, but in future tests, more sources will be added to that array.

* Migrate SourcesTable component

* Migrate TablePaginationBar component

* Migrate UserIcon component

* Migrate UserRow component

* Refactor format_route

Uses Object.entries instead of for…in. This is more modern and allows for 100% test coverage.

Also removed `toString()` as `encodeURIComponent()` seems to automatically cast to string

* Remove unused import

* Use forEach instead of map

We’re not returning anything so map is not needed

* Minify images

* Remove formatRoute in favor of generatePath

Unike formatRoute, generatePath adds the trailing slash automatically

* Stop renaming methods

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 13:55:02 -05:00
Paul Tavares
535eb4069e
[SECURITY_SOLUTION][ENDPOINT] Trusted app delete api (#76435)
* Trusted app delete api
2020-09-02 14:53:35 -04:00
Thomas Watson
b8822da21e
Bump end-of-stream from v1.4.1 to v1.4.4 (#76479) 2020-09-02 20:45:52 +02:00
Melissa Alvarez
de3ddbc6e1
[ML] DF Analytics jobs list: improve job details analysis stats view in expanded row (#76196)
* move analysis stats to own section in expanded row

* fix type errors

* move stats to separate tab in expanded row

* handle parameters and hyperparameters not defined
2020-09-02 14:22:55 -04:00
Spencer
1d4a56f705
[esArchiver] stop importing stream helpers from src (#76519)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-02 11:15:01 -07:00
John Schulz
71b9dedfc4
[Ingest Manager] Remove success: true as top-level API response (#73223)
* Big bang commit removing top-level success property in API response

Left in check-permissions and in array of objects returned by delete package configs

* Remove success property from  mocks

* Resolve conflict from upstream changes

* Remove success property (after upstream merge)

* Remove more 'success'es after merging in upstream

* Remove success from some tests

* Remove success from OpenAPI spec

* Revert prior try/catch. Use res.ok

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 12:07:32 -04:00
gchaps
7b7b013b97
[DOCS] Adds cloud icon to alerting settings (#76516) 2020-09-02 08:59:58 -07:00
Constance
3466436031
[Enterprise Search] Add 404 pages (#76404)
* Add new 404 NotFound shared view

* Add new telemetry ui_error.not_found metric

* Add check for licensed users who should be sent to support.elastic.co
2020-09-02 08:53:23 -07:00
Thomas Watson
46689b3348
Bump readable-stream to newest 2.x and 3.x versions (#76480) 2020-09-02 17:24:12 +02:00
Thomas Watson
aeba68464e
Bump buffer from v5.2.1 to v5.6.0 (#76478) 2020-09-02 17:23:45 +02:00
Angela Chuang
d932830218
[Security Solution] Search strategy - authentications (#76090)
* move authentications to searchstrategy

* useAuthentications

* add authenticationFields

* remove import from lib

* remove duplicated types

* getInspectResponse

* getInspectResponse

* move folder

* update path

* update path

* shallowEqual

* revert path

* update path

* remove redundant types

* fix import

* fix types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2020-09-02 16:34:49 +02:00
Wylie Conlon
01e442081f
[Visualize] Remove alias icon for Lens and Maps (#76418)
* [Visualize] Remove alias icon for Lens and Maps

* Fix snapshots

* Fix translations
2020-09-02 10:34:37 -04:00
Dario Gieselaar
3e077973e8
[APM] Immediately return terms for unbound queries (#74543)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 16:11:12 +02:00
Anton Dosov
25c176255a
[uiActions] notify action usage (#76294)
Notify feature usage when dynamic actions with specified license requirements are executed

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 16:00:38 +02:00
Brent Kimmel
5345af9281
[Security Solution][Resolver] Add events link to Process Detail Panel (#76195)
* [Security_Solution][Resolver]Add events link to Process Detail Panel
2020-09-02 09:48:33 -04:00
Shahzad
093f588720
[RUM Dashboard] Use median values instead of averages to display page load times (#76407) 2020-09-02 15:35:33 +02:00
Melissa Alvarez
70cea48718
[ML] DF Analytics jobs list: persist pagination through refresh interval (#75996)
* wip: switch analyticsList inMemoryTable to basic and implement search bar

* move basicTable settings to custom hook and update types

* update types

* add types for empty prompt

* ensure sorting works

* add refresh to analytics management list

* ensure table still updates editing job
2020-09-02 09:11:05 -04:00
James Gowdy
4762cf56f5
[ML] Switching to new es client (#74965)
* [ML] Switching to new es client

* further conversions

* fixing tests

* updating responses

* test commit

* refactoring shared services to removed context parameter

* removing last scoped clients

* removing ml js client

* udating file data viz errors

* fixing jest tests

* fixing types after merge with master

* error response changes

* adding default sizes to some requests

* adding custom error types for license checks

* tidying up shared function checks

* removing test data

* removing need for DummyKibanaRequest

* updating comment

* fixing functional api tests

* removing comments

* fixing types after master merge

* throw error rather than return it

* removing placeholder error

* changes based on review comments

* fixing types after merge with master

* fixing missing return

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 14:07:57 +01:00
Thomas Neirynck
946e9f0914
[Maps] Remove obsolete link (#76419) 2020-09-02 08:56:23 -04:00
Casper Hübertz
4a4d7ce5a4
[APM] Minor style improvements to stacktraces (#76375)
- Added some more spacing for the indention inside a nested accordion
- Added additional spacing to the CausedBy accordions that created some space between the content and the containers.
2020-09-02 13:15:32 +02:00
Sandra Gonzales
a656b96e25
[Ingest Manager] support multiple kibana urls (#75712)
* let the user specify multiple kibana urls

* add validation to kibana urls so paths and protocols cannot differ

* update i18n message

* only send the first url to the instructions

* udpate all agent configs' revision when settings is updated

* fix jest test

* update endpoint full agent policy test

* fix type

* dont add settings if standalone mode

* fix ui not handling errors from /{agentPolicyId}/full endpoint

* fix formatted message id

* only return needed fields

* fill in updated_by and updated_at attributes of the ingest-agent-policies when revision is bumped

* throw error if kibana_urls not set and update tests

* change ingest_manager_settings SO attribute kibana_url: string to kibana_urls: string[] and add migration

* leave instructions single kibana url

* make kibana_url and other attributes created during setup required, fix types
2020-09-02 06:22:20 -04:00