[8.19] [Response Ops][Reporting] Report UI should only show reports generated in the current space. (#221375)#223002
Merged
ymao1 merged 1 commit intoelastic:8.19from Jun 6, 2025
Merged
Conversation
…d in the current space. (elastic#221375) Resolves elastic#219881 ## Summary * Saves `space_id` in the report source document when a report is generated. * Updated the `list` API to filter by `space_id` (if available). The filter also includes documents where `space_id` is not populated in order to maintain backwards compatibility with old reports that don't include the `space_id` field. This is an internal API so this change should be allowed. * Associated Elasticsearch PR to add `space_id` to the report index mapping: elastic/elasticsearch#128336 ## To Verify * On `main`, generate reports in different spaces * Switch to this branch and generate more reports in different spaces * Verify that you only see the new reports generated in the current space + the old reports generated on `main` with no space id. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit a55c72d) # Conflicts: # x-pack/platform/plugins/private/reporting/server/routes/common/jobs/jobs_query.test.ts
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.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation