Skip to content

[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
doakalexi:bug/reporting-list-in-spaces
Aug 11, 2025
Merged

[ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them#230876
doakalexi merged 7 commits intoelastic:mainfrom
doakalexi:bug/reporting-list-in-spaces

Conversation

@doakalexi
Copy link
Contributor

@doakalexi doakalexi commented Aug 6, 2025

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

To verify

  1. Checkout this branch, 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. 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.
@doakalexi doakalexi changed the title Fixing bug with reporting spaces Aug 7, 2025
@pmuellr
Copy link
Contributor

pmuellr commented Aug 7, 2025

Edited this to move the comment I made here, about the "problem", to the issue. Seemed better to put it there:.
#230867 (comment)

@doakalexi doakalexi added Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// release_note:fix backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Aug 8, 2025
@doakalexi doakalexi marked this pull request as ready for review August 8, 2025 14:19
@doakalexi doakalexi requested a review from a team as a code owner August 8, 2025 14:19
@elasticmachine
Copy link
Contributor

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

@doakalexi doakalexi requested a review from pmuellr August 8, 2025 14:19
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Copy link
Contributor

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

LGTM

@doakalexi doakalexi enabled auto-merge (squash) August 11, 2025 17:08
Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

Tested, LGTM

@doakalexi doakalexi merged commit 6702d25 into elastic:main Aug 11, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

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)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 230876

Questions ?

Please refer to the Backport tool documentation

@doakalexi
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

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).
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.19.3 v9.1.3 v9.2.0

6 participants