Commit graph

777 commits

Author SHA1 Message Date
Kibana Machine
9019ff6e15
[8.12] [DOCS] Add new sub feature privilege to prevent access to the cases settings (#174223) (#174467)
# Backport

This will backport the following commits from `main` to `8.12`:
- [[DOCS] Add new sub feature privilege to prevent access to the cases
settings (#174223)](https://github.com/elastic/kibana/pull/174223)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2024-01-08T15:58:38Z","message":"[DOCS]
Add new sub feature privilege to prevent access to the cases settings
(#174223)","sha":"ee0cb0b5418ce83ccc7c8681e2da6d0d24534ec6","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","docs","Feature:Cases","Team:obs-ux-management","v8.12.1","v8.13.0"],"title":"[DOCS]
Add new sub feature privilege to prevent access to the cases
settings","number":174223,"url":"https://github.com/elastic/kibana/pull/174223","mergeCommit":{"message":"[DOCS]
Add new sub feature privilege to prevent access to the cases settings
(#174223)","sha":"ee0cb0b5418ce83ccc7c8681e2da6d0d24534ec6"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174223","number":174223,"mergeCommit":{"message":"[DOCS]
Add new sub feature privilege to prevent access to the cases settings
(#174223)","sha":"ee0cb0b5418ce83ccc7c8681e2da6d0d24534ec6"}}]}]
BACKPORT-->

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2024-01-08 10:17:33 -07:00
Kibana Machine
f54ca50f98
[8.12] [Cases] Table Solution Filter Not Rendering Any Checked Option When All Selected (#172460) (#173244)
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Cases] Table Solution Filter Not Rendering Any Checked Option When
All Selected (#172460)](https://github.com/elastic/kibana/pull/172460)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julian
Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-13T09:30:49Z","message":"[Cases]
Table Solution Filter Not Rendering Any Checked Option When All Selected
(#172460)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"b6d291d1034752515b56439d4b2437f085cd2147","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Cases","v8.12.0","v8.13.0"],"number":172460,"url":"https://github.com/elastic/kibana/pull/172460","mergeCommit":{"message":"[Cases]
Table Solution Filter Not Rendering Any Checked Option When All Selected
(#172460)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"b6d291d1034752515b56439d4b2437f085cd2147"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172460","number":172460,"mergeCommit":{"message":"[Cases]
Table Solution Filter Not Rendering Any Checked Option When All Selected
(#172460)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"b6d291d1034752515b56439d4b2437f085cd2147"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
2023-12-13 04:00:10 -07:00
Kibana Machine
5f7be13c20
[8.12] [Cases] Assignees Table Filter Does Not Reset Selected Options (#173021) (#173116)
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Cases] Assignees Table Filter Does Not Reset Selected Options
(#173021)](https://github.com/elastic/kibana/pull/173021)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julian
Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-11T20:58:33Z","message":"[Cases]
Assignees Table Filter Does Not Reset Selected Options
(#173021)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"bc153bc65acd4f0814ada0c701380f162373fd14","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Cases","v8.12.0","v8.13.0"],"number":173021,"url":"https://github.com/elastic/kibana/pull/173021","mergeCommit":{"message":"[Cases]
Assignees Table Filter Does Not Reset Selected Options
(#173021)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"bc153bc65acd4f0814ada0c701380f162373fd14"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173021","number":173021,"mergeCommit":{"message":"[Cases]
Assignees Table Filter Does Not Reset Selected Options
(#173021)\n\nCo-authored-by: Christos Nasikas
<christos.nasikas@elastic.co>","sha":"bc153bc65acd4f0814ada0c701380f162373fd14"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
2023-12-12 03:28:21 -07:00
Kibana Machine
6333a72148
[8.12] [Cases] Filter Overflow When To Much Filters Active (#172860) (#173045)
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Cases] Filter Overflow When To Much Filters Active
(#172860)](https://github.com/elastic/kibana/pull/172860)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julian
Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-11T12:33:34Z","message":"[Cases]
Filter Overflow When To Much Filters Active (#172860)\n\nCloses
19537708-5fda-4773-a85c-f21344cab4cc)","sha":"f7b0e49e2f81cf4e995f6877731281db01566909","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Cases","v8.12.0","v8.13.0"],"number":172860,"url":"https://github.com/elastic/kibana/pull/172860","mergeCommit":{"message":"[Cases]
Filter Overflow When To Much Filters Active (#172860)\n\nCloses
19537708-5fda-4773-a85c-f21344cab4cc)","sha":"f7b0e49e2f81cf4e995f6877731281db01566909"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172860","number":172860,"mergeCommit":{"message":"[Cases]
Filter Overflow When To Much Filters Active (#172860)\n\nCloses
19537708-5fda-4773-a85c-f21344cab4cc)","sha":"f7b0e49e2f81cf4e995f6877731281db01566909"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
2023-12-11 06:57:27 -07:00
Christos Nasikas
6ee47b05a7
[Cases] Remove useEffects from cases table filters (#172499) 2023-12-06 11:10:40 -07:00
Antonio
17008d20ad
[Cases] Fix flaky Case Activity View test (#172568)
Fixes #171575

## Summary

Let's see.

1. Using `within` in '`should render the activity content and main
components'` improves the execution time.
2. Removed some `expect`s in other tests that were already tested
elsewhere.
2023-12-06 15:27:18 +01:00
Antonio
165a1bdd01
[Cases] Return correct total comments and alerts on bulk update cases. (#172496)
Fixes #148082

## Summary

The bulk update cases API returned `totalComment` and `totalAlerts` per
case, but the value was always 0.

This PR fixes that.
2023-12-06 09:47:37 +01:00
Julian Gernun
a5e0b66771
[Cases] Activate Status & Severity Filters on Load (#172514)
Closes https://github.com/elastic/kibana/issues/172458

---------

Co-authored-by: Antonio <antoniodcoelho@gmail.com>
2023-12-05 15:54:20 +01:00
Antonio
edf4f35152
[Cases] Copy file hash from within the files table (#172450)
## Summary

The files table allows copying a file's hash(MD5, SHA1, or SHA256) when
available.

We only recently opted in for the hashing of uploaded files so
previously uploaded files will not display the Copy to Clipboard button.

The activity feed in a case's detail view will not display this action.


4bb2ce33-f999-4d7f-b2c7-f224bb42a162

## Release Notes

Users can copy to the clipboard the hashes of files uploaded to cases.
2023-12-05 08:58:14 +01:00
Julian Gernun
90d6358add
[Cases] Cases Table: Configure Available Filters Including Custom Fields (#172276)
Meta issue https://github.com/elastic/kibana/issues/167651
Fixes: https://github.com/elastic/kibana/issues/167651

## Summary
Previous PRs merged into this feature branch:
- https://github.com/elastic/kibana/pull/169356
- https://github.com/elastic/kibana/pull/169371
- https://github.com/elastic/kibana/pull/170851
- https://github.com/elastic/kibana/pull/171102
- https://github.com/elastic/kibana/pull/171176

## Release notes
Case list filter bar can now be customised. Filters can be removed and
custom fields can be used as filters

## Pending issues
- Table in modal shouldn’t load in local storage saved filter options of
status/severity
- Status & Severity filters in url. Filters must be activated if the
user has them deactivated
- UI overflow when to much filters are active
- Race condition: When a user has a custom field active with an option
selected and this custom field gets removed in settings, it includes the
removed custom field when refreshing. This request will fail, triggering
a second one which won't include the removed custom field
- Found during QA. In the modal, when trying to select all options in
the solutions filter, when checking the last unchecked option, it resets
and there is no checked option anymore

## Flaky test runner link

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4128

---------

Co-authored-by: Antonio <antoniodcoelho@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-12-04 11:47:45 +01:00
Antonio
e333c6ee2e
[Cases] Suggest user profiles with read permission (#172047)
Fixes #171446

## Summary

We will now also suggest users with only `Read Cases` permissions for
case assignment.

## Release notes

Fixed a bug that prevented users with read permission from being
assigned to cases.
2023-11-29 08:56:30 +01:00
Christos Nasikas
56887ac1f8
[Cases] Add new sub feature privilege to prevent access to the cases settings page (#170635) 2023-11-28 03:24:45 -07:00
Aleh Zasypkin
f7fa8469bd
Move Kibana Security public types to separate packages (#171886)
## Summary

In this PR, I'm relocating all Kibana Security types (along with a few
schemas necessary for some of these types, unfortunately) that are part
of public contracts to separate packages. This change will enable any
plugin to utilize Security APIs via "static" or
["runtime"](https://github.com/elastic/kibana/pull/167113) dependencies,
regardless of whether Kibana Security already relies on these plugins or
not.

__NOTE TO REVIEWERS:__ I tried to minimize changes as much as I could
via moving only necessary types. I also didn't move deprecated parts of
the Setup/Start contracts to these new packages.

__Triggered by:__ https://github.com/elastic/kibana/pull/168910

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-27 21:26:31 +01:00
Antonio
5f5c92a5a3
[Cases] Display required badge in custom field configuration. (#171975)
Fixes #167767

## Summary

I added information about whether the custom field is required or not.

Additionally, I followed @mdefazio 's comment and changed how we display
these to use an`EuiBadge` instead. The color is custom.

<img width="1207" alt="Screenshot 2023-11-27 at 11 57 52"
src="4c491293-1ccf-4377-843f-55fef45fc9b3">
2023-11-27 14:28:54 +01:00
Antonio
df30b7eb50
[Cases] Add scroll to columns popover. (#171912)
## Summary

- Added vertical scroll to the column selection popover
- Changed the fixed width of some columns in the cases table



08bccc40-792c-4bc0-8a4b-2a007b7257c2
2023-11-27 12:25:49 +01:00
Lisa Cawley
ea85f2a479
[OAS] Migrate case APIs to v3.1.0 (#171593) 2023-11-24 09:08:34 -08:00
Toby Brain
543e8659d7
ApiKey auth should be set in the Authorization header (#171496)
## Summary

Updates the openapi specs that I could find to correctly use the
`Authorization` header when using API Key authentication. Currently,
generated clients are specifying the incorrect (`ApiKey`) header and
failing to auth using and API Key.
2023-11-23 04:15:37 +11:00
Tiago Costa
03cbe7aa48
skip flaky suite (#171575) 2023-11-22 04:30:06 +00:00
Jonathan Budzenski
f51e6cd248 Revert "Upgrade to Node.js 20 (#162696)"
This reverts commit 029b3ba81d.
2023-11-21 07:15:23 -06:00
Thomas Watson
029b3ba81d
Upgrade to Node.js 20 (#162696)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2023-11-20 21:47:48 +01:00
Antonio
5557348e53
[Cases] Table toggle columns (#170950)
Fixes https://github.com/elastic/kibana/issues/167617

## Summary

This PR is to merge the feature branch into `main`.

The code was already reviewed in:
- https://github.com/elastic/kibana/pull/170684
- https://github.com/elastic/kibana/pull/169543

## Flaky Test Runner

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3975
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3996

### TODO

Functionality wise this is complete. There are still a couple of UI
leftovers to which I will create a PR in main.

These leftovers are:
- Disable hide all/show all during search 
- Touch up the fixed width of some columns 
- Check if the drag and drop `eui` component supports scrolling by
default

## Release Notes

Allow users to configure which columns are displayed in the cases list
including custom fields.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 03:15:50 -07:00
Janki Salvi
d4b5113a12
[Cases] Create internal API to filter cases by custom fields (#170297)
## Summary

Implements https://github.com/elastic/kibana/issues/167740

This PR 
- creates a new `search_cases` internal route with POST
- allows to filter by customFields (currently only toggle custom fields
can be filtered)
- adds unit and integration tests 

### example of search cases body: 
`{
   "customFields": {
       "custom_field_key": [true] 
   }
}`


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

### For maintainers

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 02:59:01 -07:00
Antonio
0f27f17316
[Cases] Opt in for file hashing. (#171162)
Fixes #171071

## Summary

In this PR we opt in for `md5` and `sha256` hashes that will be computed
and stored automatically on `.upload()` calls to the files API.

At the moment we don't do anything else with the hashes but we can
confirm they are being generate in the Files Tab in the Cases Detail
View. The Files Client list API now returns hashes.

<details><summary>See here.</summary>
<img width="1728" alt="Screenshot 2023-11-14 at 10 47 07"
src="08ef408f-3521-46ce-9131-67b161bd926c">
</details>
2023-11-15 10:52:43 +01:00
Alejandro Fernández Haro
fd09c26d15
async-import plugins in the server side (#170856)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 00:55:56 -07:00
Christos Nasikas
b7bdb58e7c
[Cases] Disabling editing ESQL visualizations (#171191)
## Summary

This PR disables editing an ESQL visualization from within Cases.

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

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

### For maintainers

- [x] 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-11-14 09:20:22 -07:00
Lisa Cawley
bb15bb1448
[OAS] Fix cases API data types for comments (#170698) 2023-11-08 07:12:54 -08:00
Marta Bondyra
3a784106df
[testing] replace testing-library/dom package with testing-library/react (#170594)
## Summary

Removes `testing-library/dom` from dependencies. As all the utilities
from`dom` are available already in `testing-library/react`, there's no
need to have both `dom` and `react` libraries available in our
package.json.

Following the [@testing-library/react
documentation:](https://testing-library.com/docs/react-testing-library/intro)

> [React Testing
Library](https://github.com/testing-library/react-testing-library)
builds on top of DOM Testing Library by adding APIs for working with
React components.

Let's just import everything from `testing-library/react`, this way we
won't need to worry about inconsistencies between `testing-library/dom`
we have in our `package.json` and the one that is
`testing-library/react` dependency.
2023-11-08 15:53:48 +01:00
Christos Nasikas
30e6677116
[Cases] Support bulk creating cases though the cases client (#170326) 2023-11-07 11:32:55 -07:00
Tiago Costa
aedd67730a
skip flaky suite (#149777) 2023-11-07 05:27:33 +00:00
Janki Salvi
42fc7ea4db
[Cases] fix serviceNow connector flaky test (#170537)
## Summary

Use `use await findByTestId` to fix flaky tests

fixes https://github.com/elastic/kibana/issues/167384
fixes https://github.com/elastic/kibana/issues/167385

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

### For maintainers

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-06 04:16:38 -07:00
Antonio
96a4d5b63f
[Cases] Fix flaky "add comment" tests. (#170400)
Fixes #168505
Fixes #168506
Fixes #168507
Fixes #168508
Fixes #168509
(I hope)

## Summary

Covered most of the logic in e2e tests.

Flaky test runner:
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3869

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-06 11:45:16 +01:00
Antonio
25522bb99c
[Cases] Fix jira flaky tests (#170507)
Fixes #169392
Fixes #169393
Fixes #169391 
Fixes #169390 
Fixes #169387 
Fixes #169386 
Fixes #169385 
Fixes #169384 
Fixes #169383

## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.
2023-11-06 09:56:00 +01:00
Cee Chen
d079e9573d
Upgrade EUI to v90.0.0 (#170179)
`v89.1.0``v90.0.0`

The majority of changes in this PR come from:

- **EuiContextMenu** being converted to Emotion
(https://github.com/elastic/eui/pull/7312). If your usage of
`EuiContextMenu` was significantly affected, we recommend pulling down
this PR and QAing it locally.

- `defaultProps` being removed from some very widespread components,
particularly **EuiButton**, in anticipation of React's upcoming
deprecation.
(b7dc9b4e89)
**NOTE**: This only affected Enzyme snapshots, and did not affect
production behavior.

[Commits](https://github.com/elastic/kibana/pull/170179/commits) have
been broken up by component changes as well as types of changes.

---

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

- Updated the `eventColor` prop on `EuiCommentEvent` to apply the color
to the entire comment header.
([#7288](https://github.com/elastic/eui/pull/7288))
- Updated `EuiBasicTable` and `EuiInMemoryTable` to support a new
controlled selection API: `selection.selected`
([#7321](https://github.com/elastic/eui/pull/7321))

**Bug fixes**

- Fixed controlled `EuiFieldNumbers` not correctly updating native
validity state ([#7291](https://github.com/elastic/eui/pull/7291))
- Fixed `EuiListGroupItem` to pass `style` props to the wrapping `<li>`
element alongside `className` and `css`. All other props will be passed
to the underlying content.
([#7298](https://github.com/elastic/eui/pull/7298))
- Fixed `EuiListGroupItem`'s non-transitioned transform on hover/focus
([#7298](https://github.com/elastic/eui/pull/7298))
- Fixed `EuiDataGrid`s with `gridStyle.stripes` sometimes showing buggy
row striping after being sorted
([#7301](https://github.com/elastic/eui/pull/7301))
- Fixed `EuiDataGrid`'s `gridStyle.rowClasses` API to not conflict with
`gridStyle.stripes` if dynamically updated
([#7301](https://github.com/elastic/eui/pull/7301))
- Fixed `EuiDataGrid`'s `gridStyle.rowClasses` API to support multiple
space-separated classes
([#7301](https://github.com/elastic/eui/pull/7301))
- Fixed `EuiInputPopover` not calling `onPanelResize` callback prop
([#7305](https://github.com/elastic/eui/pull/7305))
- Fixed `EuiDualRange` incorrectly positioning highlights when rendered
with `showInput="inputWithPopover"`
([#7305](https://github.com/elastic/eui/pull/7305))
- Fixed `EuiTabs` incorrectly wrapping text when it should instead
either scroll or truncate
([#7309](https://github.com/elastic/eui/pull/7309))
- `EuiContextMenu` now renders text colors correctly when used within an
`EuiBottomBar` ([#7312](https://github.com/elastic/eui/pull/7312))
- Fixed the width of `EuiSuperDatePicker`'s Absolute date picker
([#7313](https://github.com/elastic/eui/pull/7313))
- Fixed `EuiDataGrid` cells visually cutting off overflowing content a
little too quickly ([#7320](https://github.com/elastic/eui/pull/7320))

**Deprecations**

- Deprecated `EuiBasicTable` and `EuiInMemoryTable`'s ref `setSelection`
API. Use the new `selection.selected` API instead.
([#7321](https://github.com/elastic/eui/pull/7321))

**Breaking changes**

- Removed `EuiPageTemplate_Deprecated`, `EuiPageSideBar_Deprecated`, and
`EuiPageContent*_Deprecated`
([#7265](https://github.com/elastic/eui/pull/7265))
- Removed the `ghost` color option from `EuiButton`, `EuiButtonEmpty`,
and `EuiButtonIcon`. Use an `<EuiThemeProvider colorMode="dark">`
wrapper and `color="text"` instead.
([#7296](https://github.com/elastic/eui/pull/7296))

**Dependency updates**

- Updated `refractor` to v3.6.0
([#7127](https://github.com/elastic/eui/pull/7127))
- Updated `rehype-raw` to v5.1.0
([#7127](https://github.com/elastic/eui/pull/7127))
- Updated `vfile` to v4.2.1
([#7127](https://github.com/elastic/eui/pull/7127))

**Accessibility**

- `EuiContextMenu` now correctly respects reduced motion preferences
([#7312](https://github.com/elastic/eui/pull/7312))
- `EuiAccordion`s no longer attempt to focus child content when the
accordion is externally opened via `forceState`, but will continue to
focus expanded content when users click the toggle button.
([#7314](https://github.com/elastic/eui/pull/7314))

**CSS-in-JS conversions**

- Converted `EuiContextMenu`, `EuiContextMenuPanel`, and
`EuiContextMenuItem` to Emotion; Removed `$euiContextMenuWidth`
([#7312](https://github.com/elastic/eui/pull/7312))
2023-11-03 10:19:31 -07:00
Christos Nasikas
55b9c01539
[Cases] Fix FilesTable flaky test (#170504)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-03 09:45:18 -07:00
Janki Salvi
344ae1c91c
[Cases] fix user actions flaky tests (#170444)
## Summary

fixes https://github.com/elastic/kibana/issues/169858
fixes https://github.com/elastic/kibana/issues/169857
fixes https://github.com/elastic/kibana/issues/169859


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

### For maintainers

- [x] 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-11-03 13:15:13 +01:00
Julian Gernun
76a8c9e117
[Cases] Flaky/Broken Add/Draft Comment Tests (#170394)
hopefully fixes https://github.com/elastic/kibana/issues/169875
hopefully fixes https://github.com/elastic/kibana/issues/169876
2023-11-03 07:26:31 -04:00
Christos Nasikas
9c2652778f
[Cases] Fix flakiness in the description tests (#170433)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-03 11:03:45 +02:00
James Rodewig
0997cb2523
Update UI copy for tech preview (#170143) 2023-11-02 13:48:53 -07:00
Janki Salvi
1d337e300f
[Cases] fix description user actions flaky test (#170324)
## Summary

I removed the description user actions tests from
`x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx`

There were a few things being tested:

| Old Test  | Where is it covered |
| ------------- | ------------- |
| should render the description correctly | added description
integration on case view activity page `should render the activity
content and main components` , text of the description is already
verified in
`x-pack/plugins/cases/public/components/user_actions/description.test.tsx`
|
| renders edit description user action correctly | Already testing
description create and update user actions in `renders user actions
correctly` in file
`x-pack/plugins/cases/public/components/user_actions/user_actions_list.test.tsx`
|


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

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

### For maintainers

- [x] 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-11-02 06:52:25 -07:00
Lisa Cawley
87ad907be6
[OAS] Update tech preview text in case APIs (#170280) 2023-11-01 08:20:55 -07:00
Christos Nasikas
09a2fa4372
[Cases] Fix configuration caching key (#170258)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-01 02:50:00 -07:00
Lisa Cawley
952de6e813
[OAS] Simplify server declaration for case APIs (#169889) 2023-10-26 08:29:49 -07:00
Tiago Costa
a29cbf1109
skip flaky suite (#169876) 2023-10-26 04:14:29 +01:00
Jonathan Budzenski
a6efaf5221 skip failing test suite (#169875) 2023-10-25 15:25:06 -05:00
Tiago Costa
c2d24724ad
skip flaky suite (#168509) 2023-10-25 20:09:55 +01:00
Tiago Costa
0a3c320534
skip flaky suite (#168508) 2023-10-25 20:09:37 +01:00
Tiago Costa
cb0bc971f4
skip flaky suite (#168507) 2023-10-25 20:09:18 +01:00
Tiago Costa
f5bf0541c5
skip flaky suite (#168506) 2023-10-25 20:08:02 +01:00
Tiago Costa
4a37b20143
skip flaky suite (#168505) 2023-10-25 20:05:50 +01:00
Antonio
31accd60a0
[Cases] Change the error message for missing required custom fields. (#169758)
## Summary

Updated the error message when the user tried to update a case with
missing required custom fields.

<details><summary>Before</summary><img width="606" alt="Screenshot
2023-10-24 at 14 42 18"
src="999272cb-b558-4b89-a100-6c5a80ec714c"></details>

<details><summary>After</summary>
<img width="393" alt="Screenshot 2023-10-25 at 10 38 14"
src="ea10b349-03cd-4ed3-bc52-7d1feb82abac"></details>
2023-10-25 12:33:50 +02:00