Special treatment for SCHEDULED checks Set a message on the converted check such that the user understands that this check is not actually running, but just scheduled. Bug: Issue 14993 Change-Id: I4225f592eb6b7cbec25d1819b8cd9aabf607792a
diff --git a/gr-checks/plugin.js b/gr-checks/plugin.js index 160c929..1d545f6 100644 --- a/gr-checks/plugin.js +++ b/gr-checks/plugin.js
@@ -74,7 +74,13 @@ if (check.started) run.startedTimestamp = new Date(check.started); if (check.finished) run.finishedTimestamp = new Date(check.finished); if (status === 'RUNNING') { - run.statusDescription = check.message; + if (check.message) { + run.statusDescription = check.message; + } else { + if (check.state === 'SCHEDULED') { + run.statusDescription = 'scheduled only, not yet running'; + } + } if (check.url) { run.statusLink = check.url; }