Skip to content

[9.1] [ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)#231345

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-230876
Aug 11, 2025
Merged

[9.1] [ResponseOps] [Reporting] Reports not showing up in the reporting list for spaces with a dash in them (#230876)#231345
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-230876

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…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 kibanamachine merged commit ee2314c into elastic:9.1 Aug 11, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @doakalexi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants