From e521a2b07bb02f6349c1d4ae8efec98ba6f0ce85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Seux?= Date: Mon, 20 Jul 2020 17:16:25 +0200 Subject: [PATCH] Add feature to diagnose stalled deployments (#34) * Correct readme for testing Change-Id: I5de7a4324dc424ab663e3ed8ac793c072c78e51f * Add feature to diagnose stalled deployments This will allow to give feedback to users when they don't get new tasks scheduled. Change-Id: I9f59cde8f5682983b4acc2dde8d3d4e0e8dcef1d --- README.md | 2 +- src/js/components/AlertDialogComponent.jsx | 8 +++- .../components/AppPageControlsComponent.jsx | 16 +++++++ src/js/config/config.js | 11 +++++ src/js/config/runtimeConfig.js | 11 +++++ src/js/mixins/AppActionsHandlerMixin.jsx | 47 +++++++++++++++++++ 6 files changed, 93 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdf5c502a..01f3f7b6c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,6 @@ For complete beginners (like me): You can access marathon UI bundled with marathon on http://localhost:8080. -To access **your local marathon ui**, use http://localhost:8081/dev. +To access **your local marathon ui**, use http://localhost:8081/dev/ (don't forget the trailing /) http://localhost:8080 expose a version of marathon ui that you have built outside of docker (you don't need to) diff --git a/src/js/components/AlertDialogComponent.jsx b/src/js/components/AlertDialogComponent.jsx index 4cc6a7707..96e17e44c 100644 --- a/src/js/components/AlertDialogComponent.jsx +++ b/src/js/components/AlertDialogComponent.jsx @@ -37,6 +37,12 @@ var AlertDialogComponent = React.createClass({ var data = props.data; var className = classNames("dialog", data.severity); + const addLineBreaks = string => string.split("\n").map((text, index) => ( +
+ {text}
+
+ )); + return (
- {data.message} + {addLineBreaks(data.message)}
+ ); + }, + handleClickOutside: function () { this.setState({ isDropdownActivated: false @@ -77,6 +92,7 @@ var AppPageControlsComponent = React.createClass({ Application Restart {this.getResetDelayButton()} + {this.getDeploymentDiagnosticButton()}