refactor(adapter): extract logic from search adapter#551
Conversation
- Move business logic out of adapter - Improve testability and separation of concerns
Review Summary by QodoRefactor: Extract domain interfaces and centralize utility logic
WalkthroughsDescription• Extract domain interfaces for reusable media properties across models • Move image and date handling logic to utility extensions • Refactor search adapter to use centralized utility functions • Add comprehensive tests for new utility functions and helpers Diagramflowchart LR
A["Domain Interfaces<br/>Dateable, Imageble, Titleable<br/>ProfileImageable"] -->|"implemented by"| B["MediaItem<br/>MultiSearchItem"]
B -->|"used by"| C["DetailDataUtils<br/>Extensions"]
B -->|"used by"| D["MediaHelper<br/>Extensions"]
B -->|"used by"| E["SearchHelper<br/>Extensions"]
C -->|"simplifies"| F["DetailUIManager"]
D -->|"simplifies"| F
E -->|"simplifies"| G["SearchAdapter"]
File Changes1. core/domain/src/main/kotlin/com/waffiq/bazz_movies/core/domain/Dateable.kt
|
Code Review by Qodo
1.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene Coverage |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Kotlin | Apr 5, 2026 12:40p.m. | Review ↗ | |
| Test coverage | Apr 5, 2026 1:05p.m. | Review ↗ |
Code Coverage Summary
| Language | Line Coverage (New Code) | Line Coverage (Overall) |
|---|---|---|
| Aggregate | 100% |
98.8% |
| Kotlin | 100% |
98.8% |
➟ Additional coverage metrics may have been reported. See full coverage report ↗
Not up to standards ⛔🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | ✅ 14 (≤ 20 complexity) |
| Duplication |
🟢 Coverage 100.00% diff coverage · -0.01% coverage variation
Metric Results Coverage variation ✅ -0.01% coverage variation (-1.00%) Diff coverage ✅ 100.00% diff coverage (80.00%) Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (e9d6bc2) 6277 6227 99.20% Head commit (2eb774a) 6290 (+13) 6239 (+12) 99.19% (-0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#551) 100 100 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
TIP This summary will be updated as you push new changes. Give us feedback
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
- Add missing test case
|



Changes Made