Repository navigation
fix(tickets): search works together with the activity filter CU-17tkuw6c8t6 - #3344
Merged
hryhorii-chuhuievets merged 5 commits intoDec 4, 2026
Merged
Flamingo / flamingo Code Review
completed
Dec 4, 2026 in 0s
flamingo Code Review: neutral
1 finding: 🔴 0 action required · 🟠 0 recommended · 🔵 1 informational
Advisory: findings do not block the merge.
- 🔵 Informational · info · Minor ·
OFJAVA-002·openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/CustomTicketRepositoryImpl.java:270: activityCriteria return nests three method calls as arguments
Annotations
flamingo / flamingo Code Review
activityCriteria return nests three method calls as arguments
activityCriteria return nests three method calls as arguments
OFJAVA-002 forbids calling a method inside another call's argument list; this changed line nests `clauses.toArray(new Criteria[0])` inside `orOperator(...)` and the whole `new Criteria().orOperator(...)` inside `Optional.of(...)`. The rule is CI-enforced by PMD NoMethodCallAsArgument and the only exemptions are logger args, annotation values and enum constants. Extract the array and the criteria into named locals first.
**What it risks:** The PMD rule is priority 1 and fails the build, blocking the merge; breakpoints and stack traces also lose the intermediate values.
**How to fix:** Assign the array and the combined criteria to named locals, then wrap in Optional.of.
Loading