fix(komga): add missing library DTO fields (scanDirectoryExclusions, … - #2377
fix(komga): add missing library DTO fields (scanDirectoryExclusions, …#2377RawatDevanshu wants to merge 1 commit into
Conversation
…oneshotsDirectory)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
📜 Recent review details🧰 Additional context used📓 Path-based instructions (2)**/*⚙️ CodeRabbit configuration file
Files:
**/dto/**/*.java⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (10)📚 Learning: 2026-04-10T08:15:37.436ZApplied to files:
📚 Learning: 2026-04-14T12:43:08.698ZApplied to files:
📚 Learning: 2026-05-07T21:21:55.233ZApplied to files:
📚 Learning: 2026-05-08T06:19:20.621ZApplied to files:
📚 Learning: 2026-05-02T18:47:09.753ZApplied to files:
📚 Learning: 2026-05-04T20:31:11.075ZApplied to files:
📚 Learning: 2026-05-13T12:34:49.607ZApplied to files:
📚 Learning: 2026-05-17T13:38:16.462ZApplied to files:
📚 Learning: 2026-05-23T23:01:25.769ZApplied to files:
📚 Learning: 2026-06-12T01:10:31.416ZApplied to files:
🔇 Additional comments (1)
Walkthrough
ChangesKomga library DTO
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The library response now includes the two fields required by Komelia, preventing the reported deserialization failure while preserving existing behavior. No actionable merge-blocking risk remains after normal checks and review. Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes the library endpoint response to include the two fields required by Komelia's
KomgaLibrarydata class:scanDirectoryExclusions(empty list) andoneshotsDirectory(nullable). Previously these fields were missing fromKomgaLibraryDto, causing aJsonConvertExceptionin Komelia when deserializing the library list.Linked Issue
Refs #164 — implements the library DTO schema fix (missing
scanDirectoryExclusionsandoneshotsDirectoryfields).Changes
scanDirectoryExclusions(default empty list) andoneshotsDirectory(nullable, defaults to null) toKomgaLibraryDto.oneshotsDirectorywith@JsonInclude(ALWAYS)to ensure the null value is serialized (class usesNON_NULL).Manual Testing Steps
Tested against a live instance on localhost:6060:
curl -u <OPDSUsername>:<OPDSPassword> "http://localhost:6060/komga/api/v1/libraries"— response includes:JsonConvertExceptionon library load.just api check.Screenshots (Optional)
Additional Context (Optional)
AI Disclosure
Claude — helped identify the missing fields from the Komga client Kotlin model and design the DTO fix. I reviewed and verified the code, tests, and manual curl evidence myself.
Checklist
just api check.Summary by CodeRabbit