From 251f5cb286e534e690b9296735c2bdfe95a0c42f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 1 Dec 2026 02:57:34 -0500 Subject: [PATCH] Revert the deliberate break: the kind filter and the planning route are back The break (a16a0ef) went red exactly where it should, in CI run 11227: - test_routes_planning::test_starting_a_plan_is_routed_on_the_app; - test_integration_task_kind_list [issue] and [work]; the all-kinds case stayed green, as it must. Nothing else failed (unit 1 failed / 3771 passed, database 2 failed / 478 passed). Co-Authored-By: Claude Opus 5.5 --- src/grimoire/routes/tasks.py | 2 +- src/grimoire/services/notes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grimoire/routes/tasks.py b/src/grimoire/routes/tasks.py index 50f05396..df33b268 100644 --- a/src/grimoire/routes/tasks.py +++ b/src/grimoire/routes/tasks.py @@ -156,7 +156,7 @@ async def create_task_route(): return jsonify(out), 201 -# DELIBERATE BREAK (#8249), reverted next commit +@tasks_bp.route("/planning", methods=["POST"]) @login_required async def start_planning_route(): uid = get_current_user_id() diff --git a/src/grimoire/services/notes.py b/src/grimoire/services/notes.py index f3f4d0b4..cffdc08a 100644 --- a/src/grimoire/services/notes.py +++ b/src/grimoire/services/notes.py @@ -499,7 +499,7 @@ async def list_notes( query = query.where(Note.parent_id == parent_id) count_query = count_query.where(Note.parent_id == parent_id) - if task_kind is not None and False: # DELIBERATE BREAK (#8249), reverted next commit + if task_kind is not None: query = query.where(Note.task_kind == task_kind) count_query = count_query.where(Note.task_kind == task_kind)