# 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>
# 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>
# 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>
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.
## 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.
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.
## 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>
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">
## 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
## 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.
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>
## 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.
## 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)
## 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>