Refactor Progression Path Evaluation and Comparison Logic
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m22s
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m22s
- Updated `suggest_progression_path` to utilize `evaluate_steps` for improved validation, ensuring at least one evaluation step is provided. - Modified frontend components to enhance user experience in the comparison process, including clearer messaging and improved dialog handling. - Adjusted `ProgressionGraphEditor` to streamline the comparison flow and integrate new evaluation parameters. - Enhanced `ProgressionOptimizeCompareModal` to reflect changes in comparison logic, allowing for better user interaction with proposed path suggestions. - Bumped version to reflect the new features and improvements.
This commit is contained in:
1 parent
69ce3f6975
commit
3f130aa8ad
5 files changed
+58
-144
No files matched your search
@@ -2448,18 +2448,16 @@ def suggest_progression_path(
|
||||
raise HTTPException(status_code=403, detail="Nur Trainer dürfen Pfad-Vorschläge abrufen")
|
||||
|
||||
if body.compare_with_assignments:
|
||||
assignments = _slot_assignments_by_major_index(body.slot_assignments)
|
||||
if len(assignments) < 1:
|
||||
eval_source = list(body.evaluate_steps or body.slot_assignments or [])
|
||||
if len(eval_source) < 1:
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
detail="compare_with_assignments erfordert mindestens ein slot_assignment",
|
||||
detail="compare_with_assignments erfordert evaluate_steps",
|
||||
)
|
||||
baseline_body = body.model_copy(
|
||||
update={
|
||||
"evaluate_only": True,
|
||||
"evaluate_steps": list(
|
||||
body.evaluate_steps or body.slot_assignments or []
|
||||
),
|
||||
"evaluate_steps": eval_source,
|
||||
"compare_with_assignments": False,
|
||||
"preserve_slot_assignments": False,
|
||||
# Gleiche QS-Pipeline wie „Graph bewerten“ (kein Match/Rematch-Schönung)
|
||||
@@ -2472,7 +2470,7 @@ def suggest_progression_path(
|
||||
proposed_body = body.model_copy(
|
||||
update={
|
||||
"compare_with_assignments": False,
|
||||
"preserve_slot_assignments": True,
|
||||
"preserve_slot_assignments": False,
|
||||
"evaluate_only": False,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user