Skip to content

fix(tickets): search works together with the activity filter CU-17tkuw6c8t6 - #3344

Merged
hryhorii-chuhuievets merged 5 commits into
mainfrom
fix/ticket-search-with-activity-filter
Dec 4, 2026
Merged

hryhorii-chuhuievets merged 5 commits into
mainfrom
fix/ticket-search-with-activity-filter

refactor(tickets): named locals and stricter assertions for search wi…

ed20f2e
Select commit
Loading
Failed to load commit list.
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

Check notice on line 270 in openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/CustomTicketRepositoryImpl.java

See this annotation in the file changed.

@flamingo 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.