Commit graph

60883 commits

Author SHA1 Message Date
Kibana Machine
4e5595b92b
[api-docs] 2023-02-16 Daily api_docs build (#151397)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/250
2023-02-16 00:54:26 -05:00
Davis McPhee
4525c4b4e4
[Discover] Fix issue where editing a data view causes the UI to become out of sync (#150830)
## Summary

Let's try this again with a simpler and hopefully more robust approach.
This PR fixes the issue where editing a data view in Discover causes the
UI to become out of sync with the current data view due to the stable
object identity.

Fixes #149857.
Fixes #150740.

### Checklist

- [ ] ~Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
- [ ]
~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [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
- [ ] ~Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
- [ ] ~This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [ ] ~This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2023-02-15 19:53:23 -04:00
Philippe Oberti
70f6eb2b4d
[TIP] fix policies not shown in add to blocklist flyout (#151088)
https://github.com/elastic/kibana/issues/150848
2023-02-15 16:18:34 -06:00
Xavier Mouligneau
e87d3a151c
[RAM] bug on _run_soon API (#151218)
## Summary

FIX https://github.com/elastic/kibana/issues/149432


### 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
2023-02-15 15:13:44 -07:00
Alexi Doak
467891e760
[ResponseOps] [Alerting] Add warning to Edit Rule Flyout when publicUrl is not configured (#149832)
Resolves https://github.com/elastic/kibana/issues/144890

## Summary

Added a warning to the rule flyout that will warn users about using
`context.alertDetailsUrl` and `context.viewInAppUrl` in an input or text
area when they do not have `publicUrl` set in their kibana config.

**Warning:**
<img width="605" alt="Screen Shot 2023-02-01 at 11 18 17 AM"
src="https://user-images.githubusercontent.com/109488926/216102190-f41b4af0-5e40-4529-8668-68e2f57c5046.png">

<img width="586" alt="Screen Shot 2023-02-01 at 11 18 26 AM"
src="https://user-images.githubusercontent.com/109488926/217331719-2f5b18e3-62e8-42be-b389-101538e05b9b.png">

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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


### To verify

- Remove your kibana config for `server.publicBaseUrl`, and create a
rule with a connector. Add the context variables
`context.alertDetailsUrl` or `context.viewInAppUrl` and verify that a
warning shows up in the form.
- Add `server.publicBaseUrl` to your kibana config, and create a rule
with a connector. Add the context variables `context.alertDetailsUrl` or
`context.viewInAppUrl` and verify that a warning shows does **not** show
in the form.
- You should try this for multiple connectors to verify that the
warnings are configured correctly for them.
2023-02-15 12:53:38 -08:00
Cee Chen
af25a3e073
Upgrade EUI to v75.1.0 (#151200)
## Summary

`eui@75.0.0`  `eui@75.1.0`

---

## [`75.1.0`](https://github.com/elastic/eui/tree/v75.1.0)

- Added padding to `EuiStep` title to better align with icon
([#6555](https://github.com/elastic/eui/pull/6555))
- Added a new `lineNumbers.annotations` API to `EuiCodeBlock`. This new
feature displays an informational icon next to the specified line
number(s), providing more context via popover
([#6580](https://github.com/elastic/eui/pull/6580))

**Bug fixes**

- Fixed bug in `EuiRange` where styles were applied incorrectly when
custom ticks were passed but `showTicks` were false
([#6588](https://github.com/elastic/eui/pull/6588))
- Fixed `fleetApp` and `agentApp` icons that were swapped
([#6590](https://github.com/elastic/eui/pull/6590))

**CSS-in-JS conversions**

- Converted `EuiSteps` to Emotion; Removed `$euiStepStatusColorsToFade`,
`$euiStepNumberSize`, `$euiStepNumberSmallSize`, and
`$euiStepNumberMargin`
([#6555](https://github.com/elastic/eui/pull/6555))
2023-02-15 11:17:29 -08:00
Jordan
d0ec60de30
[Cloud Security] Add CTA to findings delayed state (#151325) 2023-02-15 12:15:12 -07:00
Dzmitry Lemechko
6a4bdf247f
update dependency playwright to ^1.30.0 (#151106)
## Summary

Currently we use 1.27.1 that comes with bundled Chromium 107.0.5304.18
(released September 28, 2022)

Updating playwright to use the recent [Chromium
110](https://github.com/microsoft/playwright/releases/tag/v1.30.0) for
testing.
2023-02-15 12:11:06 -07:00
Kevin Delemme
0757c69a79
feat(slo): Add custom kql filter into APM indicator types (#150936) 2023-02-15 13:47:47 -05:00
Kevin Delemme
a4de864acc
feat(slo): support apm latency indicator type (#150785) 2023-02-15 13:43:17 -05:00
Christiane (Tina) Heiligers
4e1b4c299c
Core to SharedOX ownership Transfer: Updates code owners for handover to sharedUX (#151213)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 11:33:39 -07:00
Jordan
0a66d93f5c
[Cloud Security] Showing full cloud.account.id for cspm accounts (#151265) 2023-02-15 10:31:48 -08:00
Angela Chuang
2205ba7488
[SecuritySolution] Fix index filters (#151069)
## Summary
Relevant issues: 
https://github.com/elastic/kibana/pull/148681/files#r1104594568
https://github.com/elastic/kibana/pull/136407

Please enable feature flag: chartEmbeddablesEnabled

### Steps to verify:
1. Check the selected index patterns you have from the sourcerer
2. Inspect KPIs on host / network / users pages, make sure it matches
the selected index patterns from the sourcerer
3. Click `...` button of each KPIs and `Open in Lens`, Inspect >
request, and check the displayed index patterns matches index filters.

### Before: Indices were missing from the inspect panel:
<img width="2554" alt="Screenshot 2023-02-13 at 19 50 47"
src="https://user-images.githubusercontent.com/6295984/218560779-0df2a1e6-072c-4ccc-8004-e92256fadd05.png">

Index patterns were missing from Lens inspect panel: 
<img width="1281" alt="Screenshot 2023-02-13 at 19 51 14"
src="https://user-images.githubusercontent.com/6295984/218560799-476614a6-fda2-452d-a043-47723c1bf13a.png">

### After:
<img width="2554" alt="Screenshot 2023-02-13 at 19 57 46"
src="https://user-images.githubusercontent.com/6295984/218561890-3ac6206f-ad64-46fe-88cd-ef11abce0651.png">
<img width="2560" alt="Screenshot 2023-02-13 at 19 58 11"
src="https://user-images.githubusercontent.com/6295984/218561897-b9d5046d-335e-4309-be9f-28025605434d.png">



### Checklist

Delete any items that are not applicable to this PR.


- [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
2023-02-15 11:12:27 -07:00
Patryk Kopyciński
e5895c30ba
[Defend Workflows] PoC of e2e endpoint testing (#148893) 2023-02-15 19:02:46 +01:00
Lisa Cawley
168b9fd395
[DOCS] Fix automated screenshot for ML rule notification (#151239)
Co-authored-by: Robert Oskamp <traeluki@gmail.com>
2023-02-15 10:00:47 -08:00
renovate[bot]
12ae1a966b
Update dependency chromedriver to v110 (main) (#151329)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [chromedriver](https://togithub.com/giggio/node-chromedriver) |
[`^109.0.0` ->
`^110.0.0`](https://renovatebot.com/diffs/npm/chromedriver/109.0.0/110.0.0)
|
[![age](https://badges.renovateapi.com/packages/npm/chromedriver/110.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/chromedriver/110.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/chromedriver/110.0.0/compatibility-slim/109.0.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/chromedriver/110.0.0/confidence-slim/109.0.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>giggio/node-chromedriver</summary>

###
[`v110.0.0`](https://togithub.com/giggio/node-chromedriver/compare/109.0.0...110.0.0)

[Compare
Source](https://togithub.com/giggio/node-chromedriver/compare/109.0.0...110.0.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMzguMyIsInVwZGF0ZWRJblZlciI6IjM0LjEzOC4zIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-15 11:56:50 -06:00
Jordan
1535378b45
[Cloud Security] Close rule flyout on outside click (#151313) 2023-02-15 12:49:35 -05:00
Stratoula Kalafateli
79b0f04d77
[Unified search] Add locale to the date picker (#151258)
## Summary

Part of https://github.com/elastic/kibana/issues/151051
Passes the locale to the Date Picker Component

<img width="479" alt="image"
src="https://user-images.githubusercontent.com/17003240/218985020-82046718-15bf-4684-8445-29db6c50a8f7.png">
2023-02-15 19:19:18 +02:00
Gergő Ábrahám
02eccd8081
[Security Solution] Fix flaky policy list page integration test (#150204)
## Summary

This PR updates the Policy List (used to be unit but now) integration
tests with the modifications that have been implemented since the test
was skipped, and tried to fix the flakiness.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 10:17:16 -07:00
Jon
ceb01e4100
[build] Fix chromium install path (#151208)
Fixes an issue introduced in 1b85815402

Currently during builds chromium is installed to the `x-pack/reporting`
directory. Under the new package management system plugins are installed
in node_modules, and the reporting plugin is not able to find the path
of chromium. This patches the path.

Ideally we could install chromium before the plugin is installed as a
package, but plugin installation is run once for all platforms, and
later reporting is run for each platform.

https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/1222
2023-02-15 11:15:17 -06:00
Nathan L Smith
6c828cf72d
Add ReactQueryDevTools to cases (#151180)
I noticed the fleet plugin is also using React Query and has the dev
tools enabled. This adds the same to cases.

![CleanShot 2023-02-14 at 11 01
37](https://user-images.githubusercontent.com/9912/218806318-5acb21d3-e24b-46e3-8b2e-2c845e658ab3.gif)
2023-02-15 11:03:59 -06:00
Jordan
1ef33c488f
[Cloud Security] Center evaluation badge text (#151261) 2023-02-15 18:58:05 +02:00
Jordan
75812a725d
[Cloud Security] Fix search bar UI for rule page (#151294) 2023-02-15 18:56:20 +02:00
Carlos Crespo
82b44b6399
[Infrastructure UI] Fix condition to show k8s dashboard link (#151279)
## Summary

closes #151273 

This PR fixes a bug when the Kubernetes Dashboards link is displayed. It
will only show when Kubernetes Pods is selected


![out](https://user-images.githubusercontent.com/2767137/219019027-2b6624e9-2396-4950-b34e-5090ff170577.gif)

### How to test it
- Connect your local kibana to an oblt cluster
- Go to Observability > Inventory UI
- Change "Show" and select Kubernetes Pods to see the link and any other
option to hide it.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 17:33:03 +01:00
Jean-Louis Leysens
ab3ecbd487
[Files] Add missing interface (#151323)
## Summary

Part of https://github.com/elastic/kibana/pull/146284 it looks like the
`HttpEndpointDefinition` interface was accidentally deleted. Due to the
transient/cross file nature of `.d.ts` file this was not marked as an
issue by TS.
2023-02-15 17:23:43 +01:00
Jean-Louis Leysens
5b0b09b59b
[Saved Objects] Remove deprecation notices from server SO types (#150839)
## Summary

After merging https://github.com/elastic/kibana/pull/148979 there are a
few interfaces in the server-side code that export a reference to a
deprecated SO type.

In this PR we fix them by updating a few imports to use the
non-deprecated SO type. Additionally, we resolve a potential circular
reference issue between `core-saved-objects-server` and
`core-saved-objects-api-server` by "moving" saved objects and related
types exports to `core-saved-objects-api-server`
2023-02-15 17:13:27 +01:00
Lola
15d558c36b
[Cloud Posture][Benchmark] add avatar to username in benchmark table (#150824)
## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.
Issue [139](https://github.com/elastic/kibana/issues/151141)

Render the `CreatedBy` cell with the user  avatar and username

<img width="737" alt="image"
src="https://user-images.githubusercontent.com/17135495/218792654-316de9cc-fa61-40ab-89f1-cb538a3cfcc8.png">

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 11:08:04 -05:00
Mark Hopkin
a37dea7292
[Fleet] Add tests to verify package policy bulk upgrade API creates correct assets (#151174)
## Summary

Closes #149423

Turns out no code changes needed after
https://github.com/elastic/kibana/pull/150199 🥳

Add tests for the `/api/fleet/package_policies/upgrade` and
`/api/fleet/package_policies/upgrade/dryrun` endpoints to verify they
create the package policy assets when upgrading from an integration of
type integration to type input.
2023-02-15 16:02:17 +00:00
Quynh Nguyen (Quinn)
7906c76749
[ML] Add functional tests for Field stats flyout in Transforms & DFA creation wizard (#150927) 2023-02-15 09:47:47 -06:00
Rodney Norris
241b5b7799
Enterprise Search: include search experiences engines side nav (#151227)
## Summary

When initially implementing the updates side nav with the feature
flagged Engines feature, we did not include Search Experiences in the
nav.

Upon learning more about this page I think its best we keep it included
in the nav as long as it's still included in the shortcut nav and has a
guided onboarding step. We may still remove this before engines is
released in 8.8, but we can remove it with those other usages as well
then.

### Screenshots


![image](https://user-images.githubusercontent.com/1972968/218875418-f7543f8d-cabf-4f7e-b2ad-c7f393e1d348.png)
2023-02-15 09:41:12 -06:00
Jeramy Soucy
5de13d49ac
[Saved Objects] Migrates authorization logic from repository to security extension (#148165)
Closes #147049
Closes #149897

Migrates authorization and audit logic from the Saved Objects Repository
to the Saved Objects Security Extension. This is achieved by
implementing action-specific authorization methods within the security
extension. The SO repository is no longer responsible for making any
authorization decisions, but It is still responsible to know how to call
the extension methods. I've tried to make this as straightforward as
possible such that there is a clear ownership delineation between the
repository and the extension, by keeping the interface simple and
(hopefully) obvious.

### Security Extension Interface
New Public Extension Methods:
- authorizeCreate
- authorizeBulkCreate
- authorizeUpdate
- authorizeBulkUpdate
- authorizeDelete
- authorizeBulkDelete
- authorizeGet
- authorizeBulkGet
- authorizeCheckConflicts
- authorizeRemoveReferences
- authorizeOpenPointInTime
- auditClosePointInTime
- authorizeAndRedactMultiNamespaceReferences
- authorizeAndRedactInternalBulkResolve
- authorizeUpdateSpaces
- authorizeFind
- getFindRedactTypeMap
- authorizeDisableLegacyUrlAliases (for secure spaces client)
- auditObjectsForSpaceDeletion (for secure spaces client)

Removed from public interface:
- authorize
- enforceAuthorization
- addAuditEvent

### Tests
- Most test coverage moved from `repository.security_extension.test.ts`
to `saved_objects_security_extension.test.ts`
- `repository.security_extension.test.ts` tests extension call,
parameters, and return
- Updates repository unit tests to check that all security extension
calls are made with the current space when the spaces extension is also
enabled

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2023-02-15 10:25:05 -05:00
Thomas Watson
8244a9f713
Remove unused minimist resolution (#151291) 2023-02-15 16:20:46 +01:00
Pablo Machado
56d64544bb
[SecuritySolutions] Fix show-top-n not rendered for some security fields (#151257)
I went through every usage of `CellActions` and added the `aggregatable`
prop back to fields that previously had it.

### Why?
When I created CellActions I removed `isAgreggatable` from some fields
because every field with an aggregatable type would automatically
display `showTopN`. But later, I discovered that this approach didn't
work for some edge cases. I reintroduced the `isAgreggatable` prop but
forgot to add `isAgreggatable` back to those fields I had previously
removed it.

### Extra
It also fixes the network page country flag type from`geo_point` to
`keyword` to fix a bug.
It also adds an extra check to add_to_timeline `isCompatible` function
so it doesn't show for `geo_point` and `message` fields.

![Screenshot 2023-02-15 at 11 53
35](https://user-images.githubusercontent.com/1490444/219011030-c3be4cc4-c095-4b89-8a64-5e29d0b3ba1b.png)


### 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
2023-02-15 16:05:15 +01:00
Nathan Reese
d37a4d6fbe
[Maps] fix Map crashes on field edit when hitting backspace key (#151203)
Fixes https://github.com/elastic/kibana/issues/151121

There were 2 issues
1) user could delete right field, putting layer in non-working state. To
fix this, update handler is not called when selected value is undefined
2) createJoinTermSource guard was not working for `{ term: undefined }`.
PR updated guard to properly handle this case.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 08:02:38 -07:00
Nicolas Chaulet
de87ac12c8
[Fleet] Deleting a FleetProxy should bump related agent policies (#151205) 2023-02-15 07:56:21 -07:00
Tim Grein
d579b2fa9c
[Enterprise Search] Fix sync flyout (#151175) 2023-02-15 15:36:23 +01:00
jennypavlova
10c2f4ae5a
[Logs and Metrics UI] Make spaces optional plugin (#151053)
Closes #149973 

# Summary

This PR makes `spaces` an optional plugin. In Logs UI we use only the
space id and there we want to fallback to the default space id when the
space plugin is disabled. The difference to the changes in the other PRs
is that we will consider the default space as "active" space if the
space plugin is disabled: so in this case we will return the default
space id as this is the only property we need from the `getActiveSpace`
response.

# Testing
1. In the `kibana.dev.yaml` add `xpack.spaces.enabled: false`
2. Before we have this
[PR](https://github.com/elastic/kibana/pull/151147) merged you should do
[this
change](https://github.com/elastic/kibana/pull/151147/files#diff-1b17eae66f358505fae8d86df37e155a25e8db996fce93ee6016582fb341092e)
on the branch while testing
3. Inside Logs the `Anomalies` and `Categories` pages should load the
default space

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 15:33:15 +01:00
Drew Tate
24efb8597e
[Lens] better support for user messages on embeddable (#149458) 2023-02-15 08:23:59 -06:00
Thomas Watson
5fa79fc9b3
Remove @loaders.gl/polyfills dev-dependency (#151287) 2023-02-15 15:03:37 +01:00
Xavier Mouligneau
cab487d7c8
[RAM] Uptime allow rac api (#151207)
## Summary

Allow `rac` api for uptime privileges and to avoid that
<img width="1341" alt="image"
src="https://user-images.githubusercontent.com/189600/218848172-251d4525-4324-4c6d-8a48-2d3a068387dc.png">
2023-02-15 09:00:00 -05:00
James Gowdy
d04dc43513
[ML] AIOPs: Improve log categorization discover filter label (#151036)
Fixes the Discover filters generated by the Log Categorisation page,
adding an alias so the whole query isn't displayed.

Label is `Categorization - <field name>`

Before:


![image](https://user-images.githubusercontent.com/22172091/218516903-2831e416-1b7f-42ee-b296-601d4bb99825.png)

After:


![image](https://user-images.githubusercontent.com/22172091/218516727-a7327a20-332f-45bd-907d-40595dfec945.png)
2023-02-15 13:52:12 +00:00
James Gowdy
c6dc97a80a
[ML] Fix module setup apply to all spaces (#151270)
The shared module setup function is not passing across the
`applyToAllSpaces` parameter.
This only affects plugins calling `setup` via the server side shared
function, not the ML plugin itself or any plugins calling the kibana
endpoint.
2023-02-15 13:51:47 +00:00
Yan Savitski
858eec506c
Behavioral analytics view in discover (#151157)
Issue [[Behavioral Analytics] View collection events in Discover

<img width="1576" alt="image"
src="https://user-images.githubusercontent.com/17390745/218784174-ce8115b8-2e47-4257-b163-3be5fad20794.png">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 06:43:41 -07:00
Elena Stoeva
fec14dcc39
Change description for metadata field in ingest pipelines (#150935)
## Summary

Improves the description of the `_meta` field in the Ingest pipeline
form as per the decision made in
https://github.com/elastic/kibana/pull/149976#issuecomment-1426083304

The 'Learn more' link leads to [the Ingest API documentation for
Metadata](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/put-pipeline-api.html#pipeline-metadata).

<img width="1043" alt="meta"
src="https://user-images.githubusercontent.com/59341489/218168850-ad729f36-3c01-41d4-bb88-7d49606f0cd0.png">



### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))

cc: @gchaps

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 13:26:08 +00:00
Cristina Amico
9f820b8b42
[Fleet] Use new dataView API for agent logs filters (#151030)
Closes https://github.com/elastic/kibana/issues/135970

## Summary

Use `dataView` API in agent dataset and logs filters. These two
components were composing their own dataView-like objects. Now they
compose `DataViewSpecs` and instantiate them with `DataViews.create`.
 
## Testing steps

Run an agent, navigate to agent logs and verify that the "dataset" and
"log level" filter work as usual:

<img width="812" alt="Screenshot 2023-02-14 at 17 11 38"
src="https://user-images.githubusercontent.com/16084106/218794511-bd2d2124-76b8-4972-90d2-5d7703cf682a.png">
<img width="920" alt="Screenshot 2023-02-14 at 17 11 30"
src="https://user-images.githubusercontent.com/16084106/218794532-c8449a7a-d0ed-40cd-bc79-de716f0178d2.png">



### Checklist
- [ ] [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: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 14:25:45 +01:00
Kevin Delemme
2013e0d8e5
fix(ftr): o11y functional tests flakiness (#151210) 2023-02-15 08:24:30 -05:00
Søren Louv-Jansen
fab938e5ec
[APM] Make service.name required in AnnotationsContextProvider (#151281)
`service.name` was not being passed to `AnnotationsContextProvider` in
the `TransactionCharts`. The result of this change is that annotations will show up on
transaction charts (they didn't show up before)
2023-02-15 06:09:05 -07:00
Anton Dosov
4076ecef2d
[CM] Client-side content client: setup update delete search methods (#151041)
Nothing to write home about - just a bit more boilerplate setup code.
Method signatures and RPC related interfaces are expected to be changed
later with an initial RPC layer implementation.

- Follow-up to https://github.com/elastic/kibana/pull/150171, adding a
dummy setup for `update` `delete` and `search` methods. **The `IN` and
`OUT` args will be changes when we glue these to the rpc service and its
types**
- Also clean up unit tests a bit to have setup logic contained in a
helper instead of scattered in global scope
2023-02-15 13:32:46 +01:00
Alejandro Fernández Gómez
3d60b94351
[Synthetics UI] Remove dead link to errors (#150838)
Closes #150495

## Summary

Remove a dead link to a non existing errors page.

<img width="547" alt="Screen Shot 2023-02-07 at 4 14 44 PM"
src="https://user-images.githubusercontent.com/11356435/217367478-afb40080-7535-479e-adc8-55142422504e.png">
2023-02-15 04:45:12 -07:00
Sergi Massaneda
f443109eea
[Security Solution] Cell Actions and Security triggers refactor (#150213)
## Summary

issue https://github.com/elastic/kibana/issues/145657

General actions refactor to complete the CellActions package
architecture.
These changes won't cause any noticeable change in the application
behavior. They include:

*kbn-cell-actions*
- Generic actions (filterIn/Out & copyToClipboard) migrated to the
package.
- `factory` implemented to export actions from the package.
- `CellAction` types generics.

*SecuritySolution*
- `SecurityCellAction` type encapsulated in new _actions/types.ts_ file.
- Actions changes to use new generic actions and also to be exported
using the package `factory`.
- Actions registration simplified to more declarative.
- Triggers and types moved to owned constants.ts enums.
- FilterIn/Out default actions unified timeline in a single
implementation using `metadata.scopeId`.
- Timeline Trigger removed, no longer needed.
- `SecurityCellActions` component to get the proper metadata typings and
code suggestions inside Security.
- Security CellActions metadata TSDoc expanded

### Factory

The action `factory` is necessary because we need a different action
`id`s for every action in the _uiActions_ registry, meaning that if
different triggers/solutions need different `order`, `type`,
`isCompatible` function, or any customization, they will need to
register an action with a different id, before attaching it.

The `CellActionFactory` implementation simplifies this workflow by
allowing action creation (only `id` param is required but any other
action property can be assigned) and also allows to `combine` factories,
returning a new factory with some properties overridden. This is useful
for extending generic actions into more specific implementations.

### SecurityCellActions

They are Security typed generic `CellActions` components, just for
convenience when using CellActions, they show the proper TSDoc
information about `metadata` contents, `triggerId`, and so on. It was
not possible when using the package exports directly.

![scopeId
TSDoc](https://user-images.githubusercontent.com/17747913/218807646-c4166d58-e1f4-41c6-ad2d-3ee801cf037c.png)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-15 12:27:33 +01:00