Commit graph

38449 commits

Author SHA1 Message Date
Søren Louv-Jansen
38aedcc264
[APM] Prefer APIReturnType over PromiseReturnType (#83843) 2020-11-20 12:35:58 +01:00
Søren Louv-Jansen
f741c63690
[Observability] Fix telemetry for Observability Overview (#83847) 2020-11-20 11:34:50 +01:00
Gidi Meir Morris
8aa7e13cb5
[Alerting] Adds generic UI for the definition of conditions for Action Groups (#83278)
This PR adds two components to aid in creating a uniform UI for specifying the conditions for Action Groups:
1. `AlertConditions`: A component that generates a container which renders custom component for each Action Group which has had its _conditions_ specified.
2. `AlertConditionsGroup`: A component that provides a unified container for the Action Group with its name and a button for resetting its condition.

This can be used by any Alert Type to easily create the UI for adding action groups with whichever UI is specific to their component.
2020-11-20 09:26:27 +00:00
Gidi Meir Morris
63cb5aee4e
ensure workload agg doesnt run until next interval when it fails (#83632)
Ensures the WorkloadAggregator doesn't retry immediately after errors, and instead retries on the next interval.
2020-11-20 09:23:08 +00:00
Jean-Louis Leysens
6cce21273b
[ILM] Policy form should not throw away data (#83077)
* fix ilm policy deserialization

* reorder expected jest object to match actual

* fix removal of wait for snapshot if it is not on the form

* add client integration test for policy serialization of unknown fields

* save on a few chars

* added unit test for deserializer and serializer

* Implement feedback

- move serializer function around a little bit
- move serialize migrate and allocate function out of serializer
  file

* Updated serialization unit test coverage

- removed the "forcemergeEnabled" meta field that was not being
  used
- added test cases for deleting of values from policies

* fixed minor issue in how serialization tests are being set up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-20 10:18:43 +01:00
Alejandro Fernández Haro
ff19bf548a
[Monitoring] Stop collecting Kibana Usage in bulkUploader (#83546) 2020-11-20 08:55:22 +00:00
Alexey Antonov
d77871a873
[TSVB] fix wrong imports (#83798) 2020-11-20 11:20:52 +03:00
Søren Louv-Jansen
68b5625e5a
[APM] Correlations UI POC (#82256) 2020-11-20 08:50:34 +01:00
Mikhail Shustov
54ee94d8e8
list all the refs in tsconfig.json (#83678) 2020-11-20 08:19:08 +01:00
Thomas Watson
131a1ba91a
Bump jest (and related packages) to v26.6.3 (#83724)
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-20 07:08:04 +01:00
Robert Oskamp
2b3fe1f7da
Functional tests - stabilize reporting tests for cloud execution (#83787)
This PR fixes some reporting API test failure that occurred during cloud execution.
2020-11-20 05:47:25 +01:00
spalger
2fef237ca0 Revert "[event_log] index event docs in bulk instead of individually (#80941)"
This reverts commit 5bfe665028.
2020-11-19 19:15:58 -07:00
Patrick Mueller
5bfe665028
[event_log] index event docs in bulk instead of individually (#80941)
resolves https://github.com/elastic/kibana/issues/55634
resolves https://github.com/elastic/kibana/issues/65746

Buffers event docs being written for a fixed interval / buffer size,
and indexes those docs via a bulk ES call.

Also now flushing those buffers at plugin stop() time, which
we couldn't do before with the single index calls, which were
run via `setImmediate()`.
2020-11-19 20:21:34 -05:00
Jonathan Budzenski
ffea2db9b3 skip test dashboard_to_url_drilldown 2020-11-19 17:15:26 -06:00
Scotty Bollinger
5beb47a1f7
[Workplace Search] Migrate additional shared source components (#83850)
* Initial copy/paste of components

Changes for pre-commit hooks were:

- Linting
- Lodash imports
- remove `any` type in favor of React.ReactNode
- Move setState to top of component

* Add image

* Update component paths

* Remove reference to ConfirmModal

Since all the legacy component does it wrap the EUI component we decided to drop it.

Legacy:
https://github.com/elastic/ent-search/blob/master/app/javascript/shared/components/ConfirmModal/ConfirmModal.tsx

* Remove local flash messages in favor of global flash messages

* Various type fixes

* Fix image location
2020-11-19 16:43:18 -06:00
Phillip Burch
bc49b5beda
[Metrics UI] Add logs to node details (#83433)
* Add charts to the metrics tab

* Add timepicker, i18n, polish

* Fix copyrite

* Add log stream component to node details

* Add logs tab with ability to search

* Update i18n

* Apply suggestions from code review

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update comment

* Fix lint

* Fix eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2020-11-19 16:06:29 -06:00
Matthew Kime
48ac9f706e
[index patterns] Field custom name => custom label (#83717)
* custom name => custom label
2020-11-19 16:03:05 -06:00
Devin W. Hurley
b3c334a1d9
[Security Solution] [Detections] Adds scripts to create users + roles based on specific privileges (#81866)
* shell scripts for creating roles + users for testing

* update readme's and updated privilege requirements based on testing with the users and inferring what the roles are supposed to do

* update role privileges based on feedback meeting yesterday

* updated scripts to accept filepath to role / user, added a test to ensure upload value list button is disabled

* updated role scripts to be parameterized

* adds login with role function and adds a sample test with a role to test that a t1 analyst user cannot upload a value list

* add object with corresponding roles

* fix spacing

* parameterize urls for basic auth with roles + users

* forgot to change the cy.visit string

* add KIBANA_URL env var for cli runner

* add env vars for curl script execution

* second script

* update readme's for each role and remove create_index from lists privilege for the soc manager role

* remove 'manage' cluster privilege for rule author

* remove 'create_index' privilege from soc_manager role since that is not parity with the security workflows spreadsheet

* update the login function logic with glo's feedback

* replace SIEM with Security Solution in markdown files

* make role param optional not just undefined

* remove unused file

* add copyright to scripts files

* update top-level README for roles scripts

* remove reference to internal spreadsheet and reference readme for this pr

* remove unnecessary -XPOST and remove verbose mode from post_detections_user script

* adds utils for running integration tests with other users and adds two sample tests showing example usage

* minor type updates and small refactor

* fix x-pack/test types

* use enum types instead of custom type

* fix path to json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-11-19 16:02:03 -05:00
Spencer
45d3861219
Revert lmdb-store upgrade (#83830)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 13:10:58 -07:00
ymao1
e45b76c1b2
[Alerting] Add alert.updatedAt field to represent date of last user edit (#83784)
* Adding alert.updatedAt field that only updates on user edit

* Updating unit tests

* Functional tests

* Updating alert attributes excluded from AAD

* Fixing test

* PR comments

* Unskipping tests and updating es archiver data
2020-11-19 14:52:16 -05:00
Scotty Bollinger
ad5cf9e78b
[Workplace Search] Migrate AddSource tree (#83799)
* Initial copy/paste of components

Changes for pre-commit hooks were:

- Linting
- Lodash imports
- changed enum names in add_source because there were collistions with component names. So SaveConfig becomes SaveConfigStep because there is a component by the same name
- replaced apostrophe’s with ‘&apos;’ per lint rule

Finally, the linter didn’t like this expression:

asOauthRedirect ? onOauthFormSubmit() : onCredentialsFormSubmit();

… so I changed it to:

const onSubmit = hasOauthRedirect
  ? onOauthFormSubmit
  : onCredentialsFormSubmit;

 onSubmit();

* Add route helper

* Remove AppView, Sidebar navigation and FlashMessages

Sidebar copy and breadcrumbs will be recreated at the top level in a separate PR

* Update component paths

* Use Kibana’s hasPlatinumLicense over minimumPlatinumLicense

* Various TypeScript lint fixes

* Fix index paths

* Remove in-page breadcrumbs and move sidebar copy

In Kibana, breadcrumbs will be at the top-level and not in the view

Also, we have no sidebar with contextual copy. The Figma designs call for this copy to be above the main content. For now I am placing this in the existing ViewContentHeader component.

This will be slightly broken because of the structure of ViewContentHeader but that is expected for now since it cannot be rendered in the browser yet to fix

* Temporarily add parseQueryParams

This is a placeholder until https://github.com/elastic/kibana/pull/83750 lands

* Remove optional from isOrganization

Looks like the value is always passed

* Remove ‘!!’
2020-11-19 13:32:29 -06:00
Søren Louv-Jansen
3d0770ffb0
[APM] Make route tags required (#83801) 2020-11-19 19:51:12 +01:00
Phillip Burch
f793d9b719
[Metrics UI] Add metrics to node details (#83357)
* Add charts to the metrics tab

* Add timepicker, i18n, polish

* Fix copyrite

* Update x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/chart_header.tsx

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Style changes

* More pr feedback

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2020-11-19 12:50:06 -06:00
Scotty Bollinger
40d4787620
[Enterprise Search] Add parseQueryParams helper (#83750)
* [Enterprise Search] Add parseQueryParams helper

This PR migrates part of the ent-search queryParams util, `parseQueryParams` for use in Workplace Search.

`setQueryParams` was no a part of this PR because it is only used one time in App Search and a better alternative might be available for that use-case

* Remove mock

* Actually test functionality of query-string

* Add test for array

* Better test name
2020-11-19 12:47:37 -06:00
Jonathan Budzenski
6c23302b36
[cli] Add bin/kibana-encryption-keys (#82838)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2020-11-19 12:41:48 -06:00
Larry Gregory
7f962e5839
Removing circular dependency between spaces and security (#81891)
* Removing circular dependency between spaces and security

* Apply suggestions from code review

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Tests refactor

- Reorganize top level describes into 3 space-based blocks into based on spaces:
  - space disabled
  - spaces plugin unavailable
  - space enabled (most previous tests go under this new block) with new beforeEach

- wrote new tests for uncovered lines 58, 66-69

* Review1: address PR feedback

* changing fake requests for alerts/actions

* Fixing tests

* fixing more tests

* Additional testing and refactoring

* Apply suggestions from code review

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* Review 2: Address feedback

* Make ESLint happy again

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2020-11-19 13:41:13 -05:00
Christos Nasikas
1d5701d209
[Security Solution][Detections] Enable new actions (#83781)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 19:50:52 +02:00
Jen Huang
51359197af
Adjust suggestions list label and description widths (#83739) 2020-11-19 09:23:23 -08:00
Chris Roberson
a24606d035
Fix small issue with detecting missing monitoring data from APM (#83646)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 12:16:19 -05:00
Jonathan Budzenski
f220313edb skip "Dashboards linked by a drilldown are both copied to a space" (#83824) 2020-11-19 11:08:37 -06:00
Patrick Mueller
f83e06f718
[alerts] adds action group and date to mustache template variables for actions (#83195)
resolves: https://github.com/elastic/kibana/issues/67389

Adds new variables to the existing set of variables that can be used in mustache templates to be used in action parameters when creating alerts.

- `alertActionGroup` - the action group associated with the alert scheduling actions
- `date` - the current date, in ISO format
2020-11-19 12:01:44 -05:00
Tiago Costa
5211dfe990
skip flaky suite (#79389) 2020-11-19 16:52:26 +00:00
Kaarina Tungseth
57b7702314
[DOCS] Reallocates limitations to point-of-use (#79582)
* [DOCS] Reallocates limitations to point-of-use

* KQL changes

* Removed limitations file

* Review comments
2020-11-19 10:49:27 -06:00
Constance
44eba4f953
[Enterprise Search] Engine overview layout stub (#83756)
* Set up Overview file

* Finish Overview page logic, stub out empty/metric views

* Stub in basic empty engine overview
- Minus document creation button & API code example

* Stub out EngineOverviewMetrics and unavailable empty prompt

* Stub out EngineOverMetrics components (stats, charts, logs)

* [Refactor] Pull out some document creation i18n strings to constants

- They're repeated/reused by the DocumentCreationPopover component

* PR feedback: Drop the regex

* PR feedback: RecentLogs -> RecentApiLogs

* PR feedback: Copy

* PR feedback: Copy, sentence-casing

* I forgot to rebase against my own PR :dead_inside:
2020-11-19 08:21:40 -08:00
Corey Robertson
235cef7d14
Disable exporting/importing of templates. Optimize pitch images a bit (#83098)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 11:16:43 -05:00
Kaarina Tungseth
02cda96229
[DOCS] Consolidates plugins (#83712) 2020-11-19 09:44:17 -06:00
James Gowdy
78d7bfdf97
[ML] Space management UI (#83320)
* [ML] Space management UI

* fixing types

* small react refactor

* adding repair toasts

* text and style changes

* handling spaces being disabled

* correcting initalizing endpoint response

* text updates

* text updates

* fixing spaces manager use when spaces is disabled

* more text updates

* switching to delete saved object first rather than overwrite

* filtering non ml spaces

* renaming file

* fixing types

* updating list style

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 15:26:01 +00:00
Lee Drengenberg
441b473f8e
test just part of the message to avoid updates (#83703) 2020-11-19 09:21:40 -06:00
Daniil
b263145ba2
[Data Table] Remove extra column in split mode (#83193)
* Fix extra column in split table

* Update table exports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 18:02:40 +03:00
Dario Gieselaar
5d05eeaab9
Improve snapshot error messages (#83785) 2020-11-19 15:58:15 +01:00
Tiago Costa
25c3b4c95e
skip flaky suite (#83773) 2020-11-19 14:56:34 +00:00
Tiago Costa
2cff5aad3c
skip flaky suite (#83771) 2020-11-19 14:51:45 +00:00
Tiago Costa
ca52649597
skip flaky suite (#65278) 2020-11-19 14:48:51 +00:00
Tiago Costa
3a870bf24f
skip flaky suite (#83793) 2020-11-19 14:45:36 +00:00
Gidi Meir Morris
3b0215c26b
[Task Manager] Ensures retries are inferred from the schedule of recurring tasks (#83682)
This addresses a bug in Task Manager in the task timeout behaviour. When a recurring task's `retryAt` field is set (which happens at task run), it is currently scheduled to the task definition's `timeout` value, but the original intention was for these tasks to retry on their next scheduled run (originally identified as part of https://github.com/elastic/kibana/issues/39349).

In this PR we ensure recurring task retries are scheduled according to their recurring schedule, rather than the default `timeout` of the task type.
2020-11-19 14:37:28 +00:00
Matthew Kime
4009edc3dd
[index patterns] improve index pattern cache (#83368)
* cache index pattern promise, not index pattern
2020-11-19 07:45:45 -06:00
Nicolas Chaulet
1b6cfe819d
[Fleet] Rename ingestManager plugin ID fleet (#83200) 2020-11-19 08:43:14 -05:00
Gidi Meir Morris
ffdc507668
fixed pagination in connectors list (#83638)
Ensures we specify the page on the EuiTable so that pagination is retain after rerenders.
2020-11-19 12:50:26 +00:00
John Schulz
514b50e4c2
Forward any registry cache-control header for files (#83680)
closes #83631 

### Problem
Assets are served with a `cache-control` header that prevents any caching
<img src="https://user-images.githubusercontent.com/640/99534379-517d2300-2975-11eb-8c05-4fb3f127c52b.png"/>

### Root cause
Likely from this code 2a365ff632/src/core/server/http/http_tools.ts (L40-L43)

Also based on these tests, it seems this is default/expected behavior

b3eefb97da/src/core/server/http/integration_tests/router.test.ts (L510-L520)

### Proposed solution
Set the header via the response handler as shown in this test:
b3eefb97da/src/core/server/http/integration_tests/router.test.ts (L522-L536)

### This PR
If this registry response contains a `cache-control` header, that value is included in the EPM response as well

In `master`, which points to `epr-snapshot`
<img width="742" alt="Screen Shot 2020-11-18 at 12 33 47 PM" src="https://user-images.githubusercontent.com/57655/99568352-4fc75580-299d-11eb-962f-6ff28fa9510d.png">
which matches https://epr-snapshot.elastic.co/package/apache/0.2.6/img/logo_apache.svg

or using `epr.elastic.co`, 
<img width="781" alt="Screen Shot 2020-11-18 at 12 31 56 PM" src="https://user-images.githubusercontent.com/57655/99568350-4fc75580-299d-11eb-966e-f3489c13edb5.png">
which matches https://epr.elastic.co/package/apache/0.2.6/img/logo_apache.svg
2020-11-19 07:19:41 -05:00
Ying Mao
6a2c415a98 Revert "[Alerting] Add alert.updatedAt field to represent date of last user edit (#83578)"
This reverts commit acc3e2f443.
2020-11-19 06:08:56 -05:00