Skip to content

[Response Ops][Cases] Cases with empty string assignees throwing error#209973

Merged
jcger merged 9 commits intoelastic:mainfrom
jcger:issue-209950-cases-list-broken-assignee
Feb 12, 2025
Merged

[Response Ops][Cases] Cases with empty string assignees throwing error#209973
jcger merged 9 commits intoelastic:mainfrom
jcger:issue-209950-cases-list-broken-assignee

Conversation

@jcger
Copy link
Copy Markdown
Contributor

@jcger jcger commented Feb 6, 2025

Summary

Closes #209950

Testing steps in referenced issue

Release note

Fix error message in cases list if case assignee is an empty string

@jcger jcger added release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Cases Cases feature backport:prev-major v9.1.0 labels Feb 6, 2025
@jcger jcger requested a review from a team as a code owner February 6, 2025 10:11
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@cnasikas cnasikas self-requested a review February 10, 2025 08:10
Copy link
Copy Markdown
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also remove empty strings when someone creates or update a case with assignees on the backend?

for (const assignee of caseInfo.assignees) {
acc.add(assignee.uid);
if (!isEmpty(assignee.uid)) {
acc.add(assignee.uid);
Copy link
Copy Markdown
Member

@cnasikas cnasikas Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of moving the responsibility to the useBulkGetUserProfiles hook?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll add it to bulkGetUserProfiles in x-pack/platform/plugins/shared/cases/public/containers/user_profiles/api.ts

@cnasikas cnasikas added bug Fixes for quality problems that affect the customer experience v9.0.0 v8.18.0 v8.16.4 v8.17.2 labels Feb 10, 2025
@jcger
Copy link
Copy Markdown
Contributor Author

jcger commented Feb 10, 2025

Should we also remove empty strings when someone creates or update a case with assignees on the backend?

I think that would make sense, yes. Should we shut down this option completely by updating the schema definition or should we allow it but ignore? I think it was never our intention to have empty strings as profile uid but now that it seems like some users might have it, should we just filter out empty values like we do in the UI? @cnasikas

I tried

export const CaseUserProfileRt = rt.strict({
  uid: rt.refinement(rt.string, (s) => !isEmpty(s), 'nonEmptyString'),
});

I've seen that the cases list does not render any case when a case has an assignee with empty string because the _search api throws an error.

@cnasikas
Copy link
Copy Markdown
Member

cnasikas commented Feb 10, 2025

I think that would make sense, yes. Should we shut down this option completely by updating the schema definition or should we allow it but ignore?

I would say to ignore it and filter out empty values from the assignees array on the Create and Update Case API. Otherwise, it would be a breaking change.

@@ -0,0 +1,36 @@
/*
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created this sanitizers file for functions that clean request params. I saw there is also transformations but I think it's not the same. I also though it's important to add versioning to this functions as if there is a breaking change in the param, there would also be one here. Let me know if this should be done somewhere else.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of sanitizers. Cases are structured in three layers like routes -> cases client -> services. In my previous comment, I suggested moving the responsibility of sanitizing the assignee's array in the cases client. In this case, it is better to have the sanitizers file in x-pack/platform/plugins/shared/cases/server/client/sanitizers.ts as we do for the validators.ts. Lastly, in the cases client, we do not version functions, so it is safe to have the sanitizers without versioning.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking about moving this to .../cases/server/client/cases/ instead. I won't have to update anything, in .../cases/server/client/ it should be something more generic as there are assignees, at least, in user-actions. Seems like we follow the same pattern for validators too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me!

@@ -0,0 +1,54 @@
/*
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test in trial because only premium users can assign cases to a user

const theCase = emptyCaseAssigneesSanitizerV1(rawCase);

const res: caseDomainV1.Case = await casesClient.cases.create({ ...theCase });
const res: caseDomainV1.Case = await casesClient.cases.create(theCase);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why theCase was spread before but as theCase is now a new object anyways I though it would be ok to pass it through this way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also seems ok to me.

@jcger jcger requested a review from cnasikas February 11, 2025 11:28
} as unknown as ReturnType<typeof useKibana>);
};

// eslint-disable-next-line prefer-object-spread
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed this initially, not needed anymore but keeping just because it's cleaner/easier to reuse if needed

Copy link
Copy Markdown
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cases 540.8KB 540.9KB +124.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test-suites-xpack 719 721 +2

Total ESLint disabled count

id before after diff
@kbn/test-suites-xpack 744 746 +2

History

@jcger jcger merged commit 0897d08 into elastic:main Feb 12, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13279157956

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
elastic#209973)

## Summary
Closes elastic#209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string

(cherry picked from commit 0897d08)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
elastic#209973)

## Summary
Closes elastic#209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string

(cherry picked from commit 0897d08)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 12, 2025
elastic#209973)

## Summary
Closes elastic#209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string

(cherry picked from commit 0897d08)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18
8.x
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 209973

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 12, 2025
…g error (#209973) (#210733)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Response Ops][Cases] Cases with empty string assignees throwing
error (#209973)](#209973)

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

### 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":"2025-02-12T06:06:44Z","message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-major","v8.18.0","v8.16.4","v8.17.2","v9.1.0"],"title":"[Response
Ops][Cases] Cases with empty string assignees throwing
error","number":209973,"url":"https://github.com/elastic/kibana/pull/209973","mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.16","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209973","number":209973,"mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Feb 12, 2025
…g error (#209973) (#210732)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Response Ops][Cases] Cases with empty string assignees throwing
error (#209973)](#209973)

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

### 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":"2025-02-12T06:06:44Z","message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-major","v8.18.0","v8.16.4","v8.17.2","v9.1.0"],"title":"[Response
Ops][Cases] Cases with empty string assignees throwing
error","number":209973,"url":"https://github.com/elastic/kibana/pull/209973","mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.16","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209973","number":209973,"mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
@jcger
Copy link
Copy Markdown
Contributor Author

jcger commented Feb 12, 2025

💔 Some backports could not be created

Status Branch Result
8.17
8.16 An unhandled error occurred. Please see the logs for details

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 209973

Questions ?

Please refer to the Backport tool documentation

jcger added a commit to jcger/kibana that referenced this pull request Feb 12, 2025
elastic#209973)

## Summary
Closes elastic#209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string

(cherry picked from commit 0897d08)

# Conflicts:
#	x-pack/plugins/cases/server/client/cases/bulk_update.test.ts
#	x-pack/plugins/cases/server/client/cases/create.test.ts
#	x-pack/plugins/cases/server/client/cases/sanitizers.ts
@jcger
Copy link
Copy Markdown
Contributor Author

jcger commented Feb 12, 2025

💚 All backports created successfully

Status Branch Result
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jcger added a commit to jcger/kibana that referenced this pull request Feb 12, 2025
elastic#209973)

## Summary
Closes elastic#209950

Testing steps in referenced issue

## Release note
Fix error message in cases list if case assignee is an empty string

(cherry picked from commit 0897d08)

# Conflicts:
#	x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx
#	x-pack/plugins/cases/server/client/cases/bulk_update.test.ts
#	x-pack/plugins/cases/server/client/cases/create.test.ts
#	x-pack/plugins/cases/server/client/cases/sanitizers.ts
jcger added a commit that referenced this pull request Feb 12, 2025
…ng error (#209973) (#210755)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Response Ops][Cases] Cases with empty string assignees throwing
error (#209973)](#209973)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Julian
Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-12T06:06:44Z","message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-major","v8.18.0","v8.16.4","v8.17.2","v9.1.0","v8.19.0"],"title":"[Response
Ops][Cases] Cases with empty string assignees throwing
error","number":209973,"url":"https://github.com/elastic/kibana/pull/209973","mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210733","number":210733,"state":"MERGED","mergeCommit":{"sha":"ee04349a417e47004062aeb796092f6813122192","message":"[9.0]
[Response Ops][Cases] Cases with empty string assignees throwing error
(#209973) (#210733)\n\n# Backport\n\nThis will backport the following
commits from `main` to `9.0`:\n- [[Response Ops][Cases] Cases with empty
string assignees throwing\nerror
(#209973)](https://github.com/elastic/kibana/pull/209973)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Julian\nGernun\",\"email\":\"17549662+jcger@users.noreply.github.com\"},\"sourceCommit\":{\"committedDate\":\"2025-02-12T06:06:44Z\",\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:fix\",\"Team:ResponseOps\",\"v9.0.0\",\"Feature:Cases\",\"backport:prev-major\",\"v8.18.0\",\"v8.16.4\",\"v8.17.2\",\"v9.1.0\"],\"title\":\"[Response\nOps][Cases]
Cases with empty string assignees
throwing\nerror\",\"number\":209973,\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.18\",\"8.16\",\"8.17\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.16\",\"label\":\"v8.16.4\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.17\",\"label\":\"v8.17.2\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"number\":209973,\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Julian Gernun
<17549662+jcger@users.noreply.github.com>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210731","number":210731,"state":"OPEN"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209973","number":209973,"mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210732","number":210732,"state":"MERGED","mergeCommit":{"sha":"8b98614e9dbdaaeaebac56d633cd2b7c35af01bd","message":"[8.x]
[Response Ops][Cases] Cases with empty string assignees throwing error
(#209973) (#210732)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.x`:\n- [[Response Ops][Cases] Cases with empty
string assignees throwing\nerror
(#209973)](https://github.com/elastic/kibana/pull/209973)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Julian\nGernun\",\"email\":\"17549662+jcger@users.noreply.github.com\"},\"sourceCommit\":{\"committedDate\":\"2025-02-12T06:06:44Z\",\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:fix\",\"Team:ResponseOps\",\"v9.0.0\",\"Feature:Cases\",\"backport:prev-major\",\"v8.18.0\",\"v8.16.4\",\"v8.17.2\",\"v9.1.0\"],\"title\":\"[Response\nOps][Cases]
Cases with empty string assignees
throwing\nerror\",\"number\":209973,\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.18\",\"8.16\",\"8.17\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.16\",\"label\":\"v8.16.4\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.17\",\"label\":\"v8.17.2\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"number\":209973,\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Julian Gernun <17549662+jcger@users.noreply.github.com>"}}]}]
BACKPORT-->
kibanamachine added a commit that referenced this pull request Feb 12, 2025
…ng error (#209973) (#210731)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Response Ops][Cases] Cases with empty string assignees throwing
error (#209973)](#209973)

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

### 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":"2025-02-12T06:06:44Z","message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-major","v8.18.0","v8.16.4","v8.17.2","v9.1.0"],"title":"[Response
Ops][Cases] Cases with empty string assignees throwing
error","number":209973,"url":"https://github.com/elastic/kibana/pull/209973","mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.16","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209973","number":209973,"mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}}]}]
BACKPORT-->

Co-authored-by: Julian Gernun <17549662+jcger@users.noreply.github.com>
jcger added a commit that referenced this pull request Feb 12, 2025
…ng error (#209973) (#210768)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Response Ops][Cases] Cases with empty string assignees throwing
error (#209973)](#209973)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Julian
Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-12T06:06:44Z","message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-major","v8.18.0","v8.16.4","v8.17.2","v9.1.0","v8.19.0"],"title":"[Response
Ops][Cases] Cases with empty string assignees throwing
error","number":209973,"url":"https://github.com/elastic/kibana/pull/209973","mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210733","number":210733,"state":"MERGED","mergeCommit":{"sha":"ee04349a417e47004062aeb796092f6813122192","message":"[9.0]
[Response Ops][Cases] Cases with empty string assignees throwing error
(#209973) (#210733)\n\n# Backport\n\nThis will backport the following
commits from `main` to `9.0`:\n- [[Response Ops][Cases] Cases with empty
string assignees throwing\nerror
(#209973)](https://github.com/elastic/kibana/pull/209973)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Julian\nGernun\",\"email\":\"17549662+jcger@users.noreply.github.com\"},\"sourceCommit\":{\"committedDate\":\"2025-02-12T06:06:44Z\",\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:fix\",\"Team:ResponseOps\",\"v9.0.0\",\"Feature:Cases\",\"backport:prev-major\",\"v8.18.0\",\"v8.16.4\",\"v8.17.2\",\"v9.1.0\"],\"title\":\"[Response\nOps][Cases]
Cases with empty string assignees
throwing\nerror\",\"number\":209973,\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.18\",\"8.16\",\"8.17\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.16\",\"label\":\"v8.16.4\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.17\",\"label\":\"v8.17.2\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"number\":209973,\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Julian Gernun
<17549662+jcger@users.noreply.github.com>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210731","number":210731,"state":"OPEN"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210755","number":210755,"state":"OPEN"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209973","number":209973,"mergeCommit":{"message":"[Response
Ops][Cases] Cases with empty string assignees throwing error
(#209973)\n\n## Summary\nCloses
https://github.com/elastic/kibana/issues/209950\n\nTesting steps in
referenced issue\n\n## Release note\nFix error message in cases list if
case assignee is an empty
string","sha":"0897d0878622db9d9747e2bc1292d647c09ad996"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210732","number":210732,"state":"MERGED","mergeCommit":{"sha":"8b98614e9dbdaaeaebac56d633cd2b7c35af01bd","message":"[8.x]
[Response Ops][Cases] Cases with empty string assignees throwing error
(#209973) (#210732)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.x`:\n- [[Response Ops][Cases] Cases with empty
string assignees throwing\nerror
(#209973)](https://github.com/elastic/kibana/pull/209973)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Julian\nGernun\",\"email\":\"17549662+jcger@users.noreply.github.com\"},\"sourceCommit\":{\"committedDate\":\"2025-02-12T06:06:44Z\",\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:fix\",\"Team:ResponseOps\",\"v9.0.0\",\"Feature:Cases\",\"backport:prev-major\",\"v8.18.0\",\"v8.16.4\",\"v8.17.2\",\"v9.1.0\"],\"title\":\"[Response\nOps][Cases]
Cases with empty string assignees
throwing\nerror\",\"number\":209973,\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.18\",\"8.16\",\"8.17\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.16\",\"label\":\"v8.16.4\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.17\",\"label\":\"v8.17.2\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209973\",\"number\":209973,\"mergeCommit\":{\"message\":\"[Response\nOps][Cases]
Cases with empty string assignees throwing error\n(#209973)\\n\\n##
Summary\\nCloses\nhttps://github.com//issues/209950\\n\\nTesting
steps in\nreferenced issue\\n\\n## Release note\\nFix error message in
cases list if\ncase assignee is an
empty\nstring\",\"sha\":\"0897d0878622db9d9747e2bc1292d647c09ad996\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Julian Gernun <17549662+jcger@users.noreply.github.com>"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:Cases Cases feature release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.16.5 v8.17.3 v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Response Ops][Cases] Cases with empty string assignees throwing error

4 participants