Commit graph

66156 commits

Author SHA1 Message Date
Cee Chen
84ca85d0ef
Upgrade EUI to v87.1.0 (#163961)
`v86.0.0``v87.1.0`

⚠️ The biggest set of type changes in this PR come from the breaking
change that makes `pageSize` and `pageSizeOptions` now optional props
for `EuiBasicTable.pagination`, `EuiInMemoryTable.pagination` and
`EuiDataGrid.pagination`.

This caused several other components that were cloning EUI's pagination
type to start throwing type warnings about `pageSize` being optional.
Where I came across these errors, I modified the extended types to
require `pageSize`. These types and their usages may end up changing
again in any case once the Shared UX team looks into
https://github.com/elastic/kibana/issues/56406.

---

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

- Updated the underlying library powering `EuiAutoSizer`. This primarily
affects typing around the `disableHeight` and `disableWidth` props
([#6798](https://github.com/elastic/eui/pull/6798))
- Added new `EuiAutoSize`, `EuiAutoSizeHorizontal`, and
`EuiAutoSizeVertical` types to support `EuiAutoSizer`'s now-stricter
typing ([#6798](https://github.com/elastic/eui/pull/6798))
- Updated `EuiDatePickerRange` to support `compressed` display
([#7058](https://github.com/elastic/eui/pull/7058))
- Updated `EuiFlyoutBody` with a new `scrollableTabIndex` prop
([#7061](https://github.com/elastic/eui/pull/7061))
- Added a new `panelMinWidth` prop to `EuiInputPopover`
([#7071](https://github.com/elastic/eui/pull/7071))
- Added a new `inputPopoverProps` prop for `EuiRange`s and
`EuiDualRange`s with `showInput="inputWithPopover"` set
([#7082](https://github.com/elastic/eui/pull/7082))

**Bug fixes**

- Fixed `EuiToolTip` overriding instead of merging its
`aria-describedby` tooltip ID with any existing `aria-describedby`s
([#7055](https://github.com/elastic/eui/pull/7055))
- Fixed `EuiSuperDatePicker`'s `compressed` display
([#7058](https://github.com/elastic/eui/pull/7058))
- Fixed `EuiAccordion` to remove tabbable children from sequential
keyboard navigation when the accordion is closed
([#7064](https://github.com/elastic/eui/pull/7064))
- Fixed `EuiFlyout`s to accept custom `aria-describedby` IDs
([#7065](https://github.com/elastic/eui/pull/7065))

**Accessibility**

- Removed the default `dialog` role and `tabIndex` from push
`EuiFlyout`s. Push flyouts, compared to overlay flyouts, require manual
accessibility management.
([#7065](https://github.com/elastic/eui/pull/7065))

## [`87.0.0`](https://github.com/elastic/eui/tree/v87.0.0)

- Added beta `componentDefaults` prop to `EuiProvider`, which will allow
configuring certain default props globally. This list of components and
defaults is still under consideration.
([#6923](https://github.com/elastic/eui/pull/6923))
- `EuiPortal`'s `insert` prop can now be configured globally via
`EuiProvider.componentDefaults`
([#6941](https://github.com/elastic/eui/pull/6941))
- `EuiFocusTrap`'s `crossFrame` and `gapMode` props can now be
configured globally via `EuiProvider.componentDefaults`
([#6942](https://github.com/elastic/eui/pull/6942))
- `EuiTablePagination`'s `itemsPerPage`, `itemsPerPageOptions`, and
`showPerPageOptions` props can now be configured globally via
`EuiProvider.componentDefaults`
([#6951](https://github.com/elastic/eui/pull/6951))
- `EuiBasicTable`, `EuiInMemoryTable`, and `EuiDataGrid` now allow
`pagination.pageSize` to be undefined. If undefined, `pageSize` defaults
to `EuiTablePagination`'s `itemsPerPage` component default.
([#6993](https://github.com/elastic/eui/pull/6993))
- `EuiBasicTable`, `EuiInMemoryTable`, and `EuiDataGrid`'s
`pagination.pageSizeOptions` will now fall back to
`EuiTablePagination`'s `itemsPerPageOptions` component default.
([#6993](https://github.com/elastic/eui/pull/6993))
- Updated `EuiHeaderLinks`'s `gutterSize` spacings
([#7005](https://github.com/elastic/eui/pull/7005))
- Updated `EuiHeaderAlert`'s stacking styles
([#7005](https://github.com/elastic/eui/pull/7005))
- Added `toolTipProps` to `EuiListGroupItem` that allows customizing
item tooltips. ([#7018](https://github.com/elastic/eui/pull/7018))
- Updated `EuiBreadcrumbs` to support breadcrumbs that toggle popovers
via `popoverContent` and `popoverProps`
([#7031](https://github.com/elastic/eui/pull/7031))
- Improved the contrast ratio of disabled titles within `EuiSteps` and
`EuiStepsHorizontal` to meet WCAG AA guidelines.
([#7032](https://github.com/elastic/eui/pull/7032))
- Updated `EuiSteps` and `EuiStepsHorizontal` to highlight and provide a
more clear visual indication of the current step
([#7048](https://github.com/elastic/eui/pull/7048))

**Bug fixes**

- Single uses of `<EuiHeaderSectionItem side="right" />` now align right
as expected without needing a previous `side="left"` sibling.
([#7005](https://github.com/elastic/eui/pull/7005))
- `EuiPageTemplate` now correctly displays `panelled={true}`
([#7044](https://github.com/elastic/eui/pull/7044))

**Breaking changes**

- `EuiTablePagination`'s default `itemsPerPage` is now `10` (was
previously `50`). This can be configured through
`EuiProvider.componentDefaults`.
([#6993](https://github.com/elastic/eui/pull/6993))
- `EuiTablePagination`'s default `itemsPerPageOptions` is now `[10, 25,
50]` (was previously `[10, 20, 50, 100]`). This can be configured
through `EuiProvider.componentDefaults`.
([#6993](https://github.com/elastic/eui/pull/6993))
- Removed `border` prop from `EuiHeaderSectionItem` (unused since
Amsterdam theme) ([#7005](https://github.com/elastic/eui/pull/7005))
- Removed `borders` object configuration from `EuiHeader.sections`
([#7005](https://github.com/elastic/eui/pull/7005))

**CSS-in-JS conversions**

- Converted `EuiHeaderAlert` to Emotion; Removed unused
`.euiHeaderAlert__dismiss` CSS
([#7005](https://github.com/elastic/eui/pull/7005))
- Converted `EuiHeaderSection`, `EuiHeaderSectionItem`, and
`EuiHeaderSectionItemButton` to Emotion
([#7005](https://github.com/elastic/eui/pull/7005))
- Converted `EuiHeaderLinks` and `EuiHeaderLink` to Emotion; Removed
`$euiHeaderLinksGutterSizes` Sass variables
([#7005](https://github.com/elastic/eui/pull/7005))
- Removed `$euiHeaderBackgroundColor` Sass variable; use
`$euiColorEmptyShade` instead
([#7005](https://github.com/elastic/eui/pull/7005))
- Removed `$euiHeaderChildSize` Sass variable; use `$euiSizeXXL` instead
([#7005](https://github.com/elastic/eui/pull/7005))

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Patryk Kopyciński <contact@patrykkopycinski.com>
2023-08-21 15:16:39 -07:00
Xavier Mouligneau
d7bf7efcdf
[RAM] Use ruletype to determine alert indices (#163574)
## Summary

We were using the feature Id to determine the alert indices, but we
realized that we should use the rule type id instead. Meaning that we
check which rule type does the user have access and then we get the
indices related to this rule type.

We also took advantage of the new suggestion abstraction of the search
bar components to remove the toaster of hell ->
https://github.com/elastic/kibana/issues/163003


### 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-08-21 14:52:36 -07:00
Alejandro Fernández Haro
05a8ce13d7
[APM Config] Allow API Key environment var (#163153) 2023-08-21 14:39:56 -07:00
renovate[bot]
8a6dfb825f
Update dependency @elastic/apm-rum-react to v2 (main) (#163973)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 14:39:40 -07:00
Georgii Gorbachev
8238900340
[Security Solution] Update CODEOWNERS for the Detection Engine team (#164359)
## Summary

This PR updates the COEOWNERS file by adding missing Cypress tests
folders owned by the @elastic/security-detection-engine team.
2023-08-21 22:47:54 +02:00
Georgii Gorbachev
43135b6a5d
[Security Solution] Enable Detections Coverage Overview dashboard by default (#164343)
**Epic:** https://github.com/elastic/security-team/issues/2905
(internal)

## Summary

Enables the Detections Coverage Overview dashboard feature flag by
default. We're aiming to release this feature in 8.10.

Before the last BC, we will:

- remove the flag if we're confident that we should release the feature
in 8.10
- otherwise, revert the flag back to `false` by default
2023-08-21 13:25:55 -07:00
Pete Hampton
fcf838e1f3
Add threat indicator fields to prebuilt rule filterlist. (#164275)
## Summary

Adds a filterlist entry for threat indicator match rules to the prebuilt
rule alert filterlist.
I will open an OOB artifact separately.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] 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)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### 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-08-21 13:02:00 -07:00
Christiane (Tina) Heiligers
5a68f70900
Update core architecture docs (#164120)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
2023-08-21 15:38:24 -04:00
Kevin Lacabane
0d63919122
[Asset Manager] services endpoint (#164181)
Closes https://github.com/elastic/kibana/issues/159641

Implements `/assets/services` endpoint that returns service assets found
in the configured source (signals or assets indices). Consumer can
provide a `parent` query to filter the returned services. While the
_assets_ mode supports any kind of parent/depth thanks to its common
interface, the _signals_ mode only supports host parent for the moment.

1. pull this branch and point it at an oblt-cli created cluster that
uses cross-cluster search to read from the edge cluster
2. add the following[1] to your kibana.yml file
3. hit
`/api/asset-manager/assets/services?from=<from>&to=<to>&(parent=<host>)?`.
services should be returned. Add/remove parent query string to filter
services only running on specific host.

[1]
```
xpack.assetManager:
  alphaEnabled: true
  sourceIndices:
    metrics: remote_cluster:metricbeat*,remote_cluster:metrics-*
    logs: remote_cluster:filebeat*,remote_cluster:logs-*
    traces: remote_cluster:traces-*
    serviceMetrics: remote_cluster:metrics-apm*
    serviceLogs: remote_cluster:logs-apm*
  lockedSource: signals
```

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 15:06:36 -04:00
GitStart
b5af8c880e
[Upgrade Assistant] Migrate all usages of EuiPage*_Deprecated (#163127) 2023-08-21 14:54:55 -04:00
Angela Chuang
9c17de6bdb
Add indexName to data quality telemetry (#163937)
## Summary


[Staging](https://telemetry-v2-staging.elastic.dev/s/securitysolution/app/r/s/1rf1f)



50d4fbbd-2ce4-4fb7-be73-e33bb242a261


```
{
    "timestamp": "2023-08-15T13:39:27.513Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "5d0d6127-4b9b-47af-8bb1-96e90fcdbb31",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "hot",
        "indexId": "WxZsLLXbR9qeroNaFeY1wg",
        "indexName": ".internal.alerts-security.alerts-default-000001",
        "isCheckAll": true,
        "numberOfDocuments": 7834,
        "numberOfIncompatibleFields": 0,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 15097503,
        "timeConsumedMs": 151,
        "unallowedMappingFields": [],
        "unallowedValueFields": []
    }
}


{
    "timestamp": "2023-08-15T13:39:30.637Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "5d0d6127-4b9b-47af-8bb1-96e90fcdbb31",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "unmanaged",
        "indexId": "AoyctcRqTKG8HvUVmpuzEA",
        "indexName": "auditbeat-custom-index-1",
        "isCheckAll": true,
        "numberOfDocuments": 4,
        "numberOfIncompatibleFields": 3,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 28417,
        "timeConsumedMs": 69,
        "unallowedMappingFields": [
            "host.name",
            "source.ip"
        ],
        "unallowedValueFields": [
            "event.category"
        ]
    }
}


{
    "timestamp": "2023-08-15T13:39:33.806Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "5d0d6127-4b9b-47af-8bb1-96e90fcdbb31",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "hot",
        "indexId": "56NqQP_eSNCnesjLPmoe1g",
        "indexName": ".ds-auditbeat-8.7.1-2023.08.14-000001",
        "isCheckAll": true,
        "numberOfDocuments": 13593,
        "numberOfIncompatibleFields": 0,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 10588378,
        "timeConsumedMs": 134,
        "unallowedMappingFields": [],
        "unallowedValueFields": []
    }
}


{
    "timestamp": "2023-08-15T13:39:37.013Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "5d0d6127-4b9b-47af-8bb1-96e90fcdbb31",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "hot",
        "indexId": "hjnJ8WyPR5uTLw3fBISMmA",
        "indexName": ".ds-packetbeat-8.8.0-2023.08.14-000001",
        "isCheckAll": true,
        "numberOfDocuments": 318749,
        "numberOfIncompatibleFields": 0,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 165604512,
        "timeConsumedMs": 157,
        "unallowedMappingFields": [],
        "unallowedValueFields": []
    }
}


{
    "timestamp": "2023-08-15T13:39:37.013Z",
    "event_type": "Data Quality Check All Completed",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "5d0d6127-4b9b-47af-8bb1-96e90fcdbb31",
        "ecsVersion": "8.6.1",
        "isCheckAll": true,
        "numberOfDocuments": 340180,
        "numberOfIncompatibleFields": 3,
        "numberOfIndices": 4,
        "numberOfIndicesChecked": 4,
        "sizeInBytes": 191318810,
        "timeConsumedMs": 9651
    }
}
```




5c977f60-e78d-426e-a682-46f7b1de4138

```
{
    "timestamp": "2023-08-15T13:42:47.777Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "cb8c7d1d-d84c-41a3-8e9b-cb3991817df0",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "hot",
        "indexId": "WxZsLLXbR9qeroNaFeY1wg",
        "indexName": ".internal.alerts-security.alerts-default-000001",
        "isCheckAll": false,
        "numberOfDocuments": 7834,
        "numberOfIncompatibleFields": 0,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 15097503,
        "timeConsumedMs": 121,
        "unallowedMappingFields": [],
        "unallowedValueFields": []
    }
}


{
    "timestamp": "2023-08-15T13:43:00.076Z",
    "event_type": "Data Quality Index Checked",
    "context": {
        "isDev": true,
        "isDistributable": false,
        "version": "8.10.0",
        "branch": "main",
        "buildNum": 9007199254740991,
        "buildSha": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "session_id": "99ed0d92-71f7-4e48-bdbb-a03bb8ac31e3",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
        "preferred_language": "en-US",
        "preferred_languages": [
            "en-US",
            "en"
        ],
        "viewport_width": 2560,
        "viewport_height": 934,
        "cluster_name": "elasticsearch",
        "cluster_uuid": "efIxsMivQne1nV2Y44MW5A",
        "cluster_version": "8.10.0-SNAPSHOT",
        "pageName": "application:securitySolutionUI:/data_quality",
        "applicationId": "securitySolutionUI",
        "page": "/data_quality",
        "entityId": "new",
        "page_title": "Elastic",
        "page_url": "/app/security/data_quality#?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:security-solution-default,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))",
        "license_id": "d8d531da-1994-4e24-a4cc-13d7ea30c339",
        "license_status": "active",
        "license_type": "trial",
        "labels": {
            "serverless": "security"
        },
        "userId": "986051385feae5b9850804db2d701c0b029ad24f09bce340c12aee7a5c8a0391",
        "isElasticCloudUser": false
    },
    "properties": {
        "batchId": "ca4e6e41-0025-47c6-ab46-e4a7b6911b4f",
        "ecsVersion": "8.6.1",
        "errorCount": 0,
        "ilmPhase": "unmanaged",
        "indexId": "AoyctcRqTKG8HvUVmpuzEA",
        "indexName": "auditbeat-custom-index-1",
        "isCheckAll": false,
        "numberOfDocuments": 4,
        "numberOfIncompatibleFields": 3,
        "numberOfIndices": 1,
        "numberOfIndicesChecked": 1,
        "sizeInBytes": 28417,
        "timeConsumedMs": 91,
        "unallowedMappingFields": [
            "host.name",
            "source.ip"
        ],
        "unallowedValueFields": [
            "event.category"
        ]
    }
}
```
2023-08-21 11:54:00 -07:00
GitStart
0317acec74
[Snapshot Restore] Migrate all usages of EuiPage*_Deprecated (#163130) 2023-08-21 14:50:11 -04:00
Kevin Delemme
dc3b4862ed
feat(slo): persist auto refresh state in localstorage (#163615) 2023-08-21 14:44:31 -04:00
Ievgen Sorokopud
4477f642e3
[Security Solution] [Detections] Fixes flakey exceptions read-only viewer cypress test (#164283)
## Summary

Fixes: https://github.com/elastic/kibana/issues/162569
Fixes: https://github.com/elastic/kibana/issues/164061
Fixes: https://github.com/elastic/kibana/issues/164058
Fixes: https://github.com/elastic/kibana/issues/163546
Fixes: https://github.com/elastic/kibana/issues/162669

We tried to fix the issue with this PR
https://github.com/elastic/kibana/pull/162839 but test failed again.

This is another attempt to fix it using the @jpdjere's approach where we
disable rule's table refreshing
(https://github.com/elastic/kibana/pull/163698).
2023-08-21 20:40:14 +02:00
Ievgen Sorokopud
49f9528051
Failing test: Security Solution Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts - Custom query rules Custom detection rules deletion and edition Deletion Deletes one rule from detail page Deletes one rule from detail page #163977 (#164327)
## Summary

Fixes: https://github.com/elastic/kibana/issues/163977
Fixes: https://github.com/elastic/kibana/issues/163568

These changes fix the issue with actions popover and the way we check
whether it is closed on rule's detail page.

The issue happens due to the fact that after we closed the popover we
should be testing `should('not.exist')` instead of
`should('not.be.visible')`.
2023-08-21 20:36:44 +02:00
Alexi Doak
03ee66ca72
[ResponseOps][Alerting] Unskips alerting serverless tests (#164091)
Related to https://github.com/elastic/response-ops-team/issues/124

## Summary

Fixes tests that had an interval less than 1m
2023-08-21 11:36:26 -07:00
Ievgen Sorokopud
b6fcd7900b
[Security Solution][Detections] Fix "burning" test detection_response/rule_creation/custom_query_rule.cy.ts (#164312)
## Summary

This PR fixes "burning" test
`x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule.cy.ts`
(`'Allows a rule to be edited'`).

Failing job
https://buildkite.com/elastic/kibana-pull-request/builds/151789#018a1792-bf45-4a4e-bf54-8372468d4cfd

More details in slack
https://elastic.slack.com/archives/C056TQ5J81Y/p1692621948405779
2023-08-21 20:36:03 +02:00
Kurt
19b3d50c71
Removing refresh interval from session index (#164328)
## Summary

Specifying a `refresh_interval` below 5s is no longer allowed with es
serverless. This PR removes the explicit `refresh_interval` from the
session index.

Work done in https://github.com/elastic/kibana/pull/151800 makes
specifying a `refresh_interval` unnecessary.

## Flaky Test Runner
[Session Tests x50
ea](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2932)
🟢

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 14:15:12 -04:00
Søren Louv-Jansen
654de7b728
[APM] Swallow unhandled exceptions (#164251)
If an unhandled error occurs, it will break the diagnostics bundle. This
change will log errors and then swallow them.
This should go out in 8.10 since it is already affecting users.
2023-08-21 11:10:30 -07:00
Kibana Machine
9cff5fc844 skip failing test suite (#164334) 2023-08-21 12:54:39 -04:00
Lisa Cawley
c1d2834f1a
[OAS] Remove redundant connector properties (#163987) 2023-08-21 09:29:08 -07:00
Tim Sullivan
c328d2da21
[Reporting] Adjust export type conditionals in server startup (#164232)
## Summary

This PR cleans up how config settings are used as conditionals in the
Reporting plugin startup phase.

The existing code is correct, but it's heavily aligned to certain
business requirements that might not be understood by a reader.

The change in the PR uses simpler conditionals that are separated from
internal business decisions. The result should be clearer readability of
the code.
2023-08-21 08:10:35 -07:00
Kibana Machine
98a135cc7a skip failing test suite (#164318) 2023-08-21 11:08:47 -04:00
Anton Dosov
5f310f773a
Unskip X-Pack Saved Object Tagging Functional Tests (#164273)
## Summary

close https://github.com/elastic/kibana/issues/88639

10 🟢 runs
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2926
40 🟢 runs
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2928
2023-08-21 16:48:08 +02:00
István Zoltán Szabó
79a0a5e940
[DOCS] Improves change point detection documentation (#164277)
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
2023-08-21 16:33:07 +02:00
Maxim Palenov
d34c845955
[Security Solution] Fix value lists tests flakiness (#164253)
**Fixes:** https://github.com/elastic/kibana/issues/164056

## Summary

This PR fixes [value_lists.cy.ts](https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/value_lists/value_lists.cy.ts) tests flakiness.

## The flakiness reason

Value list items are processed in a bulk via bulk creation and `refresh=wait_for` is [used](https://github.com/elastic/kibana/blob/main/x-pack/plugins/lists/server/services/items/create_list_items_bulk.ts#L87). The problem it returns sometimes earlier than data is available. [Bulk API docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-refresh) say the following

> Only the shards that receive the bulk request will be affected by refresh. Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. The request will only wait for those three shards to refresh. The other two shards that make up the index do not participate in the _bulk request at all.

While (it seems) only one shard is used in tests but it still cause issues (approx. 1 test per 50 fails) so adding explicit index refresh helps to get rid of flakiness.

## Flaky test runner

[value_lists.cy.ts (150 runs)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2924) 🟢
2023-08-21 16:31:21 +02:00
Patryk Kopyciński
75d351052d
It adds 8.10 into the .backportrc config file (#164259)
## Summary

It adds 8.10 into the .backportrc config file

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2023-08-21 15:15:30 +01:00
Kevin Logan
88bd71c077
[Security Solution] File paths for Blocklist Windows and Mac should be case insensitive (#164200)
## Summary

This fixes a bug where Windows and Mac Blocklist file path entries
should be passed as case insensitive. This is because Mac and Windows
are caseless for most use cases.

Bug ticket: https://github.com/elastic/kibana/issues/158581

Here is how it will be displayed in the UI:
<img width="1728" alt="image"
src="a3006397-f49e-4de0-818d-94e2de20dba3">

Here are the breakdown of the artifacts after the fix:

Linux:
```
-------------------------------------------------------------------
Policy:   Protect
Manifest: 1.0.6 | v1
Artifact: endpoint-blocklist-linux-v1
          Relative URL:   /api/fleet/artifacts/endpoint-blocklist-linux-v1/f33e6890aeced00861c26a08121dd42d2d29ba08abfeb3c065d0447e32e18640
          Encoded SHA256: a907835be40af89b8b7aa23a6efc66c01ceaa5a19622edd378139319f3ca5fa0
          Decoded SHA256: f33e6890aeced00861c26a08121dd42d2d29ba08abfeb3c065d0447e32e18640
-------------------------------------------------------------------

{
  "entries": [
    {
      "type": "simple",
      "entries": [
        {
          "field": "file.path",
          "operator": "included",
          "type": "exact_cased_any",
          "value": [
            "/opt/bin/bin.exe"
          ]
        }
      ]
    }
  ]
}
```

Mac:
```
-------------------------------------------------------------------
Policy:   Protect
Manifest: 1.0.6 | v1
Artifact: endpoint-blocklist-macos-v1
          Relative URL:   /api/fleet/artifacts/endpoint-blocklist-macos-v1/b28e7978da4314ebc2c94770e0638fc4b2270f9dc17a11d6d32b8634b1fbec0f
          Encoded SHA256: 4f3e80d688f5cae4bf6a88b0704e37909f9fa4f47fe8325b7b154cddd46a2db9
          Decoded SHA256: b28e7978da4314ebc2c94770e0638fc4b2270f9dc17a11d6d32b8634b1fbec0f
-------------------------------------------------------------------

{
  "entries": [
    {
      "type": "simple",
      "entries": [
        {
          "field": "file.path",
          "operator": "included",
          "type": "exact_caseless_any",
          "value": [
            "/opt/exe.exe"
          ]
        }
      ]
    }
```

Windows:
```
-------------------------------------------------------------------
Policy:   Protect
Manifest: 1.0.6 | v1
Artifact: endpoint-blocklist-windows-v1
          Relative URL:   /api/fleet/artifacts/endpoint-blocklist-windows-v1/2a6fcc67c696ad4e29d91f8b685bff46977198cd34b9a61e8003d55b78dff6ac
          Encoded SHA256: c6e045fce97651336eeb400f0123541475b940e3aa38ce721f299585683da288
          Decoded SHA256: 2a6fcc67c696ad4e29d91f8b685bff46977198cd34b9a61e8003d55b78dff6ac
-------------------------------------------------------------------

{
  "entries": [
    {
      "type": "simple",
      "entries": [
        {
          "field": "file.path",
          "operator": "included",
          "type": "exact_caseless_any",
          "value": [
            "C:\\path\\path.exe"
          ]
        }
      ]
    }
  ]
}
```

### 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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 10:00:53 -04:00
Devon Thomson
011ae97061
[Dashboard] Remove clone by reference (#164108)
Removes all clone by reference functionality on the Dashboard. This means that we no longer have any `savedObjectsClient` usage in the browser side.
2023-08-21 09:51:07 -04:00
amyjtechwriter
90b6e4dbe0
[DOCS] Removes 8.9.1 coming tag. (#164302)
Removes `coming` tag from the 8.9.1 release notes.
2023-08-21 14:24:48 +01:00
Marco Liberati
dbb252b02a
[Lens] Reduce the impact of TSDB downsample bug (#164183)
## Summary

Fixes #163971 

Reduces the impact of the ES promotion issue coming from the ES TSDB
downsampling bug to only downsampling tests and not the entire TSDB
suite.


### Checklist

Delete any items that are not applicable to this PR.

- [ ] 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
- [ ] [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)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### 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-08-21 15:01:01 +02:00
Søren Louv-Jansen
ebe6b4650a
[APM] Remove power_user and read_only_user folders from e2e (#164242)
We currently separate e2e tests into `power_user` tests and
`read_only_user` tests. We often want to test different permissions
within the same tests, so the distinction becomes a barrier rather than
a help. This PR removed the folders and combines all tests regardless of
which user they run as.
2023-08-21 14:51:28 +02:00
Stratoula Kalafateli
00102e33f3
[Sample data][ECommerce] Use Lens instead of TSVB (#164195)
## Summary

Closes https://github.com/elastic/kibana/issues/164146

Changes the remaining TSVB panel to a by value Lens metric.
<img width="1652" alt="Screenshot 2023-08-17 at 6 10 06 PM"
src="538b4bfb-5066-4a93-a16c-4d748b29ea7c">

### How to test
Remove the ecommerce dataset and reinstall it
2023-08-21 13:12:09 +01:00
amyjtechwriter
037cbce707
[OAS] Adding update and delete to runtime fields OAS (#163777)
This PR drafts openAPI specifications for:

- [Delete runtime field
API](https://www.elastic.co/guide/en/kibana/master/data-views-runtime-field-api-delete.html).
- [Update runtime field
API](https://www.elastic.co/guide/en/kibana/master/data-views-runtime-field-api-update.html)

Relates to https://github.com/elastic/kibana/issues/137240
2023-08-21 12:41:22 +01:00
Jean-Louis Leysens
23d39555e0
[HTTP] Allow for internal requests to also specify special query param elasticInternalOrigin (#163796)
## Summary

Closes https://github.com/elastic/kibana/issues/163678

* Raise the notion of "internal" into `CoreKibanaRequest`. This enables
us to share this with lifecycle handlers and control validation of query
params
* Added new `isInternalRequest` alongside `isSystemRequest` and
`isFakeRequest`
* Slight simplification to existing internal restriction check
* Some other chores and minor fixes

## Test

* Start ES with `yarn es serverless` and Kibana with `yarn start
--serverless --server.restrictInternalApis=true`
* Add the service account token to `kibana.dev.yml`:
`elasticsearch.serviceAccountToken: <SAT>`
* Send a request to an internal endpoint like: `curl -XPOST
-uelastic:changeme http://localhost:5601/<base-path>/api/files/find -H
'kbn-xsrf: foo' -H 'content-type: application/json' -d '{}'`
    * Should give you a 400 result
* message like `{"statusCode":400,"error":"Bad Request","message":"uri
[http://localhost:5603/api/files/find] with method [post] exists but is
not available with the current configuration"}`
* Send the same request, but include the query param:
`elasticInternalOrigin=true`
   *  Should give you a 200 result

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 11:55:33 +02:00
David Sánchez
bc988f22c6
[Security Solution] [Endpoint] Generate empty endpoint user artifacts depending on the PLI (#163602)
## Summary

Generates empty array when the PLI don't meet the requirement. It end up
having empty fleet artifacts for those cannot be generated.

It also adds new test cases

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-21 11:30:06 +02:00
Or Ouziel
81a151ef71
[Cloud Security] Only clean up AWS creds (#164154) 2023-08-21 12:23:15 +03:00
Sander Philipse
8532b996c4
[Search] Disable crawler on overview without ent-search (#164227)
## Summary

This disables the crawler if Enterprise Search is not available on the
new overview page.
2023-08-21 10:37:59 +02:00
Tim Sullivan
f1402d682c
unskip sample_data_apis test: dates (#164112)
## Summary

Closes https://github.com/elastic/kibana/issues/121051

I'm not seeing flakiness in the test suite after enabling all the tests.

Test suite: `test/api_integration/config.js`
Test runs:
*
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2904
*
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2917
2023-08-18 16:44:21 -07:00
Patryk Kopyciński
7c5392ba22
[osquery] Update E2E to not install Osquery integration on the Fleet server (#164225)
## Summary

Increase the stability of Osquery Cypress by stopping the installation
of Osquery on the Fleet server and creating another Agent policy and
enrolling another elastic agent instead
2023-08-18 21:01:59 +02:00
Quynh Nguyen (Quinn)
5cfb693701
[ML] Fix query bar not switching from KQL to Lucene and vice versa in Anomaly explorer (#163625) 2023-08-18 09:52:25 -07:00
Kibana Machine
2b3048f96a
[api-docs] 2023-08-18 Daily api_docs build (#164241)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/433
2023-08-18 00:58:24 -04:00
Nathan Reese
53e803e42c
fix 'Download CSV' returns no data when panel has custom time range outside timerange of global time picker (#163887)
Closes https://github.com/elastic/kibana/issues/163614

PR resolves issue by only adding global time filter to CSV export body
when saved search embeddable does not have time range.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-17 16:37:12 -06:00
Karl Godard
7127d32e34
[Automated PR] Sync cloud_defend plugin policy schema with cloud-defend repo (#164216)
Automated by https://buildkite.com/elastic/cloud-defend/builds/2061

Co-authored-by: sec_cloudnative_integrations <sec-cloudnative-integrations@elastic.co>
2023-08-17 15:31:20 -07:00
Lisa Cawley
5c1d118c36
[OAS] Add is_system_action to connector responses (#163969) 2023-08-17 13:13:35 -07:00
Catherine Liu
3720270232
[Dashboard] Add filter details to panel settings (#162913) 2023-08-17 12:36:10 -07:00
Tiago Costa
db1cec4c94
skip flaky suite (#164164) 2023-08-17 19:58:27 +01:00
Tiago Costa
c48b74a693
chore(NA): update versions after v8.9.2 bump (#164193)
This PR is a simple update of our versions file after the recent bumps.
2023-08-17 19:51:23 +01:00
Julia Rechkunova
110449df5c
[OnWeek][Discover] Allow to fetch more documents on Discover page (#163784)
> [!WARNING]
> Sorry, I had to recreate the PR
https://github.com/elastic/kibana/pull/157241
> Please submit your review again.

- Closes https://github.com/elastic/kibana/issues/155019

Per docs
https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html
<img width="851" alt="Screenshot 2023-05-10 at 10 25 20"
src="b4b9fef4-7dd8-40ed-8244-343889fc4367">


## Summary

1. This PR improves `search_after` pagination for `date_nanos` time
fields. `sort` value will be returned from ES as a string instead of a
rounded and incorrect timestamp. This change allows to also simplify
logic on Surrounding document page.

Before:
<img width="400" alt="Screenshot 2023-05-08 at 17 36 19"
src="fd9f45c4-5dc2-4103-83b9-8810e3a6e0df">

After:
<img width="400" alt="Screenshot 2023-05-08 at 17 37 13"
src="fe9090c0-2116-4f77-9a57-a96ae6b00365">

2. Also in this PR we now allow users to load more documents within the
same time range. Once the button is pressed, it will load next portion
of documents (same "sampleSize" value will be used). Currently, we limit
max total loaded documents to 10000.

"Load more" demo:
![Aug-07-2023
16-23-28](53af9809-75cb-4b8a-8e99-d8f6d76b4981)

If refresh interval is on, the button becomes disabled:
![Aug-07-2023
16-24-58](85db6144-98eb-40b5-ac88-80ea728bcd6b)

Date nanos demo:
![Aug-07-2023
16-34-59](dc9fe0b1-e419-4c76-9fc6-79907b134e58)


100x Flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2801

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-17 20:31:21 +02:00
GitStart
8ffbc7164d
[Console] Migrate all usages of EuiPage*_Deprecated (#163138) 2023-08-17 14:02:58 -04:00