mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
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.
This commit is contained in:
1 parent
728a879bb8
commit
1aa427b1e2
29 files changed
+47
-243
No files matched your search
-1
@@ -158,7 +158,6 @@ public static class UpdateArtistCommandMapping
|
||||
Result<Updated> updateTrackResult = artist.UpdateTrackInAlbum(
|
||||
existingAlbum,
|
||||
existingTrack,
|
||||
domainTrack.Path,
|
||||
domainTrack.Metadata,
|
||||
domainTrack.Disambiguation,
|
||||
domainTrack.TrackNumber,
|
||||
|
||||
-1
@@ -111,7 +111,6 @@ public static class AudioMetadataDtoMapping
|
||||
return artist.UpdateTrackInAlbum(
|
||||
album,
|
||||
track,
|
||||
track.Path,
|
||||
metadataResult.Value,
|
||||
disambiguation,
|
||||
track.TrackNumber,
|
||||
|
||||
-1
@@ -85,7 +85,6 @@ public static class UpdateTrackCommandMapping
|
||||
Result<Updated> updateResult = artist.UpdateTrackInAlbum(
|
||||
album,
|
||||
track,
|
||||
command.Path!,
|
||||
metadataResult.Value,
|
||||
Optional<string>.FromNullable(metadata.Disambiguation),
|
||||
command.TrackNumber!.Value,
|
||||
|
||||
-1
@@ -26,7 +26,6 @@ public static class UpdateTrackRequestMapping
|
||||
artistId,
|
||||
albumId,
|
||||
trackId,
|
||||
request.Path,
|
||||
request.Metadata,
|
||||
request.TrackNumber,
|
||||
request.DiscNumber,
|
||||
|
||||
Reference in new issue
Block a user