From 0a5c0a490c7f8352c77ecdbcc0f5ff3a992472ec Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Wed, 10 Dec 2025 18:50:35 -0500 Subject: [PATCH] [ResponseOps][Reporting] stop toasting "Could not check Reporting job status!" (#245184) resolves https://github.com/elastic/kibana/issues/216181 Removes the toast that popped up, every few seconds, informing us that "Could not check Reporting job status!", when Kibana becomes unavailable. Not useful, so removed. (cherry picked from commit b53f22d6c324a7e2362197731d17562d01dd5821) # Conflicts: # x-pack/platform/plugins/private/translations/translations/de-DE.json --- .../private/reporting/public/lib/stream_handler.ts | 13 ++----------- .../private/translations/translations/fr-FR.json | 1 - .../private/translations/translations/ja-JP.json | 1 - .../private/translations/translations/zh-CN.json | 1 - 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts b/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts index 78513de46c801..f64c5fbf99af0 100644 --- a/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts +++ b/x-pack/platform/plugins/private/reporting/public/lib/stream_handler.ts @@ -168,17 +168,8 @@ export class ReportingNotifierStreamHandler { return { completed: newCompleted, failed: newFailed }; }), catchError((err) => { - // show connection refused toast - this.core.notifications.toasts.addDanger( - getGeneralErrorToast( - i18n.translate('xpack.reporting.publicNotifier.httpErrorMessage', { - defaultMessage: 'Could not check Reporting job status!', - }), - err, - this.core - ) - ); - window.console.error(err); + // Seems to only occur when the connection to Kibana fails. + // We used to toast here, but ... it was very noisy. return Rx.of({}); }) ); diff --git a/x-pack/platform/plugins/private/translations/translations/fr-FR.json b/x-pack/platform/plugins/private/translations/translations/fr-FR.json index 1da0bf7994a39..4737990f90110 100644 --- a/x-pack/platform/plugins/private/translations/translations/fr-FR.json +++ b/x-pack/platform/plugins/private/translations/translations/fr-FR.json @@ -33291,7 +33291,6 @@ "xpack.reporting.publicNotifier.error.couldNotCreateReportTitle": "Impossible de créer un rapport {reportType} pour \"{reportObjectTitle}\".", "xpack.reporting.publicNotifier.error.reportingSectionUrlLinkLabel": "Gestion de la Suite > Kibana > Reporting", "xpack.reporting.publicNotifier.error.tryRefresh": "Essayez d'actualiser la page.", - "xpack.reporting.publicNotifier.httpErrorMessage": "Impossible de vérifier le statut de la tâche de reporting !", "xpack.reporting.publicNotifier.maxSizeReached.partialReportDescription": "Le rapport a atteint la taille maximale et contient des données partielles.", "xpack.reporting.publicNotifier.maxSizeReached.partialReportTitle": "Création partielle du rapport {reportType} pour \"{reportObjectTitle}\"", "xpack.reporting.publicNotifier.pollingErrorMessage": "Erreur de notification de reporting !", diff --git a/x-pack/platform/plugins/private/translations/translations/ja-JP.json b/x-pack/platform/plugins/private/translations/translations/ja-JP.json index af220f6eca31b..8541ee9c0e185 100644 --- a/x-pack/platform/plugins/private/translations/translations/ja-JP.json +++ b/x-pack/platform/plugins/private/translations/translations/ja-JP.json @@ -33328,7 +33328,6 @@ "xpack.reporting.publicNotifier.error.couldNotCreateReportTitle": "''{reportObjectTitle}''の{reportType}レポートを作成できませんでした。", "xpack.reporting.publicNotifier.error.reportingSectionUrlLinkLabel": "スタック管理 > Kibana > レポート", "xpack.reporting.publicNotifier.error.tryRefresh": "ページを更新してみてください。", - "xpack.reporting.publicNotifier.httpErrorMessage": "レポートジョブステータスを確認できませんでした", "xpack.reporting.publicNotifier.maxSizeReached.partialReportDescription": "レポートが最大サイズに達し、部分データが含まれています。", "xpack.reporting.publicNotifier.maxSizeReached.partialReportTitle": "''{reportObjectTitle}''の部分{reportType}レポートが作成されました", "xpack.reporting.publicNotifier.pollingErrorMessage": "レポート通知エラー", diff --git a/x-pack/platform/plugins/private/translations/translations/zh-CN.json b/x-pack/platform/plugins/private/translations/translations/zh-CN.json index 4b9570cd8b82c..4ced517f9a3b4 100644 --- a/x-pack/platform/plugins/private/translations/translations/zh-CN.json +++ b/x-pack/platform/plugins/private/translations/translations/zh-CN.json @@ -33313,7 +33313,6 @@ "xpack.reporting.publicNotifier.error.couldNotCreateReportTitle": "无法为“{reportObjectTitle}”创建 {reportType} 报告。", "xpack.reporting.publicNotifier.error.reportingSectionUrlLinkLabel": "堆栈管理 > Kibana > Reporting", "xpack.reporting.publicNotifier.error.tryRefresh": "请尝试刷新页面。", - "xpack.reporting.publicNotifier.httpErrorMessage": "无法检查 Reporting 作业状态!", "xpack.reporting.publicNotifier.maxSizeReached.partialReportDescription": "报告已达到最大大小,仅包含部分数据。", "xpack.reporting.publicNotifier.maxSizeReached.partialReportTitle": "已为“{reportObjectTitle}”创建部分 {reportType}", "xpack.reporting.publicNotifier.pollingErrorMessage": "报告通知器错误!",