Commit graph

36427 commits

Author SHA1 Message Date
Lisa Cawley 8315ddb468
[DOCS] Add admonition to legacy monitoring page (#77667) 2020-09-18 08:50:24 -07:00
Peter Pisljar e361035650
Embeddable telemetry and reference extraction/injection (#74352) 2020-09-18 17:43:00 +02:00
Michael Olorunnisola ef55756b8c
[Security Solution][Resolver] Fix functional test (#77895) 2020-09-18 11:40:16 -04:00
Larry Gregory 32a8eb2aae
Remove legacy spaces plugin (#74532) 2020-09-18 10:15:14 -04:00
Nathan L Smith 418e444d36
Add CSM paths for uptime team to path labeller (#77661) 2020-09-18 15:56:30 +02:00
Shahzad e7a8aed594
[CSM] Fix total blocking time formatting (#77751) 2020-09-18 15:53:42 +02:00
Shahzad 477c812af2
[CSM]Fix wrong import path (#77644) 2020-09-18 15:52:26 +02:00
John Schulz 65387d4b39
Rollback the logger & try/catch changes from #77640 (#77806)
* Doing a try/catch and re-throwing doesn't gain us anything. We already catching the error in the route handler
 * We have logging for the issue in the existing handler. We also don't pass a logging context to functions
2020-09-18 09:49:12 -04:00
Larry Gregory 613509d81a
Improve home screen for limited-access users (#77665) 2020-09-18 08:54:08 -04:00
Joe Portner 5a31dce92d
Upgrade and consolidate prop-types and create-react-class (#77803) 2020-09-18 08:16:57 -04:00
Dario Gieselaar 217276e8a9
[APM] Align APM severity levels with ML (#77818) 2020-09-18 14:02:37 +02:00
Cauê Marcondes b08594ad5c
[APM] Bug: Set minimum scale to 1% for the Transaction error rate chart (#77861) 2020-09-18 13:53:42 +02:00
MadameSheema 6408fa54ed
[Security Solution] Adds "Creates timeline" Cypress test (#76836)
* adds "Creates timeline" test

* deletes timeline events spec

* completes assertions

* comments assertion

* fixes typecheck error

* waits for all the changes in the timeline to be performed before creating a new timeline and closing the toggle

* fixes failing problem

* fixes loop script

* makes test realiable on visual mode

* fixes merge issue

* makes test more reliable

* fixes typecheck issue

* fixes typecheck

* opens timeline from timeline settings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 12:59:45 +02:00
Jean-Louis Leysens 63bb3bf309
[ILM] Data tiers for 7.10 (#76126)
* wip

* Revert "wip"

This reverts commit 54b6f7ff3ec8b0f57b150ab2276d617686da9fb5.

* Revert "Revert "wip""

This reverts commit 63868b44ec60d7431c3a0189b16aeece1db2d38e.

* Refactor to using EUI button group component

- also moved node attr and node allocation component to inside
  new folder that contains all allocation components.
- only focussed on updating warm phase for now

* WIP: moved form UX more in line with EUI

- The described form group now has a switch for showing
  controls on the left.
- Refactored DataTierAllocation to CustomDataTierAllocation
- Removed 'node-roles' option
- Updated copy
- Moved JSX around a bit in the edit policy section to make logic
  simpler

* Refactor UI to reflect custom-ness of "Custom" and "None" options

- Still only implemented for warm, cold and frozen are still
  under way

* server side changes for getting node data

* double opt-in

* Refactored data tier allocation type

- Made types more explicit 'default', 'custom' and 'none'
- Fixed issue introduced by use useCallback on state setter -
  need to use the function setter pattern to not have stale data
  being set.

* Some refacoring, but main point is to add warning detection for
node roles.

- Refactored way we get node data to a provider component so that
  phases still have flexibility in how they render. Currently
  this also means that we fetch node stats data for each phase
  we render
- Created a callout for when there is no node role to which data
  can be allocated for the default setting
- Also updated the behaviour to render the entire form even when
  we cannot fetch node data for some reason. It is not ideal to
  not have node data, but we should not block the entire form.

* fix i18n

* fix type issue with deafult policies missing allocation type

* remove "undefined" as option for setting phase data

* Create referentially stable data setter for all phases - prevent infini-update

* fix type issue

* refactor data -> nodesData

* refactor cold phase for data tiers

* refactor frozen phase for data tiers

* fixed existing tests for warm section

* restored existing test coverage for cold phase and added test coverage for frozen

* fix api integration test

* remove unused translations

* slight UX update to turning on custom attribute allocation

* added scss file for data tier advanced section and other style
updates

* added tests for new warning

* fix types

* added correct copy for cold and frozen phases

* fix types and i18n

* implement copy feedback

* added spacer after the enable data tier allocation switch

* refactor to super select

* fix replicas copy

* update phase serialization for cold and frozen

* Refactor so that logic determining warnings lives together

- also factor out the warning of the node allocation component
- revisit copy for the allocation warning

* tier -> phase

* Added some much needed policy serialization test coverage

- also factored out policy allocation action serialization

* fix import paths and added required file header

* fix existing test coverage

* refine copy for data tier allocation recommended option

* fix showing warning for no node attrs

* fix inverted warning logic 🤦🏼‍♂️

* fix typing

* implement CJs copy feedback

* fix i18n

* remove unused or invalid translations

* provide ability to not alter original policy

* do not alter the original policy in the serilalization process

* fix jest tests

* Remove duplicate type and refactor NodeRole to NodeDataRole

Also deleted unused component "AdvancedSection" for now

* added comment to "false" typing

* revised and refactored copy based on feedback

* address copy feedback

* update kibana schema to allow migrate: { enabled: false }

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 12:14:49 +02:00
Pete Harverson b9958babf3
[ML] Transforms: Fixes styling of preview grid pagination in summary step (#77789) 2020-09-18 11:05:31 +01:00
Anton Dosov 827ee5c406
[Drilldowns] Beta badge support. Mark URL Drilldown as Beta (#75654)
Team agreed that we'd like to release URL drilldown MVP as Beta.

Reasons for it:
1. Caveats in current URL drilldown UX (dummy values in preview, too vague triggers, {{event.points}} hack). It might that improving those would require a breaking change in an API. We will do our best to handle changes with migrations, but there could be edge cases we won't be able to cover.
2. We decided not to rush with extending url templating capabilities with more helpers. We could find out from early feedback that essential helpers are required. Even though this won't be breaking, worth mentioning here.
3. Since URL drilldown is a new feature and relies on user's input, we might get early feedback that would required us for a significant changes in the feature. Make it Beta gives us more room for a pivot in this case.
4. API Action concept might change how we reason about URL drilldown

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 11:10:42 +02:00
Aleh Zasypkin 9a0dfcff04
Re-enable session lifespan, idle timeout api integration tests and use unique names for the security test reports. (#77746) 2020-09-18 11:08:10 +02:00
Gidi Meir Morris 3101ca3195
[Alerting] renames code in alerting RBAC exemption to make it easier to maintain (#77598)
Refactor of code to make it a little clearer what it's doing and improve maintenance.
2020-09-18 09:54:49 +01:00
Gidi Meir Morris fd624b1077
[Alerting & Actions] Overwrite SOs when updating instead of partially updating (#73688)
This PR changes the Alerts & Actions clients to ensure they require full updates (rather than partial) to SOs and overwrites the entire document when making the update.
This is to prevent the situation where nested objects get _merged_ instead of replaced when a user makes an `update`.

We also enhanced the EncryptedSavedObjectsClient to allow specified `id`s when overwriting an existing object.
2020-09-18 09:53:35 +01:00
Gidi Meir Morris c7abea0c51
fixed react warning in Suspense in alert flyout (#77777) 2020-09-18 09:51:18 +01:00
Cauê Marcondes e7b0e28237
[APM] Track usage of Gold+ features (#77630)
* adding license check

* fixing api test

* refactoring
2020-09-18 10:14:13 +02:00
Alexey Antonov 89ef12eaa1
Visualize: Bad request when working with histogram aggregation (#77684)
* Visualize: Bad request when working with histogram aggregation

Closes: #77023

* ✏️ Add some more fix context

*  Add test

Co-authored-by: dej611 <dej611@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 10:40:19 +03:00
Pierre Gayvallet 3759063e81
remove legacy ES plugin (#77703)
* remove legacy ES plug

* fix types

* delete some `legacy/core_plugins` references

* fix type
2020-09-18 09:30:13 +02:00
Marta Bondyra eb825db09e
[Lens] change name of custom query to filters (#77725) 2020-09-18 08:43:12 +02:00
spalger 6122610374 skip flaky suite (#76239) 2020-09-17 22:35:53 -07:00
Spencer 12e614d6ac
remove visual aspects of baseline job (#77815)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 19:40:15 -07:00
spalger 5d7c60f0ae skip flaky suite (#77835) 2020-09-17 17:51:47 -07:00
Lisa Cawley 3c597d0718
Fixes typo in data recognizer text (#77691) 2020-09-17 15:32:29 -07:00
Jonathan Budzenski aba1494b37 management/update trusted_apps jest snapshot 2020-09-17 15:54:37 -05:00
Tyler Smalley 54a2d90aac
[build] Use Elastic hosted UBI minimal base image (#77776)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-09-17 13:53:10 -07:00
Søren Louv-Jansen fb6292965b
[APM] Add transaction error rate alert (#76933) 2020-09-17 22:38:14 +02:00
Devin W. Hurley becb137835
[Security Solution] [Detections] Remove file validation on import route (#77770)
* utlize schema.any() for validation on file in body of import rules request, adds new functional tests and unit tests to make sure we can reach and don't go past bounds. These tests would have helped uncover performance issues io-ts gave us with validating the import rules file object

* fix type check failure

* updates getSimpleRule and getSimpleRuleAsNdjson to accept an enabled param defaulted to false

* updates comments in e2e tests for import rules route

* fix tests after adding enabled boolean in test utils
2020-09-17 16:27:44 -04:00
Constance 0a21d70560
[Enterprise Search][tech debt] Add Kea logic paths for easier debugging/defaults (#77698)
* Add Kea logic paths for easier debugging/defaults

* PR feedback: prefer snake_case to match file names, use exact file name for last path key

* Document Kea + casing logic
2020-09-17 13:04:00 -07:00
John Schulz 8fd71ac489
[Ingest Manager] Return 400 (not 500) when given a bad kuery param (#77796)
* Add tests. Add default error handler to 2 routes

* Add more API tests for /fleet/agent/events?kuery=

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 15:32:29 -04:00
Charlie Pichette 6c57afcddc
Issue 77701 Remove flaky tests (#77790) 2020-09-17 13:28:26 -06:00
Michael Olorunnisola f64aa5b58d
[Security Solution][Resolver] Analyzed event panel styling (#77671) 2020-09-17 15:14:21 -04:00
Tim Sullivan d22c47d47b
[Reporting/Config] allow string representations of duration settings (#74202)
* [Reporting/Config] use better schema methods

* add createMockConfig

* update documentation

* fix observable.test

* add docs links to common options page

* make the schema match the docs

* wording edits per feedback

* self edits

* todo comment

* fix tests

* feedback change 1

* schema utils

* fix goof

* use objects for the defaults when available

* fix pollInterval

* fix snapshots

* Update report_listing.tsx

* call new ByteSizeValue on server side only

* revert xpack.reporting.poll

* fix ts

* fix snapshot

* use correct input for duration

* revert reorganize imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 12:04:01 -07:00
Patrick Mueller 791eb515b8
Update server-log.asciidoc (#77794)
This is a re-do of PR #74063, which was merged to the wrong branch

Co-authored-by: Nimex94 <34445912+Nimex94@users.noreply.github.com>
2020-09-17 15:01:39 -04:00
Nicolas Chaulet 2e15faeadc
Fix isInitialRequest (#76984) 2020-09-17 14:40:36 -04:00
Brandon Morelli 12cd179e12
docs: fix temp link (#77005) 2020-09-17 10:45:39 -07:00
Frank Hassanabad 9497d62d4a
[Security Solution][Detection Engine] Fixes degraded state when signals detected are between 0 and 100 (#77658)
## Summary

Fixes: https://github.com/elastic/kibana/issues/77342

No easy way to unit test/end to end test this as it was operating correctly before and passed all of our tests, it was just running in a slow state if you had between 0 and 100 signals. The best bet is that you hand run the tests from 77342 or use a large look back time to ensure de-duplicate does not run as outlined in 77342.


Also this PR removes a TODO block, a complexity linter issue we had, a few await that were there by accident, and pushes down arrays to make things to be cleaner.
2020-09-17 11:41:57 -06:00
Quynh Nguyen d88b3a6dde
[ML] Migrate internal urls to non-hash paths (#76735)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 12:09:08 -05:00
Alison Goryachev 11f100b1ac
[Mappings editor] Add support for histogram field type (#76671) 2020-09-17 12:41:21 -04:00
Robert Austin 53c8fad233
[Resolver] Fixup assets file (#77766)
* Fix useUiSetting import

* remove unused exports
2020-09-17 12:30:07 -04:00
Cauê Marcondes 9c90c14b25
[APM] Show accurate metrics for containerized applications (#76768)
* adding cgroup fields

* calculate the memory based on the cgroup fields otherwise use the system fields

* updating script

* adding api tests

* using cgroup fields on service map

* addressing PR comment

* fixing unit test

* fixing test

* changing api tests to use snapshot

* removing inactive_files from calculation

* fixing test

* refactoring painless script

* addressing PR comment

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 18:13:06 +02:00
Pierre Gayvallet 161a74f732
remove legacy security plugin (#75648)
* remove legacy security plugin

* remove legacy plugin check

* adapt mocha tests

* update CODEOWNERS
2020-09-17 18:00:04 +02:00
Constance 03e3c85228
[Enterprise Search] Add read-only mode interceptor and error handler (#77569)
* Add readOnlyMode prop + callout to Layout component

* Update HttpLogic to initialize readOnlyMode from config_data

+ update App Search & Workplace Search layout to pass readOnlyMode state
- update passed props test to not refer to readOnlyMode, so as not to confuse distinction between props.readOnlyMode (passed on init, can grow stale) and HttpLogic.values.readOnlyMode (will update on every http call)

- DRY out HttpLogic initializeHttp type defs

* Update enterpriseSearchRequestHandler to pass read-only mode header

+ add a custom 503 API response for read-only mode errors that come back from API endpoints (e.g. when attempting to create/edit a document) - this is so we correctly display a flash message error instead of the generic "Error Connecting" state

+ note that we still need to send back read only mode on ALL headers, not just on handleReadOnlyModeError however - this is so that the read-only mode state can updates dynamically on all API polls (e.g. on a 200 GET)

* Add HttpLogic read-only mode interceptor

- which should now dynamically listen / update state every time an Enterprise Search API call is made

+ DRY out isEnterpriseSearchApi helper and making wrapping/branching clearer

* PR feedback: Copy
2020-09-17 08:43:40 -07:00
Stratoula Kalafateli 3cf41674f5
Aligns the y axis settings on horizontal mode (#77585) 2020-09-17 18:38:43 +03:00
Michail Yasonik 4bf0932500
Adding meta data and highlighting to nav search (#77662) 2020-09-17 10:11:04 -05:00
Michail Yasonik 102be1ba39
Fix memory leak in query_string_input (#77649) 2020-09-17 10:05:47 -05:00