[Reporting Management] Consolidate report job warnings and add warning for deprecated types#106184
Conversation
d6907ba to
80a3803
Compare
4474720 to
311174e
Compare
311174e to
45bff4f
Compare
|
The PR still needs additional functional tests and unit tests for the tsx files, but it is ready for review |
|
Pinging @elastic/kibana-app-services (Team:AppServices) |
|
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
There was a problem hiding this comment.
This const was only used in 1 place, so I took an opportunity to clean up this file by removing the const
There was a problem hiding this comment.
This line of code was accidentally added in an earlier PR #88303
There was a problem hiding this comment.
This file has taken a lot of code moved out of report_listing.tsx
There was a problem hiding this comment.
Making this interface shared since a lot of components that are downstream of ReportListing receive the same props as their parent.
1016195 to
a7bf40a
Compare
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
|
I will work with @elastic/kibana-docs in a separate issue to make sure they approve the modified text before the 7.15 release. It could be easier to get that review after this is merged. |
…g for deprecated types (elastic#106184) * [Reporting Management] Add warning for deprecated types * record -> job rename * restore previous report from archive * more fn testing * better testing * use consts * add table text test * nicer archived reports archive * fix test * add comment about completed * remove warning button * consistent status detail message and callout buttons * rename the deprecated report * fix status messages * update copy * fix duplicated created_at reports * fix 18n * back out text add * fix fn test snapshot * [Reporting] fix binding of methods that are called via event handlers * self review * spot-fix more untranslated content * Update x-pack/plugins/reporting/public/lib/job.tsx Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…g for deprecated types (#106184) (#107243) * [Reporting Management] Add warning for deprecated types * record -> job rename * restore previous report from archive * more fn testing * better testing * use consts * add table text test * nicer archived reports archive * fix test * add comment about completed * remove warning button * consistent status detail message and callout buttons * rename the deprecated report * fix status messages * update copy * fix duplicated created_at reports * fix 18n * back out text add * fix fn test snapshot * [Reporting] fix binding of methods that are called via event handlers * self review * spot-fix more untranslated content * Update x-pack/plugins/reporting/public/lib/job.tsx Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gchaps
left a comment
There was a problem hiding this comment.
Minor comments on capitalization and ending period.
| let smallMessage; | ||
| if (status === PENDING) { | ||
| smallMessage = i18n.translate('xpack.reporting.jobStatusDetail.pendingStatusReachedText', { | ||
| defaultMessage: 'Waiting for job to be processed.', |
| warnings.push( | ||
| i18n.translate('xpack.reporting.jobWarning.csvContainsFormulas', { | ||
| defaultMessage: | ||
| 'Your CSV contains characters which spreadsheet applications can interpret as formulas.', |
There was a problem hiding this comment.
Your CSV contains characters that spreadsheet applications might interpret as formulas.
| { | ||
| title: this.props.intl.formatMessage({ | ||
| id: 'xpack.reporting.listing.infoPanel.createdAtInfo', | ||
| defaultMessage: 'Created At', |
| { | ||
| title: this.props.intl.formatMessage({ | ||
| id: 'xpack.reporting.listing.infoPanel.tzInfo', | ||
| defaultMessage: 'Timezone', |
| title: 'Processed By', | ||
| title: this.props.intl.formatMessage({ | ||
| id: 'xpack.reporting.listing.infoPanel.startedAtInfo', | ||
| defaultMessage: 'Started At', |
|
|
||
| let message = this.props.intl.formatMessage({ | ||
| id: 'xpack.reporting.listing.table.reportInfoButtonTooltip', | ||
| defaultMessage: 'See report info', |
There was a problem hiding this comment.
Previously this text used the ending period:
- See report info and error message.
- See report info and warnings.
"See report info" is consistently used without the ending period.
| calloutTitle: 'Unable to fetch report info', | ||
| calloutTitle: this.props.intl.formatMessage({ | ||
| id: 'xpack.reporting.listing.table.reportInfoUnableToFetch', | ||
| defaultMessage: 'Unable to fetch report info', |
| "actions": "", | ||
| "createdAt": "2021-07-19 @ 10:29 PMtest_user", | ||
| "report": "Automated reportsearch", | ||
| "status": "Completed at 2021-07-19 @ 10:29 PMSee report info for warnings.", |
There was a problem hiding this comment.
Space between PM and "See report info..."
| if (this.max_size_reached) { | ||
| warnings.push( | ||
| i18n.translate('xpack.reporting.jobWarning.maxSizeReachedTooltip', { | ||
| defaultMessage: 'Max size reached, contains partial data.', |
There was a problem hiding this comment.
Can you rewrite as something like this:
Your search reached the max size and contains partial data.
| } | ||
|
|
||
| return i18n.translate('xpack.reporting.apiClient.unknownError', { | ||
| defaultMessage: `Report job {job} failed: Unknown error.`, |
There was a problem hiding this comment.
Report job {job} failed. Error unknown.
…g for deprecated types (elastic#106184) * [Reporting Management] Add warning for deprecated types * record -> job rename * restore previous report from archive * more fn testing * better testing * use consts * add table text test * nicer archived reports archive * fix test * add comment about completed * remove warning button * consistent status detail message and callout buttons * rename the deprecated report * fix status messages * update copy * fix duplicated created_at reports * fix 18n * back out text add * fix fn test snapshot * [Reporting] fix binding of methods that are called via event handlers * self review * spot-fix more untranslated content * Update x-pack/plugins/reporting/public/lib/job.tsx Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Michael Dokolin <dokmic@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Closes #106154
Closes #100363
Release note:
There are changes to the Reporting page under Stack Management. Any report job that has completed with warnings will now show all the warnings in a popover, same as the failure message for jobs that have failed. There is a new type of warning for "deprecated" export types. Deprecated export types of reports can only show in the list of jobs if you have an automated report that was created in an older version of Kibana, and the warning will tell you to redo the automation with a new POST URL in order for the report to keep working in future versions.
List of changes:
EuiPopoverelements that show all warnings (or the failure message) in one placereporting/archived_reportsES test archivecancelledstatusRemoved API endpoint:
/api/reporting/output/<jobId>(private API) which was inefficiently being used to fetch the error message of a job. The same can be achieved using/api/reporting/info/<jobId>since the returned data type includes warnings, which for a failed job, is the failure message.How to test with the updated archived reports
You can start Kibana in normal dev mode, and load the archive of various kinds of report jobs, which is being used in functional testing:
Sign in as
test_userto see the archived reports show up in Stack Management > Reporting.Screenshots
List of reports from the


reporting/archived_reportsarchive:Before/After
List of reports from the


reporting/archived_reportsarchive showing pending and processing reports:Before/After
Note: The UI changes to the table are to give more focus to the errors and warnings in a consistent way. There is a separate issue for redesigning the table to manage reports, which is still unstarted: #39620
Checklist
Delete any items that are not applicable to this PR.