Kavita/API/DTOs
Joseph Milazzo bbe8f800f6
.NET 6 Coding Patterns + Unit Tests (#823)
* Refactored all files to have Interfaces within the same file. Started moving over to file-scoped namespaces.

* Refactored common methods for getting underlying file's cover, pages, and extracting into 1 interface.

* More refactoring around removing dependence on explicit filetype testing for getting information.

* Code is buildable, tests are broken. Huge refactor (not completed) which makes most of DirectoryService testable with a mock filesystem (and thus the services that utilize it).

* Finished porting DirectoryService to use mocked filesystem implementation.

* Added a null check

* Added a null check

* Finished all unit tests for DirectoryService.

* Some misc cleanup on the code

* Fixed up some bugs from refactoring scan loop.

* Implemented CleanupService testing and refactored more of DirectoryService to be non-static.

Fixed a bug where cover file cleanup wasn't properly finding files due to a regex bug.

* Fixed an issue in CleanupBackup() where we weren't properly selecting database files older than 30 days. Finished CleanupService Tests.

* Refactored Flatten and RemoveNonImages to directory service to allow CacheService to be testable.

* Finally have CacheService tested. Rewrote GetCachedPagePath() to be much more straightforward & performant.

* Updated DefaultParserTests.cs to contain all existing tests and follow new test layout format.

* All tests fixed up
2021-12-05 08:58:53 -08:00
..
Account Disable Authentication & Login Page Rework (#619) 2021-10-02 11:23:58 -05:00
CollectionTags Bulk Add to Collection (#674) 2021-10-14 17:23:21 -07:00
Downloads Continuous Reading for Webtoons & I Just Couldn't Stop Coding (#574) 2021-09-11 11:47:12 -07:00
Filtering OPDS Support (#526) 2021-08-27 10:19:25 -07:00
Metadata Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
OPDS ComicInfo Refactor (#636) 2021-10-04 16:10:48 -07:00
Reader .NET 6 Coding Patterns + Unit Tests (#823) 2021-12-05 08:58:53 -08:00
ReadingLists Bulk Operations (#596) 2021-09-24 17:27:47 -07:00
Settings Moved BaseUrl from appsettings.json to Database and fixed an issue in UI for setting base url based on a hack, rather than asking backend for it. (#644) 2021-10-06 11:03:14 -07:00
Stats Stats Rework (#765) 2021-11-16 13:11:17 -08:00
Update Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
Uploads Custom Cover Images (#499) 2021-08-15 10:36:47 -07:00
BookChapterItem.cs EPUB Support (#178) 2021-04-28 16:16:22 -05:00
ChapterDto.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
CreateLibraryDto.cs Cleanup of lazy loading code. Made some DTOs use init rather than set to keep it clean. 2021-03-12 13:20:08 -06:00
DeleteSeriesDto.cs Bulk Deletion (#697) 2021-10-20 10:49:58 -07:00
LibraryDto.cs Polishing and Bugfixes (#613) 2021-10-01 08:13:55 -07:00
MangaFileDto.cs A lot of random changes to try and speed up SharpCompress. 2021-03-23 12:22:50 -05:00
MemberDto.cs Cleanup of lazy loading code. Made some DTOs use init rather than set to keep it clean. 2021-03-12 13:20:08 -06:00
PersonDto.cs Collection Support (#234) 2021-05-30 17:24:23 -05:00
ProgressDto.cs Bookmarking Pages within the Reader (#469) 2021-08-10 18:18:07 -05:00
RefreshSeriesDto.cs Feature/feedback (#185) 2021-04-30 17:23:31 -05:00
RegisterDto.cs Disable Authentication & Login Page Rework (#619) 2021-10-02 11:23:58 -05:00
SearchResultDto.cs Feature/performance pdf (#426) 2021-07-24 16:17:13 -05:00
SeriesByIdsDto.cs Bugfix/release cleanup (#512) 2021-08-21 10:03:47 -07:00
SeriesDto.cs Custom Cover Images (#499) 2021-08-15 10:36:47 -07:00
SeriesFilterDto.cs Bugfixes/misc (#196) 2021-05-02 19:46:34 -05:00
SeriesMetadataDto.cs Local Metadata Integration Part 1 (#817) 2021-12-02 09:02:34 -08:00
UpdateLibraryDto.cs Implemented the ability to update a library including folders. 2021-01-04 13:06:01 -06:00
UpdateLibraryForUserDto.cs Implemented the ability to update a library including folders. 2021-01-04 13:06:01 -06:00
UpdateRBSDto.cs Download Support (#298) 2021-06-10 07:47:35 -05:00
UpdateSeriesDto.cs Custom Cover Images (#499) 2021-08-15 10:36:47 -07:00
UpdateSeriesMetadataDto.cs Bulk Add to Collection (#674) 2021-10-14 17:23:21 -07:00
UpdateSeriesRatingDto.cs Implemented ability to leave a rating (up to 5 stars) and a text review (not UI supported until v0.2). 2021-01-19 17:06:26 -06:00
UserDto.cs OPDS Support (#526) 2021-08-27 10:19:25 -07:00
UserPreferencesDto.cs Manga Redesign (#321) 2021-06-24 19:31:42 -05:00
VolumeDto.cs Continuous Reading for Webtoons & I Just Couldn't Stop Coding (#574) 2021-09-11 11:47:12 -07:00