* feat: kobo sync improvements (push changes from booklore, and properly delete kobo data on reset)
* fix: issues with sync race conditions and improve readability
* fix: update function names to be clearer and more explicit
* fix: move partially_read to reading status mapping
* fix: make the bufferwindow more explicit in the unsynced progress check
* chore: add unit tests for additional sync logic
* fix: improve bi-directional logic to account for changes in progress and status
* chore: add additional tests to check the kobo sync logic and remove redundant tests
* refactor(exception): modernize exception handling and method signatures across services and controllers
- Remove unnecessary checked exceptions from method signatures
- Replace IOException with UncheckedIOException where appropriate
- Update test methods to match new signatures and remove throws declarations
- Improve converter classes with type safety, logging, and null handling
- Simplify collection assignment logic in metadata and book services
- Enhance author and category tokenization in HardcoverParser
- Add equals/hashCode to ShelfEntity for proper set behavior
- Add comprehensive unit tests for converter and service classes
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* refactor(entity): update equality and hashCode for JPA entities to use ID; add comprehensive tests and adjust test data to set IDs
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(bookdrop): improve error handling and cleanup for file move failures
- Ensure target file is deleted if processing or metadata refresh fails after move
- Only delete source file on successful processing
- Add tests to verify file cleanup and source preservation on failure scenarios
- Use lenient mocking for Files in tests to support error simulation
* fix(bookdrop): enhance file and cover cleanup logic, improve test coverage for import finalization
* test(bookdrop): improve finalize import test with LibraryPathRepository mock and enhanced stubbing
* feat(api): add @Builder.Default to entity fields for safer builder initialization and update mappers to ignore unmapped targets; add tests for builder defaults
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* test: set isDefaultPassword in test user builder for KoboReadingStateServiceTest
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* test: verify isDefaultPassword is false in BookLoreUserEntityTest
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* ci: Add OCI labels to Dockerfile
Added OCI labels for metadata and documentation.
* ci: Add APP_VERSION and APP_REVISION arguments
Added ARG directives for application version and revision to Dockerfile.
* ci: Add APP_REVISION build argument to Docker build
* fix(metadata-refresh): change replace mode to REPLACE_ALL when editing metadata
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(metadata-refresh): update metadata update method to support customizable replace mode
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* fix(metadata-refresh): refactor updateBookMetadata to use MetadataUpdateContext for improved clarity and flexibility
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(file-service): implement image downloading using RestTemplate with better headers and error handling
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
* feat(config): enhance RestTemplate with custom connection and read timeouts
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
---------
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>