Repository navigation
fix(tickets): search works together with the activity filter CU-17tkuw6c8t6 - #3344
Conversation
…w6c8t6 (failing) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
… (failing) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
…w6c8t6 The activity filter and the text search each added a keyless $or criterion to the same Query, which Spring Data rejects. When both are present they are now joined under one $and; a single clause keeps its top-level $or shape. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
…U-17tkuw6c8t6 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
…th activity CU-17tkuw6c8t6 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
🦩 flamingo Code Review✅ Tests and checks passed on this commit (3 lanes). 1 finding: 🔴 0 action required · 🟠 0 recommended · 🔵 1 informational Advisory: findings do not block the merge. Rules cited:
🔵 Informational (1)
✅ What this change does well
Inline comments: 1 new 1 possible problem checked and ruled out
🧪 Tests and mutationTests per lane
Checks
All 6 mutants on the added lines of CustomTicketRepositoryImpl were killed; the 14 surviving and 22 uncovered mutants of the class are on lines this change did not touch. 405 skipped tests in openframe-data-mongo-sync are the gated integration tests, which do not run in a plain mvn test. Mutation testingThis build has no PIT plugin, so each module is mutated from the command line with pit-adhoc.sh, changing nothing in the repository.
New code, its covering tests and the result
The covering tests by name (4 methods)
🤖 Prompt for AI agents: fix every findingNext: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both. Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-04 10:35 UTC · reviewed from Hryhorii Chuhuievets's machine |
🦩 flamingo Code Review / security✅ No findings on the current head. Advisory: findings do not block the merge.
Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-04 12:30 UTC · reviewed from Hryhorii Chuhuievets's machine |
Problem
The ticket list query failed with an internal error whenever a text search was combined with the activity filter (ACTIVE / STALE / AWAITING_EXTERNAL). Each of them worked alone.
Cause
CustomTicketRepositoryImpl.buildTicketQueryadded the activity filter and the text search as two separate keyless$orcriteria on the sameQuery. Spring Data allows one criterion per key, the keyless one included, so the secondaddCriteriathrewInvalidMongoDbApiUsageException.Fix
Both clauses are built first and added once: joined under a single
$andwhen both are present, added as before when only one is. Search-only and activity-only queries keep their previous shape. Cursor paging already appends to an existing$and, so later pages work as well.No public signature changes; consumers only need the lib version bump.
Tests
CustomTicketRepositoryFilterTest#reproducesBug_CU17tkuw6c8t6_...: red before the fix with the exception above.CustomTicketRepositoryActivitySearchTest(15 cases): every activity value with search, per-status thresholds, numeric search, other filters with id restriction and owner scope, blank search, empty activity, cursor paging.mvn teston the repo: 13,642 run, 0 failures, 0 errors, 739 skipped (gated integration tests).Task: https://app.clickup.com/t/9013925967/17tkuw6c8t6
Change-Set: fix-ticket-search-with-activity-filter
🤖 Generated with Claude Code
https://claude.ai/code/session_018CWVXm1tMGFBMj9pkncv55
Change set
flamingo-stack/openframe-oss-lib#3344: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.