From 3c52d4c584e044efce93ca9339b0aa57bb0cf513 Mon Sep 17 00:00:00 2001 From: Mathis Marcotte <84033116+mathis-marcotte@users.noreply.github.com> Date: Fri, 5 Sep 2025 09:04:12 -0400 Subject: [PATCH 1/2] fix(jupyter backend): fixed function to get status from container state Signed-off-by: Mathis Marcotte <84033116+mathis-marcotte@users.noreply.github.com> --- .../crud-web-apps/jupyter/backend/apps/common/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/crud-web-apps/jupyter/backend/apps/common/status.py b/components/crud-web-apps/jupyter/backend/apps/common/status.py index c2a2a6fe1..ed4ea65c8 100644 --- a/components/crud-web-apps/jupyter/backend/apps/common/status.py +++ b/components/crud-web-apps/jupyter/backend/apps/common/status.py @@ -133,9 +133,9 @@ def get_status_from_container_state(notebook): # If the Notebook is initializing, the status will be waiting waiting_state = container_state["waiting"] - if ["reason"] == 'PodInitializing': + if waiting_state["reason"] == 'PodInitializing': status_phase = status.STATUS_PHASE.WAITING - status_message = waiting_state.get("reason", "Undetermined reason.") + status_message = waiting_state["reason"] return status_phase, status_message # In any other case, the status will be warning with a "reason: From 2973d8fe09c956f7716f6f11d95ef1acd8339e4c Mon Sep 17 00:00:00 2001 From: Mathis Marcotte <84033116+mathis-marcotte@users.noreply.github.com> Date: Fri, 5 Sep 2025 09:05:25 -0400 Subject: [PATCH 2/2] fix(jupyter backend): fixed status test for container state Signed-off-by: Mathis Marcotte <84033116+mathis-marcotte@users.noreply.github.com> --- .../crud-web-apps/jupyter/backend/apps/common/status_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/crud-web-apps/jupyter/backend/apps/common/status_test.py b/components/crud-web-apps/jupyter/backend/apps/common/status_test.py index 157409195..16a4c5d85 100644 --- a/components/crud-web-apps/jupyter/backend/apps/common/status_test.py +++ b/components/crud-web-apps/jupyter/backend/apps/common/status_test.py @@ -47,6 +47,6 @@ def test_no_message_container_state(self): self.assertEqual( status.get_status_from_container_state(container_state), - ("warning", - "PodInitializing: No available message for container state.") + ("waiting", + "PodInitializing") )