mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11: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
-2
@@ -14,7 +14,6 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibr
|
||||
/// <summary>
|
||||
/// Represents a request to update an existing track of an album of a music artist.
|
||||
/// </summary>
|
||||
/// <param name="Path">The file system path of the track. Required.</param>
|
||||
/// <param name="Metadata">The audio metadata of the track. Required.</param>
|
||||
/// <param name="TrackNumber">The number of the track on its disc. Required.</param>
|
||||
/// <param name="DiscNumber">The number of the disc the track belongs to. Optional.</param>
|
||||
@@ -30,7 +29,6 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibr
|
||||
/// <param name="Ratings">The list of ratings for this track. Required.</param>
|
||||
[DebuggerDisplay("Title: {Metadata?.Title}")]
|
||||
public record UpdateMusicTrackRequest(
|
||||
string? Path,
|
||||
MusicTrackMetadataDto? Metadata,
|
||||
int? TrackNumber,
|
||||
int? DiscNumber,
|
||||
|
||||
Reference in new issue
Block a user