[ResponseOps][Reporting] Enable scheduled reports#244202
[ResponseOps][Reporting] Enable scheduled reports#244202js-jankisalvi merged 9 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
| type: 'icon', | ||
| icon: 'check', | ||
| onClick: (item) => { | ||
| onEnable(item); |
There was a problem hiding this comment.
I noticed that to disable, we have a confirmation modal, setReportAndOpenDisableModal.
Is it on purpose that we don't show a modal for the enable action?
There was a problem hiding this comment.
I assumed it as I didn't see it in the issue. Maybe @joana-cps could help
There was a problem hiding this comment.
Had a offline chat with @joana-cps - since it's not a destructive action we don't need the modal.
| }, [capabilities]); | ||
|
|
||
| const canEditSchedule = useCallback( | ||
| const canManageSchedule = useCallback( |
There was a problem hiding this comment.
Note: User can edit/enable/disable/delete schedules from the table if user has manage reporting privilege or user has created that schedule.
CC: @tiamliu
adcoelho
left a comment
There was a problem hiding this comment.
Tested and code LGTM, but could you please add a x-pack/platform/test/reporting_api_integration/reporting_and_security/enable_scheduled_reports.ts?
|
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
|
## Summary Fixes elastic/kibana-team#2082 This PR - creates `bulkEnable` API to enable scheduled reports ``` method: PATCH url: https://localhost:5601/internal/reporting/scheduled/bulk_enable body: { "ids": ["8982a0cf-7140-4880-807c-b3d3cb8a1981"] } ``` - adds `Enable schedule` option in Reporting > Schedules table <img width="1382" height="685" alt="image" src="https://github.com/user-attachments/assets/2ae2301e-61a0-4fbd-973b-93af0981f9f2" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Release Notes Allow users to enable scheduled reports --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary Fixes elastic/kibana-team#2082 This PR - creates `bulkEnable` API to enable scheduled reports ``` method: PATCH url: https://localhost:5601/internal/reporting/scheduled/bulk_enable body: { "ids": ["8982a0cf-7140-4880-807c-b3d3cb8a1981"] } ``` - adds `Enable schedule` option in Reporting > Schedules table <img width="1382" height="685" alt="image" src="https://github.com/user-attachments/assets/2ae2301e-61a0-4fbd-973b-93af0981f9f2" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Release Notes Allow users to enable scheduled reports --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Fixes https://github.com/elastic/kibana-team/issues/2082
This PR
bulkEnableAPI to enable scheduled reportsEnable scheduleoption in Reporting > Schedules tableChecklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelinesbackport:*labels.Release Notes
Allow users to enable scheduled reports