[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them#230876
Merged
doakalexi merged 7 commits intoelastic:mainfrom Aug 11, 2025
Merged
Conversation
Contributor
|
Edited this to move the comment I made here, about the "problem", to the issue. Seemed better to put it there:. |
Contributor
|
Pinging @elastic/response-ops (Team:ResponseOps) |
Contributor
💚 Build Succeeded
Metrics [docs]
History
|
Contributor
|
Starting backport for target branches: 8.19, 9.1 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Aug 11, 2025
…t for spaces with a dash in them (elastic#230876) Resolves elastic#230867 ## Summary Sometimes reports are showing up in the UI in spaces other than the default space. We noticed this bug for spaces with a dash in them, but it can happen in other spaces too. Thehe `space_id` is getting mapped as a text field, so the `jobs/list` api is not filtering for them correctly. This PR updates the query to also search on `space_id.keyword`. ### 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 ### To verify 1. Checkout this branch, and create another space with spaces or dashes in the name, like test-internal. 1. Generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your report shows up in the UI. **Test upgrading** Upgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch Run Kibana with `yarn es snapshot --license trial -E path.data=../data` 1. Checkout 8.17.4, and create another space with spaces or dashes in the name, like test-internal. 2. Generate PDF, PNG, and CSV reports in your new space and default space. 3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new space and default space. 4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new space and default space. At this point, bc the bug is in the branch, you wont be able to see your reports in Stack Management > Reporting. 5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your all report shows up in the UI for both spaces. (cherry picked from commit 6702d25)
Contributor
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
Contributor
Author
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
doakalexi
added a commit
to doakalexi/kibana
that referenced
this pull request
Aug 11, 2025
…t for spaces with a dash in them (elastic#230876) Resolves elastic#230867 ## Summary Sometimes reports are showing up in the UI in spaces other than the default space. We noticed this bug for spaces with a dash in them, but it can happen in other spaces too. Thehe `space_id` is getting mapped as a text field, so the `jobs/list` api is not filtering for them correctly. This PR updates the query to also search on `space_id.keyword`. ### 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 ### To verify 1. Checkout this branch, and create another space with spaces or dashes in the name, like test-internal. 1. Generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your report shows up in the UI. **Test upgrading** Upgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch Run Kibana with `yarn es snapshot --license trial -E path.data=../data` 1. Checkout 8.17.4, and create another space with spaces or dashes in the name, like test-internal. 2. Generate PDF, PNG, and CSV reports in your new space and default space. 3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new space and default space. 4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new space and default space. At this point, bc the bug is in the branch, you wont be able to see your reports in Stack Management > Reporting. 5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your all report shows up in the UI for both spaces. (cherry picked from commit 6702d25) # Conflicts: # x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.test.ts
kibanamachine
added a commit
that referenced
this pull request
Aug 11, 2025
…ng list for spaces with a dash in them (#230876) (#231345) # Backport This will backport the following commits from `main` to `9.1`: - [[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)](#230876) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alexi Doak","email":"109488926+doakalexi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-08-11T18:01:09Z","message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them","number":230876,"url":"https://github.com/elastic/kibana/pull/230876","mergeCommit":{"message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230876","number":230876,"mergeCommit":{"message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355"}}]}] BACKPORT--> Co-authored-by: Alexi Doak <109488926+doakalexi@users.noreply.github.com>
doakalexi
added a commit
that referenced
this pull request
Aug 11, 2025
…ing list for spaces with a dash in them (#230876) (#231350) # Backport This will backport the following commits from `main` to `8.19`: - [[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)](#230876) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Alexi Doak","email":"109488926+doakalexi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-08-11T18:01:09Z","message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them","number":230876,"url":"https://github.com/elastic/kibana/pull/230876","mergeCommit":{"message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231345","number":231345,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230876","number":230876,"mergeCommit":{"message":"[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)\n\nResolves https://github.com/elastic/kibana/issues/230867\n\n## Summary\n\nSometimes reports are showing up in the UI in spaces other than the\ndefault space. We noticed this bug for spaces with a dash in them, but\nit can happen in other spaces too. Thehe `space_id` is getting mapped as\na text field, so the `jobs/list` api is not filtering for them\ncorrectly. This PR updates the query to also search on\n`space_id.keyword`.\n\n### Checklist\n\n- [ ] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### To verify\n\n1. Checkout this branch, and create another space with spaces or dashes\nin the name, like test-internal.\n1. Generate PDF, PNG, and CSV reports in your new space and default\nspace. Go to Stack Management > Reporting to verify that your report\nshows up in the UI.\n\n**Test upgrading**\nUpgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch\nRun Kibana with `yarn es snapshot --license trial -E path.data=../data`\n1. Checkout 8.17.4, and create another space with spaces or dashes in\nthe name, like test-internal.\n2. Generate PDF, PNG, and CSV reports in your new space and default\nspace.\n3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new\nspace and default space.\n4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new\nspace and default space. At this point, bc the bug is in the branch, you\nwont be able to see your reports in Stack Management > Reporting.\n5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your\nnew space and default space. Go to Stack Management > Reporting to\nverify that your all report shows up in the UI for both spaces.","sha":"6702d2545c538b3c6e70729b612e4becebbe7355"}}]}] BACKPORT-->
NicholasPeretti
pushed a commit
to NicholasPeretti/kibana
that referenced
this pull request
Aug 18, 2025
…t for spaces with a dash in them (elastic#230876) Resolves elastic#230867 ## Summary Sometimes reports are showing up in the UI in spaces other than the default space. We noticed this bug for spaces with a dash in them, but it can happen in other spaces too. Thehe `space_id` is getting mapped as a text field, so the `jobs/list` api is not filtering for them correctly. This PR updates the query to also search on `space_id.keyword`. ### 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 ### To verify 1. Checkout this branch, and create another space with spaces or dashes in the name, like test-internal. 1. Generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your report shows up in the UI. **Test upgrading** Upgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch Run Kibana with `yarn es snapshot --license trial -E path.data=../data` 1. Checkout 8.17.4, and create another space with spaces or dashes in the name, like test-internal. 2. Generate PDF, PNG, and CSV reports in your new space and default space. 3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new space and default space. 4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new space and default space. At this point, bc the bug is in the branch, you wont be able to see your reports in Stack Management > Reporting. 5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your all report shows up in the UI for both spaces.
qn895
pushed a commit
to qn895/kibana
that referenced
this pull request
Aug 26, 2025
…t for spaces with a dash in them (elastic#230876) Resolves elastic#230867 ## Summary Sometimes reports are showing up in the UI in spaces other than the default space. We noticed this bug for spaces with a dash in them, but it can happen in other spaces too. Thehe `space_id` is getting mapped as a text field, so the `jobs/list` api is not filtering for them correctly. This PR updates the query to also search on `space_id.keyword`. ### 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 ### To verify 1. Checkout this branch, and create another space with spaces or dashes in the name, like test-internal. 1. Generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your report shows up in the UI. **Test upgrading** Upgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch Run Kibana with `yarn es snapshot --license trial -E path.data=../data` 1. Checkout 8.17.4, and create another space with spaces or dashes in the name, like test-internal. 2. Generate PDF, PNG, and CSV reports in your new space and default space. 3. Upgrade to 8.18.4 and generate PDF, PNG, and CSV reports in your new space and default space. 4. Upgrade to 8.19.0 and generate PDF, PNG, and CSV reports in your new space and default space. At this point, bc the bug is in the branch, you wont be able to see your reports in Stack Management > Reporting. 5. Upgrade to this branch and generate PDF, PNG, and CSV reports in your new space and default space. Go to Stack Management > Reporting to verify that your all report shows up in the UI for both spaces.
romain-chanu
added a commit
that referenced
this pull request
Oct 31, 2025
This reports listing issue was only fixed in 9.1.3 (#230876).
10 tasks
romain-chanu
added a commit
that referenced
this pull request
Oct 31, 2025
…rovides the fix This reports listing issue was only fixed in 8.19.3, 9.1.3 and 9.2.0 (#230876) So we need to update this releases notes page accordingly.
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #230867
Summary
Sometimes reports are showing up in the UI in spaces other than the default space. We noticed this bug for spaces with a dash in them, but it can happen in other spaces too. Thehe
space_idis getting mapped as a text field, so thejobs/listapi is not filtering for them correctly. This PR updates the query to also search onspace_id.keyword.Checklist
To verify
Test upgrading
Upgrade from 8.17.4 -> 8.18.4 -> 8.19.0 -> this branch
Run Kibana with
yarn es snapshot --license trial -E path.data=../data