Skip to content

[ResponseOps][Reporting] Schedule reporting tables enhancements#225449

Merged
js-jankisalvi merged 11 commits intoelastic:mainfrom
js-jankisalvi:schedule-reporting-tables-enhancements
Jul 1, 2025
Merged

[ResponseOps][Reporting] Schedule reporting tables enhancements#225449
js-jankisalvi merged 11 commits intoelastic:mainfrom
js-jankisalvi:schedule-reporting-tables-enhancements

Conversation

@js-jankisalvi
Copy link
Contributor

@js-jankisalvi js-jankisalvi commented Jun 26, 2025

Summary

This PR adds functional tests, more unit tests and addresses review comments from PR #224849

Fixes #225172 flaky test

Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485

Checklist

@js-jankisalvi js-jankisalvi self-assigned this Jun 26, 2025
@js-jankisalvi js-jankisalvi requested a review from a team as a code owner June 26, 2025 13:03
@js-jankisalvi js-jankisalvi added 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 26, 2025
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8463

[❌] x-pack/test/reporting_functional/reporting_and_security.config.ts: 7/25 tests passed.
[❌] x-pack/test/reporting_functional/reporting_without_security.config.ts: 18/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8464

[❌] x-pack/test/reporting_functional/reporting_and_security.config.ts: 0/25 tests passed.
[❌] x-pack/test/reporting_functional/reporting_without_security.config.ts: 0/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#8477

[✅] x-pack/platform/test/reporting_functional/reporting_and_security.config.ts: 25/25 tests passed.
[✅] x-pack/platform/test/reporting_functional/reporting_without_security.config.ts: 25/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8478

[❌] x-pack/platform/test/reporting_functional/reporting_and_security.config.ts: 69/100 tests passed.
[✅] x-pack/platform/test/reporting_functional/reporting_without_security.config.ts: 100/100 tests passed.

see run history

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

Code review only! LGTM!

setIsConfigFlyOutOpen(false);
}, [setSelectedReport, setIsConfigFlyOutOpen]);

const setReportAndOpenDisableFlyout = useCallback(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const setReportAndOpenDisableFlyout = useCallback(
const setReportAndOpenDisableModal = useCallback(

[setSelectedReport, setIsDisableModalConfirmationOpen]
);

const unSetReportAndCloseDisableFlyout = useCallback(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const unSetReportAndCloseDisableFlyout = useCallback(() => {
const unSetReportAndCloseDisableModal = useCallback(() => {

share: SharePluginStart;
actions: ActionsPublicPluginSetup;
notifications: NotificationsStart;
license$: LicensingPluginStart['license$'];
Copy link
Member

Choose a reason for hiding this comment

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

For my education, what did this entry fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just moved from props to context

Copy link
Member

Choose a reason for hiding this comment

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

A nice. It makes sense. And because it is part of the requiredPlugins, it is getting passed in the context.

shareService={shareService}
{...routerProps}
/>
<ReportingTabs config={config} {...routerProps} />
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<ReportingTabs config={config} {...routerProps} />
<ReportingTabs config={config} />

});
it('Allows user to view report details', async () => {
await retry.try(async () => {
// await reportingFunctional.loginReportingUser();
Copy link
Member

Choose a reason for hiding this comment

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

A reminder to remove this.

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8482

[❌] x-pack/platform/test/reporting_functional/reporting_and_security.config.ts: 68/100 tests passed.
[✅] x-pack/platform/test/reporting_functional/reporting_without_security.config.ts: 100/100 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#8485

[✅] x-pack/platform/test/reporting_functional/reporting_and_security.config.ts: 100/100 tests passed.
[✅] x-pack/platform/test/reporting_functional/reporting_without_security.config.ts: 100/100 tests passed.

see run history

@js-jankisalvi js-jankisalvi enabled auto-merge (squash) July 1, 2025 08:04
@js-jankisalvi js-jankisalvi merged commit 3d7bcb0 into elastic:main Jul 1, 2025
10 checks passed
@js-jankisalvi js-jankisalvi deleted the schedule-reporting-tables-enhancements branch July 1, 2025 10:18
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/reporting-public 109 110 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
reporting 158.8KB 159.2KB +375.0B
Unknown metric groups

API count

id before after diff
@kbn/reporting-public 116 117 +1

ESLint disabled line counts

id before after diff
reporting 9 10 +1

Total ESLint disabled count

id before after diff
reporting 10 11 +1

History

cc @js-jankisalvi

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 1, 2025
…tic#225449)

## Summary

This PR adds functional tests, more unit tests and addresses review
comments from PR elastic#224849

Fixes elastic#225172 flaky test

**Flaky test runner:**
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485

### Checklist

- [x] [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

(cherry picked from commit 3d7bcb0)
@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 225449

Questions ?

Please refer to the Backport tool documentation

@js-jankisalvi
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

kibanamachine added a commit that referenced this pull request Jul 1, 2025
…#225449) (#225974)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[ResponseOps][Reporting] Schedule reporting tables enhancements
(#225449)](#225449)

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

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

<!--BACKPORT [{"author":{"name":"Janki
Salvi","email":"117571355+js-jankisalvi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-01T10:18:52Z","message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ResponseOps][Reporting]
Schedule reporting tables
enhancements","number":225449,"url":"https://github.com/elastic/kibana/pull/225449","mergeCommit":{"message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74"}},"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/225449","number":225449,"mergeCommit":{"message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74"}}]}]
BACKPORT-->

Co-authored-by: Janki Salvi <117571355+js-jankisalvi@users.noreply.github.com>
js-jankisalvi added a commit that referenced this pull request Jul 1, 2025
#225449) (#225997)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ResponseOps][Reporting] Schedule reporting tables enhancements
(#225449)](#225449)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Janki
Salvi","email":"117571355+js-jankisalvi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-01T10:18:52Z","message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ResponseOps][Reporting]
Schedule reporting tables
enhancements","number":225449,"url":"https://github.com/elastic/kibana/pull/225449","mergeCommit":{"message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74"}},"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/225974","number":225974,"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/225449","number":225449,"mergeCommit":{"message":"[ResponseOps][Reporting]
Schedule reporting tables enhancements (#225449)\n\n## Summary\n\nThis
PR adds functional tests, more unit tests and addresses review\ncomments
from PR https://github.com/elastic/kibana/pull/224849\n\nFixes
#225172 flaky test\n\n**Flaky
test
runner:**\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8485\n\n###
Checklist\n\n- [x] [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","sha":"3d7bcb04a7d5ec1f8eaf3fe96c196a88581f1c74"}}]}]
BACKPORT-->
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 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

Projects

None yet

4 participants