Commit Graph
49 Commits
Author SHA1 Message Date
BinaryAlley a75447062f Implements tests for commit 067e9a21d0 2026-10-28 23:14:47 +02:00
BinaryAlley 8b8d077c6a Implements tests for commit 1aa427b1e2 2026-10-28 13:39:12 +02:00
BinaryAlley 54b468855a Implements tests for commit f777af07cf 2026-10-27 21:15:22 +02:00
BinaryAlley 5c436fc13d Implements tests for commit b2d274f609 2026-10-27 17:32:37 +02:00
BinaryAlley b2d274f609 Adds per-library consumption settings to the domain, storage, and API 2026-10-24 10:20:00 +03:00
BinaryAlley f29f89f31f Captures the audio container of the music tracks
Adds a Container to the audio metadata, captured with TagLibSharp from the concrete type of the parsed file during the music library scan and stored on the track through a new column and an EF migration. The container is refreshed when a file changes, survives track and artist edits and provider enrichment, and is exposed read-only in the track responses, never settable through a request.

Extracts the container resolution into a testable resolver used by the scan pipeline and the ID3 plugin, refuses to read a file that is itself a reparse point during extraction, and updates the endpoint summaries, the API and domain documentation, and the tests.
2026-10-14 13:40:28 +03:00
BinaryAlley 1aa427b1e2 Removes track path editing from the music track update flow
Stops Track.UpdateDetails and Artist.UpdateTrackInAlbum from assigning a path, so a track path can be set only when the track is created. Removes Path from UpdateTrackRequest, UpdateTrackCommand, UpdateTrackCommandValidator and UpdateMusicTrackRequest, and removes the path containment check and IPathService dependency from UpdateTrackCommandHandler. The path stays visible in TrackResponse, MusicTrackDto and the read-only field of the track page. Updates the endpoint summary, request and API docs, and the affected tests.
2026-10-13 20:14:12 +03:00
BinaryAlley 27c6c40b39 Persists the disambiguation comment of music tracks. 2026-10-13 13:26:51 +03:00
BinaryAlley 9d82f283e4 Extends the music library listings with covers, sorting and alpha filtering. 2026-10-13 13:26:14 +03:00
BinaryAlley a514335a10 Aligns the test fixture field names with their types and tidies the remaining tests 2026-10-10 14:24:00 +03:00
BinaryAlley 4f0526faa4 Adds the music library application mappings and renames the value object conversion methods 2026-10-07 13:46:00 +03:00
BinaryAlley 7ed6f05632 Adds the test suites for the library path templates and centralizes their resolution in the domain service 2026-10-05 20:15:00 +03:00
BinaryAlley 3aadd6de84 Refactors the test fixtures and their consumers to compose other fixtures instead of instantiating models inline 2026-10-02 14:37:23 +03:00
BinaryAlley 4d96fe10dd Removes the umbrella include flag from the fixtures and their consumers 2026-09-27 23:05:06 +03:00
BinaryAlley e73b3997bc Adds the music library artist test suite 2026-09-27 23:04:50 +03:00
BinaryAlley 5d3e430dd1 Adds the music library album test suite 2026-09-27 23:04:41 +03:00
BinaryAlley 12d310631b Adds the music library track test suite 2026-09-26 17:57:40 +03:00
BinaryAlley ef913f5c9e Adapts the tests and fixtures to the refactored domain and persistence layers 2026-09-20 01:35:14 +03:00
BinaryAlley ea6eb9f796 Refactors the book, artist, and album slices across the stack 2026-09-17 13:30:48 -07:00
BinaryAlley 8aaf9fe64e Refactors the get book slice 2026-09-13 06:58:32 -07:00
BinaryAlley 1d35cd01db Refactors the get books and get books lite slices across the stack 2026-09-13 04:16:59 -07:00
BinaryAlley 001146eefc Refactors the update book slice across the stack 2026-09-12 12:13:18 -07:00
BinaryAlley 9a71a6d32b Refactors the add book slice and shared media contributor model across the stack 2026-09-12 12:12:22 -07:00
BinaryAlley 145185d715 Adds book editing tests and parameterizes the shared test fixtures 2026-09-06 09:37:55 -07:00
BinaryAlley ca2e7f9d97 Adds unit tests improving application project code coverage 2026-09-02 07:10:34 -07:00
BinaryAlley 3a3c0c047c Adds tests for the book reading feature 2026-09-02 04:45:51 -07:00
BinaryAlley 565fe68239 Adds independent metadata and artwork enrichment
Splits the single combined enrichment phase of the media library scan into
independent, modular jobs, so that the metadata and the artwork of a book
are enriched separately and only when their respective triggers fire.

