Skip to content

[Response Ops][Reporting] Store space_id in report doc generated from scheduled export#225669

Merged
ymao1 merged 5 commits intoelastic:mainfrom
ymao1:scheduled-report-space-id
Jul 2, 2025
Merged

[Response Ops][Reporting] Store space_id in report doc generated from scheduled export#225669
ymao1 merged 5 commits intoelastic:mainfrom
ymao1:scheduled-report-space-id

Conversation

@ymao1
Copy link
Contributor

@ymao1 ymao1 commented Jun 27, 2025

Summary

Noticed during verification that the report document generated during scheduled exports do not include the space_id field. We added it for single exports in this PR but forgot to update the scheduled export feature to pass through the space ID.

To Verify

  1. Create a scheduled export and wait for it to generate a report
  2. Look for the doc in .kibana-reporting. It should contain the space_id field.
@ymao1 ymao1 self-assigned this Jun 27, 2025
@ymao1 ymao1 added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Reporting:Framework Reporting issues pertaining to the overall framework backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jun 27, 2025
@ymao1 ymao1 marked this pull request as ready for review June 27, 2025 19:05
@ymao1 ymao1 requested a review from a team as a code owner June 27, 2025 19:05
@elasticmachine
Copy link
Contributor

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

@ymao1 ymao1 requested a review from js-jankisalvi June 27, 2025 19:06
@ymao1
Copy link
Contributor Author

ymao1 commented Jun 30, 2025

@elasticmachine merge upstream

@ymao1
Copy link
Contributor Author

ymao1 commented Jun 30, 2025

@elasticmachine merge upstream

@ymao1
Copy link
Contributor Author

ymao1 commented Jul 1, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @ymao1

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; tested in a non-default space, noticed the space_id in the reporting docs, task manager docs, etc. Scheduled a report in a non-default space that worked.

@ymao1 ymao1 merged commit d43d900 into elastic:main Jul 2, 2025
10 checks passed
@ymao1 ymao1 deleted the scheduled-report-space-id branch July 2, 2025 11:33
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
…om scheduled export (elastic#225669)

## Summary

Noticed during verification that the report document generated during
scheduled exports do not include the `space_id` field. We added it for
single exports in [this
PR](elastic#221375) but forgot to update
the scheduled export feature to pass through the space ID.

## To Verify

1. Create a scheduled export and wait for it to generate a report
2. Look for the doc in `.kibana-reporting`. It should contain the
`space_id` field.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit d43d900)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
…om scheduled export (elastic#225669)

## Summary

Noticed during verification that the report document generated during
scheduled exports do not include the `space_id` field. We added it for
single exports in [this
PR](elastic#221375) but forgot to update
the scheduled export feature to pass through the space ID.

## To Verify

1. Create a scheduled export and wait for it to generate a report
2. Look for the doc in `.kibana-reporting`. It should contain the
`space_id` field.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit d43d900)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 2, 2025
…ated from scheduled export (#225669) (#226171)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Response Ops][Reporting] Store `space_id` in report doc generated
from scheduled export
(#225669)](#225669)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T11:33:53Z","message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export","number":225669,"url":"https://github.com/elastic/kibana/pull/225669","mergeCommit":{"message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de"}},"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/225669","number":225669,"mergeCommit":{"message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jul 2, 2025
…ted from scheduled export (#225669) (#226172)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Response Ops][Reporting] Store `space_id` in report doc generated
from scheduled export
(#225669)](#225669)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T11:33:53Z","message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export","number":225669,"url":"https://github.com/elastic/kibana/pull/225669","mergeCommit":{"message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de"}},"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/225669","number":225669,"mergeCommit":{"message":"[Response
Ops][Reporting] Store `space_id` in report doc generated from scheduled
export (#225669)\n\n## Summary\n\nNoticed during verification that the
report document generated during\nscheduled exports do not include the
`space_id` field. We added it for\nsingle exports in
[this\nPR](#221375) but forgot to
update\nthe scheduled export feature to pass through the space ID.\n\n##
To Verify\n\n1. Create a scheduled export and wait for it to generate a
report\n2. Look for the doc in `.kibana-reporting`. It should contain
the\n`space_id` field.\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d43d90094aa2c6902624ccccd1c199f73fbfe9de"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…om scheduled export (elastic#225669)

## Summary

Noticed during verification that the report document generated during
scheduled exports do not include the `space_id` field. We added it for
single exports in [this
PR](elastic#221375) but forgot to update
the scheduled export feature to pass through the space ID.

## To Verify

1. Create a scheduled export and wait for it to generate a report
2. Look for the doc in `.kibana-reporting`. It should contain the
`space_id` field.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
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 bug Fixes for quality problems that affect the customer experience Feature:Reporting:Framework Reporting issues pertaining to the overall framework release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.19.0 v9.1.0 v9.2.0

4 participants