Commit graph

44838 commits

Author SHA1 Message Date
Yaroslav Kuznietsov
4c3a3977d4
[Canvas] Dropdown filter refactor (#105707)
* Refactered from `recompose` to `react hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 17:53:26 +03:00
Wylie Conlon
9616a55f81
[Lens] Add render complete tags to empty states (#106163)
* [Lens] Add render complete tags to empty states

* Fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 10:50:44 -04:00
David Sánchez
7f758731ae
[Security solution] [Endpoint] Unify subtitle text in flyout and modal for event filters (#106401)
* Unify subtitle text in flyout and modal for event filters

* Change variable name and make it more consistent with trusted apps showing subtitle only when adding event filters

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 16:42:18 +02:00
Michael Olorunnisola
2905aed6fb
[Security Solution][RAC] - Change json view tab name to json (#106524) 2021-07-22 10:40:02 -04:00
Wylie Conlon
c54b4e54be
[Docs] Remove unused page drilldowns.asciidoc (#106487) 2021-07-22 09:18:42 -05:00
John Schulz
a9743715d6
[Fleet] OpenAPI - add missing routes and clean up names, types, etc (#106464)
### Add specs for several missing routes
See additions in `openapi/entrypoint.yaml`

- `/agents/{agentId}/reassign`
- `/agents/bulk_reassign`
- `/agents/bulk_unenroll`
- `/package_policies/delete`

### Add enum of string values for delete package response
See 5c04dfc

### Fixed inaccurate operation spec
spec for `delete-agent-policy` operation currently shows it accepting an array of ids`agentPolicyIds: string[]`  and returning an array of results, but it actually accepts a single `agentPolicyId: string` id an returns a single object

### Internal changes
#### Better / more consistent operation names
e.g.

```diff
-  operationId: post-agent-policy
+  operationId: create-agent-policy
```
and 
```diff
-  operationId: put-agent-policy-agentPolicyId
+  operationId: update-agent-policy
```

#### Better schema titles
e.g.
```diff
- title: UpdatePackagePolicy
+ title: Update package policy
```
2021-07-22 09:50:23 -04:00
Chris Cowan
d921df04c9
[Metrics UI] Increase number of saved objects fetched to 1000 (#106310) 2021-07-22 06:44:34 -07:00
Jean-Louis Leysens
385b6588ff
[Reporting] Only show migration callout to authzd users (#105181)
* wrapped deprecations endpoints in authz wrapper

* remove unused import

* added KibanaProvider interface

* removed second call of "handler" and moved api functional test to authd version of supertest

* fix api integration tests

* added api integration test for authzd users

* do not check for privileges if security is disbaled

* run organize imports

* updated jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:37:00 +02:00
Jean-Louis Leysens
58e2dd328e
[Reporting] Add deprecation notice to the upgrade assistant (#104303)
* add deprecation notice to the upgrade assistant

* fix types and update jest snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:36:40 +02:00
Yaroslav Kuznietsov
d5b5a425a1
[Canvas] Number ui argument refactor. #105720 (#105721)
* Refactored `number` arg view from `recompose` to `hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 16:19:17 +03:00
Felix Stürmer
1a7469f756
[Logs UI] Index reason in log threshold executor (#106291) 2021-07-22 15:06:36 +02:00
Ahmad Bamieh
a428492d3c
[i18n] Integrate 7.14.0 Translations (#106361) 2021-07-22 09:00:34 -04:00
Alejandro Fernández Gómez
a397e0f60a
[Logs UI] Prevent the "Alerts and rules" context menu from sticking (#106408) 2021-07-22 14:46:41 +02:00
Peter Pisljar
63ffc9fc47
adding es version field support (#104870) 2021-07-22 14:45:43 +02:00
Tiago Costa
1002125238
skip flaky suite (#106388) 2021-07-22 13:36:03 +01:00
mgiota
eaa6dcb579
[RAC] [Metrics UI] Register Inventory rule types with new RAC rules registry (#105706)
* WIP: register inventory metric threshold as lifecycle rule

* fix inventory executor error

* save alerts into ES

* temp

* basic format reason for inventory threshold

* clean up, fix i18n error and temporarily remove types

* delete serialized params

* include group name in the reason

* cleanup

* link to default metrics page

* grab the value and threshold for the inventory item

* fix typo

* fix check types

* remove threshold and currentValue, the reason field will contain this info for combined conditions

* remove thereshold and value from the reason, soon will be replaced by indexed reason field

* remove unnecessary export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:46:40 +02:00
Yuliia Naumenko
4c7037b44a
[Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology. (#106382)
* [Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology.

* fixed path

* fixed type checks

* fixed type checks
2021-07-22 02:29:29 -07:00
Dmitry Tomashevich
484998c0e8
[Discover] Replace font awesome icons with Eui (#103503)
* [Discover] replace font awesome icons with eui

* [Discover] fix eslint

* [Discover] fix tests, update icon styles

* [Discover] fix eslint

* [Discover] fix functional related to awe icons

* [Discover] add empty line for scss file

* [Discover] fix eslint

* [Discover] simplify testSubjects

* Update src/plugins/discover/public/application/angular/doc_table/components/pager/tool_bar_pager_buttons.tsx

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>

* Update src/plugins/discover/public/application/angular/doc_table/components/pager/tool_bar_pager_buttons.tsx

Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>

* [Discover] fix icons appearing problem

* [Discover] update test

* [Discover] remove redundant styles

* [Discover] update test snapshot

* Update src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header_column.tsx

Co-authored-by: Tim Roes <mail@timroes.de>

* [Discover] change tool bar text size

* [Discover] update test

* [Discover] replace button with EuiButton

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Tim Roes <mail@timroes.de>
2021-07-22 12:09:28 +03:00
Felix Stürmer
a09fcf017d
[Security Solution] Fix timelineEventsAll field expansion for heterogeneous document schemas (#105452)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:07:58 +02:00
Christos Nasikas
e383b57ba1
[Alerting] Pass EuiIcon props to connectors logos (#106449)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:15:50 +03:00
Shahzad
48e6195dc1
[Exploratory View] Multi Series View (#103855)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2021-07-22 10:14:43 +02:00
Tim Sullivan
7c86f599a6
[Reporting] Update kibana.json files with owner information (#106463) 2021-07-22 10:03:37 +02:00
Michael Olorunnisola
abee36d5bb
[Security_Solution][RAC] - Update flyout table design (#105996) 2021-07-21 21:58:23 -04:00
Bryan Clement
a04fa3b919
don't stop an update if the id is unchanged (#106483) 2021-07-21 19:58:03 -04:00
Andrea Del Rio
09c49f5bee
[Discover] Improve empty state page (#103602)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-07-21 16:40:31 -07:00
Ece Özalp
856ec00a4f
[CTI] fix doclink in integration test (#106416)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 17:49:50 -04:00
Davis Plumlee
3f4032831d
[Security Solution][Detection Rules] Fixes import rules modal text (#106188) 2021-07-21 14:28:29 -06:00
gchaps
d3defc0960
Updates painless doc to use runtime fields (#106462) 2021-07-21 13:24:59 -07:00
John Schulz
35695d8bb5
[Fleet] More accurate types for setup. nonFatalErrors is always present (#106004)
* Make types for setup more accurate. nonFatalErrors is always present

* Rename PostIngestSetupResponse to PostFleetSetupResponse

* Missed a rename to PostFleetSetupResponse

* Define schema for setup responses & share

* Add response schema for GET /agents/setup

* Response is array of enum; not enum

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 16:15:40 -04:00
Tiago Costa
465b36ca9c
chore(NA): improves @kbn/ui-shared-deps build performance (#105971)
* chore(NA): move packages assets optimization into the distributable build

* chore(NA): include terser task on distributable build

* chore(NA): migrate everything into the build tasks

* chore(NA): update webpack config to include react profiler

* chore(NA): optional fsevents

* chore(NA): redo optional fsevents

* chore(NA): remove noparse for fsevents

* chore(NA): include missing task declaration

* chore(NA): include sourcemaps

* chore(NA): include metrics bundle file generation during distributable build

* chore(NA): correctly setup paths

* chore(NA): change sourcemap types

* chore(NA): remove useless sourcemaps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 21:00:49 +01:00
Wylie Conlon
62e81723af
[Docs] Clarify that explore underlying data is not enabled (#105693)
* [Docs] Clarify that explore underlying data is not enabled

* Update formatting

* Update from feedback
2021-07-21 15:05:33 -04:00
Tim Sullivan
1b086bd385
[Reporting] Unskip failing ES promotion tests (#106304) 2021-07-21 11:37:11 -07:00
Devon Thomson
5411652aff
[Dashboard] Index Pattern Observable Error Handling (#106155)
* add error handling to dashboard index pattern observable to prevent issues when embeddables do not load
2021-07-21 14:50:02 -03:00
gchaps
5c18edd89e
[DOCS] Graph: updates text and screenshots (#106190)
* [DOCS] Graph: updates text and screenshots

* [DOCS] Created customize section

* [DOCS] Combines graph troubleshooting and limitations

* [DOCS] Fixes error in redirects

* [DOCS] Reduces size of read-only image
2021-07-21 10:41:59 -07:00
gchaps
529b155d1c
[DOCS] Adds missions to landing page (#104572)
* [DOCS] Adds missions to landing page

* [DOCS] Adds links to release docs and improves missions

* [DOCS] Uses bold for top links

* [DOCS] Minor changes in ordering of items

* [DOCS] Updates links in landing page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 10:20:02 -07:00
Marco Liberati
33bf0fe633
🐛 Improve network error message (#106246) 2021-07-21 19:17:12 +02:00
Joe Portner
ec30f2aeeb
Fixed usage data collection for import and copy (#106305) 2021-07-21 13:16:53 -04:00
gchaps
098bf69560
[DOCS] Intro doc--updates screenshots (#106185)
* [DOCS] Intro doc--updates screenshots

* [DOCS] Adds link to Discover in sharing section
2021-07-21 10:03:44 -07:00
Lukas Olson
4e26bfe4da
[data.search.autocomplete] Remove usage of ES client transport.request (#106288)
* Use es client method rather than transport.request

* Fix test
2021-07-21 09:10:53 -07:00
Mark Hopkin
444ef9d98b
fix: incorrect useBreadcrumbs for integrations (#106409) 2021-07-21 12:06:26 -04:00
Lukas Olson
8f791ef8fc
[data.search.session] Include version in search session for restore warnings (#105528)
* [data.search.session] Include version in search session saved object for warnings

* Don't show version message if not restorable

* Fix build

* fix ts, fix jest, add migration

* tests ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-21 09:01:02 -07:00
Liza Katz
a6af9d5050
[Es query] Move to package (#103530)
May the forces of bootstrapping helps us 🙏🏻 😉
2021-07-21 17:10:55 +02:00
Yaroslav Kuznietsov
473b6aad0f
[Canvas] Expression shape (#103219)
* expression_reveal_image skeleton.

* expression_functions added.

* expression_renderers added.

* Backup of daily work.

* Fixed errors.

* Added legacy support. Added button for legacy.

* Added storybook.

* Removed revealImage from canvas.

* Types fixed.

* Fixed test suite error.

* Fixed eslint error.

* Moved UI and elements, related to expressionRevealImage from canvas.

* Fixed unused translations errors.

* Moved type of element to types.

* Fixed types and added service for representing elements, ui and supported renderers to canvas.

* Added expression registration to canvas.

* Fixed

* Fixed mutiple call of the function.

* Removed support of a legacy lib for revealImage chart.

* Removed legacy presentation_utils plugin import.

* Removed useless translations and tried to fix error.

* One more fix.

* Small imports fix.

* Fixed translations.

* Made fixes based on nits.

* Removed useless params.

* fix.

* Fixed errors, related to jest and __mocks__.

* Removed useless type definition.

* Replaced RendererHandlers with IInterpreterRendererHandlers.

* fixed supported_shareable.

* Moved elements back to canvas.

* Moved views to canvas, removed expression service and imported renderer to canvas.

* Fixed translations.

* Moved libs to presentation utils.

* Fixed types and removed function_wrapper.ts

* Fixed types of test helpers.

* Fixed imports.

* One more fix.

* Fixed public API.

* Moved css to component.

* Fixed spaces at element.

* Removed unused plugin.

* Basic setup of error plugin.

* Removed not used `function` files at `error` expression.

* Moved related components from canvas.

* Changed imports of components.

* Removed useless translations and fixed .i18nrc.json

* More fixes of i18nrc.

* Fixed async functions.

Written current code, based on https://github.com/storybookjs/storybook/issues/7745

* Fixed one test with Expression input.

After changing the way of rendering in stories, all elements are mounting and componentDidMount is involved. The previous snapshot was without
mounted `monaco` editor.

* generated plugin and copied code from expression_reveal_image

* fixed double import after merge.

* Changed all names from reveal_image to shape.

* moved shape to plugin and added all necessary configs

* Fixed translations, fixed all imports and debug of svg.

* `function` moved to `server`.

* One shape is rewritten to `React` and rendering is written with passing necessary props.

* changed default width and heigth.

* Added `ShapeHOC`.

* Shapes changed.

* small refactor.

* Removed useless import.

* one more refactor.

* Refactor + fix errors + updated limits.

* Changed ShapePreview from pure js to react and removed `dangerouslySetInnerHTML`

* Fixed types of viewbox.

* Changed types source for Shape components.

* small refactor.

* Fixed imports.

* Removed `shape` from `canvas`

* Updated docs.

* Basic setup of error plugin.

* Removed not used `function` files at `error` expression.

* Changed imports of components.

* Fixed errors, related to shape and autosuggestions.

* Fixed i18n for shape.

* Moved function from public to common and registered at server.

* Fixed types error.

* Fixed snapshots and shape mocks.

* Moved some libs from `presentations_util` to `expression_shape`

* Shape refactored.

* Shape picker fixed.

* Moved `Popover` back to `canvas`

* Removed `Popover` export from presentation_utils components.

* Moved error_component and debug_component from presentation_util to expression_error.

* Removed `.i18nrc.json`.

* Removed `.i18nrc.json`.

* Removed useless scss.

* Fixed color of `error`.

* added fixes of rebase.

* More fixes of rebase error .

* Removed useless .i18nrc.json file.

* More fixes.

* More fixes of rebase.

* One more fix.

* More fixes.

* Fixed limits and translations.

* Added.

* Fixed i18nrc.

* Fixed error..

* Moved shapes to async chunks.

* One more fix.

* Some fixes.

* Trying to fix the typecheck error.

* Added temp of drawer.

* Moved shapes to the async chunk in a less complex way.

* Made `ShapeDrawer` reusable among different `expressions`.

* Changed type of `shapes` from `any` and `Shape` to `string`.

* Made changes, based on nits.

* Removed not necessary changes.

* Moved all reusable libs to `expression_shapes`.

* Reduced the size of the bundle.

* Hope, fixed type check errors.

* Removed getDefaultShapeData.

* Removed `getViewBox` from bundle.
2021-07-21 17:46:19 +03:00
Tyler Smalley
8460035eca [FTR] Skips Vega tests
Vega is using the deprecated date histogram interval, which is failing the ES promotion.

Skipping the tests for now to unblock the snapshot promotion and the team can work to resolve the usage.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-07-21 07:43:49 -07:00
Wylie Conlon
482d3c71d1
[Sample data] Use Lens in ecommerce data (#106039)
* [Sample data] Use Lens in ecommerce data

* Fix tests

* Update from comments
2021-07-21 10:31:23 -04:00
Dario Gieselaar
3039db2ef4
[APM] Backends inventory & overview page routes (#106223) 2021-07-21 09:28:52 -04:00
Diana Derevyankina
2e0fddad45
[TSVB] Add more functional tests for Gauge and TopN (#105361)
* [TSVB] Add more functional tests for Gauge and TopN

* Update visual_builder_page.ts

* Update functions related to gauge color and filter ratio numerator in visual_builder_page

* Update visual_builder_page and add some more test subjects

* Update _tsvb_chart.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 15:59:34 +03:00
Ross Wolf
218c9c2514
Add toggle to enable/disable rule install from SOs (#106189)
* Add toggle to enable/disable rule install from SOs
* Fix lint and type tests
* Fix types for tests
* Enable prebuiltRulesFromSavedObjects with extra rules in fleet
* Restore rules and disable prebuiltRulesFromSavedObjects
* Pass explicit arguments instead of full config
* Set values in 'endpoint' setup
* Propagate prebuiltRulesFrom{FileSystem,SavedObjects} from configs
2021-07-21 08:08:15 -04:00
Josh Dover
2ad07bf53e
Improve unit test coverage of FS API calls (#106242) 2021-07-21 13:47:51 +02:00
Josh Dover
78769d7556
Remove recursive plugin status in meta field (#106286) 2021-07-21 13:39:09 +02:00