- Adds the MediaContributorRoleCategory enum (Other first, then Author,
  Translator, Illustrator, Publisher and Narrator) and makes the role
  category canonical, so that roles describing the same kind of
  contribution are never treated as distinct.
- Realizes the media contributor bounded context: a MediaContributor is a
  person, unique by display name, without a role. The role moves to the
  per-work participation (BookContributors), so that a single contributor
  can play multiple roles. Contributors are created and linked by the
  metadata enrichment job, and exposed to subsequent jobs.
- Makes the Book aggregate pure: the enrichment tracking state (metadata
  status, providers, timestamps and covers) no longer lives on the domain
  aggregate, but stays in the Books table, managed directly by the jobs.
- Models artwork generically as a BookArtwork child table (type, ordinal,
  content hash, status and provider), so that each piece of artwork is
  tracked independently and a change of one does not require the others to
  be re-fetched.
- Splits the scan DAG into ResultsSave, ProviderConfigurationInvalidation,
  MetadataEnrichment and ArtworkEnrichment jobs. The invalidation job
  fingerprints the provider configuration of a library and resets the
  enrichment state of the affected channel when it changed. The artwork job
  resolves the missing artwork, hashing it to detect identical covers and
  skip re-copying. Content-changed books are reset by the results save job.
- Deletes the book and its stored artwork when the file disappears from the
  library.
- Adds the migration creating the new tables, backfilling the existing
  covers into the artwork table, and adding the configuration fingerprints.
- Localizes the new scan job stages, and fixes the invalidation job wiping
  the library content locations by persisting the fingerprints through the
  change tracker instead of the repository update action.
2026-08-27 14:41:49 +03:00
BinaryAlley 4ff184d8a5 Merge branch 'refactor/standardize-test-fixtures-and-docs' into feature/add-artwork-provider-and-metadata-aggregation 2026-08-24 22:56:22 -07:00
BinaryAlley f42dc709de Standardizes test conventions and documentation 2026-08-24 14:20:08 -07:00
BinaryAlley 66871ccf62 Adds metadata aggregation to the media library enrichment job 2026-08-24 14:18:40 -07:00
BinaryAlley a13eeee43e Makes SQL injection security tests exercise the database and centralizes test setup helpers. 2026-08-18 12:38:45 -07:00
BinaryAlley 1189bbaf36 Hardens test assertions and adds missing test coverage. 2026-08-18 08:28:16 -07:00
BinaryAlley 85129187b3 chore: excludes test classes from code coverage 2026-08-17 11:52:35 -07:00
BinaryAlley ce4ebf36bc Adds pagination and filtering to the API 2026-08-16 03:10:47 -07:00
BinaryAlley 59e16d645a Inlines fixtures instantiation. 2026-08-15 03:19:51 -07:00
BinaryAlley b648e2f054 Centralizes and standardizes test fixtures. 2026-08-15 02:58:17 -07:00
BinaryAlley 3b772d68ca Replaces ErrorOr library with a custom implementation. 2026-08-14 03:04:28 -07:00
BinaryAlley 26bbe98e8e Adds unit tests for the book metadata DTO mapping 2026-08-12 11:09:12 -07:00
BinaryAlley f33817f2d2 Scopes books to a media library and tracks their metadata enrichment status 2026-08-12 11:01:59 -07:00
BinaryAlley 76b9596a27 Moves enums and errors to a shared kernel. 2026-08-12 09:07:00 -07:00
BinaryAlley 9c2e5452da Adds the opt-in directory fast skip scan setting and renames the library scan settings for consistency 2026-08-09 13:18:07 -07:00
BinaryAlley c4246d2e69 Moves media library scanning to domain layer 2025-02-16 21:45:26 +02:00
BinaryAlley d46bfae4fc Removes FluentAssertions library from test projects, due to licensing changes 2025-02-03 00:31:15 +02:00
BinaryAlley f89ba4960a Adds media library advanced options 2025-01-25 12:27:50 +02:00
BinaryAlley 666a739b1d Adds media library cover image 2025-01-03 16:01:20 +02:00
BinaryAlley 0114ff13e8 Adds authorization module tests 2025-01-01 22:56:07 +02:00
BinaryAlley 291d1fa329 Implements library management update library 2024-11-17 21:02:10 +02:00
BinaryAlley cf567bd094 Adds missing controller modifications 2024-11-16 21:58:13 +02:00
BinaryAlley 7321fb89e2 Moves repository entities to Application layer for joint access 2024-11-04 19:40:11 +02:00