Implement Pruning of Filled Steps from Roadmap Unfilled
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 22s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 22s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
- Introduced `_prune_filled_from_roadmap_unfilled` function to remove steps with filled exercises from the unfilled roadmap, preventing outdated references. - Updated `_run_roadmap_rematch_loop` to incorporate the new pruning logic, ensuring only relevant unfilled steps are retained during rematching. - Added tests for the pruning function to validate its behavior with various step scenarios. - Bumped version to 0.8.232 to reflect the new functionality and improvements.
This commit is contained in:
1 parent
63c99b0ec5
commit
a4e73c830f
3 files changed
+42
-2
No files matched your search
@@ -223,3 +223,15 @@ def test_rematch_unfilled_leaves_placeholder_step():
|
||||
assert slot1["roadmap_match_source"] == "unfilled"
|
||||
assert log[0]["action"] == "rematch_unfilled"
|
||||
assert len(unfilled) == 1
|
||||
|
||||
|
||||
def test_prune_filled_from_roadmap_unfilled():
|
||||
from planning_exercise_path_builder import _prune_filled_from_roadmap_unfilled
|
||||
|
||||
spec = StageSpecArtifact(major_step_index=5, learning_goal="Zielgenauigkeit")
|
||||
steps = [{"exercise_id": 99, "roadmap_major_step_index": 5}]
|
||||
kept = _prune_filled_from_roadmap_unfilled(steps, [(4, spec)])
|
||||
assert kept == []
|
||||
unfilled_steps = [{"exercise_id": None, "roadmap_major_step_index": 5}]
|
||||
kept2 = _prune_filled_from_roadmap_unfilled(unfilled_steps, [(4, spec)])
|
||||
assert len(kept2) == 1
|
||||
Reference in new issue
Block a user