From 1f0b11550a96cfc515eef21a8cac8275e59d5e7d Mon Sep 17 00:00:00 2001 From: Matthias Saimpert Date: Tue, 23 Sep 2025 22:25:01 +0200 Subject: [PATCH 1/4] expand no stage incrementation to other stages --- viewer/pages/qc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewer/pages/qc.py b/viewer/pages/qc.py index 684e526eb..345d6d671 100644 --- a/viewer/pages/qc.py +++ b/viewer/pages/qc.py @@ -2693,8 +2693,8 @@ def select_test(): stageInfo = userdb.QC.stages.find_one({"code": componentType}) - # Check if current stage is MODULE/UNHAPPY - if so, don't increment stage - if current_stage == "MODULE/UNHAPPY": + # Check if current stage is MODULE/UNHAPPY,GRAVEYAR or NOTCONSIDEREDINYIELDS - if so, don't increment stage + if current_stage == "MODULE/UNHAPPY" or current_stage == "MODULE/GRAVEYARD" or current_stage == "MODULE/NOTCONSIDEREDINYIELDS": next_stage = current_stage else: next_stage_index = min( -- GitLab From 0891abcfc333fca450d18a69ef2d4cf6e903066d Mon Sep 17 00:00:00 2001 From: Matthias Saimpert Date: Tue, 23 Sep 2025 22:28:06 +0200 Subject: [PATCH 2/4] fix precommit --- viewer/pages/qc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/viewer/pages/qc.py b/viewer/pages/qc.py index 345d6d671..d80584c38 100644 --- a/viewer/pages/qc.py +++ b/viewer/pages/qc.py @@ -2694,7 +2694,11 @@ def select_test(): stageInfo = userdb.QC.stages.find_one({"code": componentType}) # Check if current stage is MODULE/UNHAPPY,GRAVEYAR or NOTCONSIDEREDINYIELDS - if so, don't increment stage - if current_stage == "MODULE/UNHAPPY" or current_stage == "MODULE/GRAVEYARD" or current_stage == "MODULE/NOTCONSIDEREDINYIELDS": + if ( + current_stage == "MODULE/UNHAPPY" + or current_stage == "MODULE/GRAVEYARD" + or current_stage == "MODULE/NOTCONSIDEREDINYIELDS" + ): next_stage = current_stage else: next_stage_index = min( -- GitLab From f5244f3cdd8b4a4d36036989cde8effe31095990 Mon Sep 17 00:00:00 2001 From: Giordon Holtsberg Stark Date: Tue, 23 Sep 2025 21:06:47 +0000 Subject: [PATCH 3/4] Apply 1 suggestion(s) to 1 file(s) --- viewer/pages/qc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/viewer/pages/qc.py b/viewer/pages/qc.py index d80584c38..be88297c4 100644 --- a/viewer/pages/qc.py +++ b/viewer/pages/qc.py @@ -2694,11 +2694,11 @@ def select_test(): stageInfo = userdb.QC.stages.find_one({"code": componentType}) # Check if current stage is MODULE/UNHAPPY,GRAVEYAR or NOTCONSIDEREDINYIELDS - if so, don't increment stage - if ( - current_stage == "MODULE/UNHAPPY" - or current_stage == "MODULE/GRAVEYARD" - or current_stage == "MODULE/NOTCONSIDEREDINYIELDS" - ): + if current_stage in [ + "MODULE/UNHAPPY", + "MODULE/GRAVEYARD", + "MODULE/NOTCONSIDEREDINYIELDS" + ]: next_stage = current_stage else: next_stage_index = min( -- GitLab From c98452033e2afc2e59d8f2f1ac6cea6faa604a53 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Tue, 23 Sep 2025 14:07:31 -0700 Subject: [PATCH 4/4] pre-commit --- viewer/pages/qc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/pages/qc.py b/viewer/pages/qc.py index be88297c4..368eb8dae 100644 --- a/viewer/pages/qc.py +++ b/viewer/pages/qc.py @@ -2697,7 +2697,7 @@ def select_test(): if current_stage in [ "MODULE/UNHAPPY", "MODULE/GRAVEYARD", - "MODULE/NOTCONSIDEREDINYIELDS" + "MODULE/NOTCONSIDEREDINYIELDS", ]: next_stage = current_stage else: -- GitLab