Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an error with missing uids in the cases detail page (#207228)
Fixes #206801 ## Summary When opening the case detail page we retrieve user profile info for the different case user actions. If the uid stored in ES is an empty string for any of these user actions, we get an error that looks like this: ![Screenshot 2025-01-20 at 12 34 54](https://github.com/user-attachments/assets/175c6920-a4fb-4588-9668-1ba7d73f14f3) ### Steps to reproduce/test (thanks @jcger ) 1. Create a user with the `system_indices_superuser` role 2. Create a case and assign a user to it 3. Get the ID of the assignment user action from the case above ``` GET .kibana_alerting_cases/_search { "query": { "bool": { "filter": [ { "term": { "type": "cases-user-actions" } }, { "term": { "cases-user-actions.type": "assignees" } }, { "nested": { "path": "references", "query": { "bool": { "filter": [ { "term": { "references.type": "cases" } }, { "term": { "references.id": "<case_id>" } } ] } } } } ] } } } ``` 4. Manually set the `uid` of the assignee to `""` ``` POST .kibana_alerting_cases/_update/<cases-user-actions-id> { "script": { "source": """ ctx._source["cases-user-actions"].payload.assignees[0].uid = ""; """ } } ``` After this PR the popup should **not** appear anymore. (cherry picked from commit d8e5cbf)
- Loading branch information