From 727536b5632c8f568efd0f5354d8ac1748e0bad4 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 25 Apr 2025 09:36:01 +0200 Subject: Invocation http server: indicate incomplete data With just-mr supporting a custom prefix to be shown at the beginning of a logged invocation, users might be pointed to the web server very early. Therefore, properly indicate if the invocation data is not yet complete. --- doc/invocations-http-server/server.py | 4 +++- doc/invocations-http-server/templates/invocation.html | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/invocations-http-server') diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index 68955841..b8ea24d5 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -189,12 +189,14 @@ class InvocationServer: "entries": entries}) def do_get_invocation(self, invocation): - params = {"invocation": invocation} + params = {"invocation": invocation, + "have_profile": False} try: with open(os.path.join( self.logsdir, invocation, self.profile)) as f: profile = json.load(f) + params["have_profile"] = True except: profile = {} diff --git a/doc/invocations-http-server/templates/invocation.html b/doc/invocations-http-server/templates/invocation.html index 7fec7e6e..65ec9127 100644 --- a/doc/invocations-http-server/templates/invocation.html +++ b/doc/invocations-http-server/templates/invocation.html @@ -98,6 +98,7 @@ Inocations {{invocation | e}} {% endif %} +{% if have_profile %}

Failed actions

{% if failed_actions %}