Commit graph

41644 commits

Author SHA1 Message Date
Spencer
0551472cd9
[jest] switch to jest-environment-jsdom (#95125)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 08:47:10 -07:00
Nathan L Smith
de3a7d6f0d
Use es instead of legacyEs in APM API integration test (#95303)
References #83910.
2021-03-24 10:45:51 -05:00
John Schulz
3639aa4422
[Fleet] Bulk reassign response should include all given ids (#95024)
## Summary
`/agents/bulk_reassign` should return a response with a result for each agent given; including invalid or missing ids. It currently filters out missing or invalid before updating. This PR leaves them in and includes their error results in the response. 

[Added/updated tests](https://github.com/elastic/kibana/pull/95024/files#diff-7ec94bee3e2bae79e5d98b8c17c17b26fad14736143ffa144f3e035773d4cad1R113-R128) to confirm

### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 11:44:22 -04:00
Constance
759a52c74d
[App Search] Add describe('listeners') blocks to older logic tests (#95215)
* Add describe('listener') blocks to older logic tests

* [Misc] LogRetentionLogic - move 2 it() blocks not within a describe() to its parent listener
2021-03-24 08:36:23 -07:00
Anton Dosov
1527ab510b
[Search Sessions] Improve search session name edit test (#95152) 2021-03-24 16:01:52 +01:00
Felix Stürmer
cf33d72442
[Logs UI] Tolerate log entries for which fields retrieval fails (#94972) 2021-03-24 15:52:41 +01:00
Dima Arnautov
edaa64f150
[ML] Functional tests for Anomaly swim lane (#94723)
* [ML] update @elastic/charts

* [ML] swim lane service, axes tests

* [ML] check single cell selection and current URL

* [ML] clear selection

* [ML] assert anomaly explorer charts

* [ML] fix unit test

* [ML] assert anomalies table and top influencers list

* [ML] update apiDoc version

* [ML] exclude host from the URL assertion

* [ML] clicks view by swim lane

* [ML] fix method for cell selection

* [ML] brush action tests

* [ML] use debug state flag

* [ML] declare window interface

* [ML] pagination tests

* [ML] enable test

* [ML] scroll into view for swim lane actions

* [ML] rename URL assertion method

* [ML] fix assertion for charts count

* [ML] extend assertion

* [ML] refactor test subjects selection

* [ML] fix assertSelection

* [ML] reduce timeout for charts assertion
2021-03-24 10:38:58 -04:00
ymao1
d5883beb25
Adding ES query rule type to stack alerts feature privilege (#95225) 2021-03-24 10:19:35 -04:00
Tiago Costa
017a2b8413
skip flaky suite (#94535) 2021-03-24 13:46:38 +00:00
Tiago Costa
2dea06f5a4
skip flaky suite (#94545) 2021-03-24 13:43:00 +00:00
Jean-Louis Leysens
edfdb78957
[Console] Clean up use of any (#95065)
* cleaned up autocomplete.ts and get_endpoint_from_postition.ts of anys

* general clean up of lowering hanging fruit

* cleaned up remaining anys, still need to test

* fix remaining TS compilation issues

* also tidy up use of "as any" and some more ": any"

* addressed type issues and introduced the default editor settings object

* clean up @ts-ignore

* added comments to interface

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 14:05:08 +01:00
Joe Reuter
6295ae71b5
[Lens] Cache avilable operations meta data (#95034) 2021-03-24 14:04:19 +01:00
Ester Martí Vilaseca
326abc2a94
Add filters to query total groupings (#94792)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 13:51:20 +01:00
Ester Martí Vilaseca
ad1004519a
[Metrics UI] Fix preview charts for inventory alerts when using a filter (#94561)
* Pass filterQuery instead of filterQueryText to invertory alerts preview chart

* Add test to verify that filterQuery is sent to the expression chart

* Improve test description

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 13:45:56 +01:00
Joe Reuter
e6f4770213
[Lens] Add telemetry for popovers (#94903) 2021-03-24 13:24:31 +01:00
Matthias Wilhelm
cb61b4a8fd
[Discover] Move doc viewer table row actions to left (#95064)
* Move doc viewer table actions to left

* Improve SCSS
2021-03-24 12:09:19 +01:00
Joe Reuter
c218ce292a
[Lens] Add ability to remove runtime field (#94949) 2021-03-24 11:47:56 +01:00
Joe Reuter
f07b1722cb
[Lens] Implement filtered metric (#92589) 2021-03-24 11:44:23 +01:00
James Gowdy
fdda564a84
[ML] Adding additional runtime mapping checks (#94760)
* [ML] Adding additional runtime mapping checks

* adding functional test for datafeed preview

* renaming findFieldsInAgg

* updating query check

* always use runtime mappings if present in agg field exists check

* changes based on review

* updating tests based on review

* fixing permission check on endpoint and test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-24 10:29:46 +00:00
Aleh Zasypkin
3f3cc8ee35
Expose session invalidation API. (#92376) 2021-03-24 09:54:08 +01:00
Joe Reuter
585f6f2c5c
Make sure color mapping setting is respected for legacy palette (#95164) 2021-03-24 09:29:38 +01:00
Matthew Kime
52d0fc044a
update codeowners (#95249) 2021-03-23 22:52:44 -05:00
Stacey Gammon
1fc50005cc
Create best practices doc in developer guide (#94981)
* Create best_practies.mdx

* Update best_practices.mdx

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 18:54:03 -04:00
Scotty Bollinger
80b05b914a
[Workplace Search] Add missing tests to get 100% coverage (#95240) 2021-03-23 18:39:57 -04:00
Scotty Bollinger
3ff76fd022
[Workplace Search] Fix redirect and state for personal oAuth plugin (#95238)
* Move source added route to top-level index component

* Use state passed back from oAuth app to determine context

The previous tests weren’t actually using this state so they have been updated with actual state data for proper testing
2021-03-23 18:02:36 -04:00
Christiane (Tina) Heiligers
3cfb4f061e
Warns usage collection is internal only (#95121)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 16:44:51 -04:00
Larry Gregory
ba21c315c9
Document spaces telemetry fields (#95087) 2021-03-23 15:47:14 -04:00
Paul Tavares
8933037bd0
[Fleet] Add fleetServerEnabled config setting and use it in SO migration for Endpoint Policies (#95204)
* Add `agents.fleetServerEnabled` to plugin configuration
* Use feature flag in Endpoint package policy SO migration
2021-03-23 15:24:24 -04:00
Candace Park
3998a83871
[Security Solution][Endpoint][Admin] Refactor policy details protections (#94970) 2021-03-23 15:23:58 -04:00
Alejandro Fernández Haro
55e513364a
isClusterOptedIn should fallback to true when not found (#94980)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 15:23:23 -04:00
Scotty Bollinger
29ee309dd8
[App Search] Role mappings migration part 3 (#94763)
* Remove validaition of ID property in route body

The ID is inferred from the param in the URL. This was fixed in the logic file but the server route was never updated

* Add RoleMappings component

- ROLE_MAPPINGS_TITLE was moved to a shared constant in an earlier PR
- Also removing redundant exports of interface

* Add RoleMapping component

- Also removing redundant export of interface from AppLogic

* Add RoleMappingsRouter

ROLE_MAPPINGS_TITLE was moved to a shared constant in an earlier PR

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/role_mappings/index.ts

* Add route and update link in navigation

* Remove unused translations

* Change casing

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Change casing

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Change casing

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Add ability test

* Refactor conditional constants

* Refactor role type constants

* Remove EuiPageContent

* Refactor action mocks

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 15:18:11 -04:00
Stratoula Kalafateli
685aa20ba6
Set initial palette for new series (#95177)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 20:45:26 +02:00
Jen Huang
d886979e3b
[Fleet] Remove upgradePackage and consolidate it with installPackage, optimize calls to create index patterns (#94490)
* Add data plugin to server app context

* First attempt at switching to indexPatternService for EPM index pattern creation & deletion, instead of interacting directly with index pattern SOs

* Simplify bulk install package, remove upgradePackage() method in favor of consolidating with installPackage(), use installPackage() for bulk install instead

* Update tests

* Change cache logging of objects to trace level

* Install index patterns as a post-package installation operation, for bulk package installation, install index pattern only if one or more packages are actually new installs, add debug logging

* Allow getAsSavedObjectBody to return non-scripted fields when allowNoIndex is true

* Allow `getFieldsForWildcard` to return fields saved on index pattern when allowNoIndices is true

* Bring back passing custom ID for index pattern SO

* Fix tests

* Revert "Merge branch 'index-pattern/allow-no-index' into epm/missing-index-patterns"

This reverts commit 8e712e9c00, reversing
changes made to af0fb0eaa8.

* Allow getAsSavedObjectBody to return non-scripted fields when allowNoIndex is true

(cherry picked from commit 69b93da180)

* Update API docs

* Run post-install ops for install by upload too

* Remove allowedInstallTypes param

* Adjust force install conditions

* Revert "Update API docs"

This reverts commit b9770fdc56.

* Revert "Allow getAsSavedObjectBody to return non-scripted fields when allowNoIndex is true"

This reverts commit afc91ce32f.

* Go back to using SO client for index patterns :(

* Stringify attributes again for SO client saving

* Fix condition for reinstall same pkg version

* Remove unused type

* Adjust comment

* Update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 11:34:20 -07:00
Stacey Gammon
2ed2cfe52f
update api docs (#95154) 2021-03-23 14:31:08 -04:00
Phillip Burch
dc1f7d51d4
[Metrics UI] Add anomalies table to flyout (#90305)
* Add anomalies table to flyout

* Fix type

* Update i18n

* use anomalyThreshold from configuration

* use EuiBasicTable and format date

* add actions menu

* update text

* change host/k8s toggle to EuiComboBox

* add open in inventory to actions

* add search functionality back

* debounce api call

* loading messaging

* change types, cleanup

* query with partition field instead of influencers to prevent long query ES server errors

* show text when no jobs enabled

* adjust date

* close flyout after clicking show in inventory

* fix callout

Co-authored-by: neptunian <sandra.gonzales@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 14:14:05 -04:00
Jason Stoltzfus
97a03479e3
[App Search] Fix Relevance Tuning bugs (#95069) 2021-03-23 13:37:17 -04:00
Xavier Mouligneau
8a42049acb
[SECURITY SOLUTIONS] Bug top-n alerts (#94920)
* Associate timeline filter/query/dataprovider to top-n for alerts events

* fix pinned view when opening details panel

* fix top-n to bring the right raw/all indices

* review + do not add filter/query/dataprovider on Correlation/Pinned tab for topN

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 13:36:46 -04:00
Peter Pisljar
edb9453a83
adding kibana filter expression functions (#94069) 2021-03-23 18:29:26 +01:00
Joe Reuter
adeda3991d
Compress color maps (#94297) 2021-03-23 18:08:43 +01:00
Cauê Marcondes
134959d224
[APM] The Observability Getting Started page infinitely redirects, breaking browser's back button (#95083)
* fixing browser back button

* fixing test
2021-03-23 12:42:36 -04:00
Joe Reuter
b2433cdcd9
[Lens] Telemetry: Add missing operations (#95040) 2021-03-23 17:33:06 +01:00
Larry Gregory
a158f9d771
Remove duplicative RBAC tests (#95162) 2021-03-23 12:00:21 -04:00
Kaarina Tungseth
aa60c38318
Fixes links to docs (#94984)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 10:59:31 -05:00
Matthias Wilhelm
6a85841289
[Discover][EuiDataGrid] Add document navigation to flyout (#94439)
- allows the user to navigate to the previous and next document of the list in the document flyout

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2021-03-23 16:53:35 +01:00
Nicolas Chaulet
76b55207f7
[Fleet] Fix agent status count (#95099) 2021-03-23 11:24:25 -04:00
John Schulz
c0c5fba4b0
[Fleet] Support force flag in bulk upgrade agents API (#94952)
## Summary

0cbbb41da2 is just a rearrangement of the tests.  5cad301e87 has the real changes: 
* Bug fix: `force: true` should bypass any restrictions re: managed policies
* Refactoring towards new response shape coming as part of https://github.com/elastic/kibana/issues/90437
* Added test to confirm new behavior


### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-03-23 11:22:03 -04:00
James Rucker
f3b71bce2a
Change the type of content source errorReason to match ent-search (#95098)
A recent refactor of content source jobs models unintentionally
changed this API. This change restores the functionality of the
re-authentication "Fix" link.
2021-03-23 08:04:22 -07:00
Kaarina Tungseth
523cc3984a
[DOCS] Fixes Timelion link (#95168) 2021-03-23 09:49:33 -05:00
Larry Gregory
61db3f3cac
Only check required fields for the default space (#95147) 2021-03-23 10:45:59 -04:00
Anton Dosov
12d5464852
[QueryBar][KQL] Fix spaces are converted to non-breaking spaces in Safari. Support escaping unicode characters in KQL. Make non-breaking space part of a KQL grammar (#94688) 2021-03-23 15:31:27 +01:00