Make release Medium writable via upload + meta-edit; resolve detail-page track by releaseId not album title
This commit is contained in:
@@ -16,6 +16,12 @@ public class TrackFilter
|
||||
/// <summary>Exact genre match.</summary>
|
||||
public string? Genre { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Exact release-id match. The authoritative join from a release to its tracks — preferred over
|
||||
/// <see cref="Album"/> (a title string that collides across same-titled releases and breaks on rename).
|
||||
/// </summary>
|
||||
public long? ReleaseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// True when no predicate is set. An empty filter must produce identical results to a null
|
||||
/// filter, so callers collapse it to null before querying.
|
||||
@@ -23,5 +29,6 @@ public class TrackFilter
|
||||
public bool IsEmpty =>
|
||||
string.IsNullOrWhiteSpace(SearchText)
|
||||
&& string.IsNullOrWhiteSpace(Album)
|
||||
&& string.IsNullOrWhiteSpace(Genre);
|
||||
&& string.IsNullOrWhiteSpace(Genre)
|
||||
&& ReleaseId is null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user