chore: clear the request-era leftovers
release / integration (push) Canceled after 0s
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 8s
release / integration (push) Canceled after 0s
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 8s
A playback error can no longer be resolved as "requested": the server refuses it, migration 106 takes it out of the CHECK (no row used it), and the Reports history and types drop its label. The web and Android error tables lose the copy for errors only the wanted list, follows, release-type profiles, downloads and indexers sent, and comments stop naming Discover, following and the requests page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -99,16 +99,11 @@ object ErrorCopy {
|
|||||||
"bad_kind" to "Invalid request type.",
|
"bad_kind" to "Invalid request type.",
|
||||||
"bad_paging" to "Invalid page size or offset.",
|
"bad_paging" to "Invalid page size or offset.",
|
||||||
"bad_reason" to "Invalid quarantine reason.",
|
"bad_reason" to "Invalid quarantine reason.",
|
||||||
"mbid_required" to "An MBID is required for this lookup.",
|
|
||||||
"system_playlist_readonly" to "System playlists can't be edited directly.",
|
"system_playlist_readonly" to "System playlists can't be edited directly.",
|
||||||
"connection_refused" to "Couldn't reach the server. Check the URL and try again.",
|
"connection_refused" to "Couldn't reach the server. Check the URL and try again.",
|
||||||
"cleartext_public" to
|
"cleartext_public" to
|
||||||
"This server is on the internet, so its URL must start with https://. " +
|
"This server is on the internet, so its URL must start with https://. " +
|
||||||
"Plain http:// only works on your home network.",
|
"Plain http:// only works on your home network.",
|
||||||
"request_not_pending" to "This request is no longer pending.",
|
|
||||||
"request_not_found" to "That request no longer exists.",
|
|
||||||
"not_followable" to "Various Artists and MusicBrainz placeholders can't be followed.",
|
|
||||||
"profile_not_found" to "That release-type profile no longer exists.",
|
|
||||||
"track_not_found" to "That track no longer exists.",
|
"track_not_found" to "That track no longer exists.",
|
||||||
"library_not_writable" to "The music library isn't writable by the server.",
|
"library_not_writable" to "The music library isn't writable by the server.",
|
||||||
"file_delete_failed" to "The file couldn't be deleted.",
|
"file_delete_failed" to "The file couldn't be deleted.",
|
||||||
|
|||||||
@@ -23,14 +23,13 @@ var validPlaybackErrorKinds = map[string]struct{}{
|
|||||||
"stalled": {},
|
"stalled": {},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Valid `resolution` values. Hidden / deleted / requested are stamped
|
// Valid `resolution` values. Hidden / deleted are stamped automatically
|
||||||
// automatically when the admin clicks the matching action from the
|
// when the admin clicks the matching action from the inbox; fixed /
|
||||||
// inbox; fixed / ignored are operator-driven (no action taken on the
|
// ignored are operator-driven (no action taken on the track itself).
|
||||||
// track itself). Mirrors the CHECK constraint in migration 0032.
|
// Mirrors the playback_errors_resolution_check constraint.
|
||||||
var validPlaybackErrorResolutions = map[string]struct{}{
|
var validPlaybackErrorResolutions = map[string]struct{}{
|
||||||
"hidden": {},
|
"hidden": {},
|
||||||
"deleted": {},
|
"deleted": {},
|
||||||
"requested": {},
|
|
||||||
"fixed": {},
|
"fixed": {},
|
||||||
"ignored": {},
|
"ignored": {},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE playback_errors
|
||||||
|
DROP CONSTRAINT playback_errors_resolution_check,
|
||||||
|
ADD CONSTRAINT playback_errors_resolution_check
|
||||||
|
CHECK (resolution IS NULL OR resolution IN ('hidden', 'deleted', 'requested', 'fixed', 'ignored'));
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
-- A playback error is resolved by hiding or deleting the track, or by marking
|
||||||
|
-- it fixed or ignored. Nothing re-requests a track any more, so 'requested'
|
||||||
|
-- is no longer a resolution.
|
||||||
|
ALTER TABLE playback_errors
|
||||||
|
DROP CONSTRAINT playback_errors_resolution_check,
|
||||||
|
ADD CONSTRAINT playback_errors_resolution_check
|
||||||
|
CHECK (resolution IS NULL OR resolution IN ('hidden', 'deleted', 'fixed', 'ignored'));
|
||||||
@@ -102,8 +102,7 @@ const RESOLUTION_LABELS: Record<string, string> = {
|
|||||||
fixed: 'Playback error marked fixed',
|
fixed: 'Playback error marked fixed',
|
||||||
ignored: 'Playback error ignored',
|
ignored: 'Playback error ignored',
|
||||||
hidden: 'Hidden after a playback error',
|
hidden: 'Hidden after a playback error',
|
||||||
deleted: 'File deleted after a playback error',
|
deleted: 'File deleted after a playback error'
|
||||||
requested: 'Re-requested after a playback error'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export function mergeHandled(actions: QuarantineActionRow[], resolved: AdminPlaybackError[]): HandledRow[] {
|
export function mergeHandled(actions: QuarantineActionRow[], resolved: AdminPlaybackError[]): HandledRow[] {
|
||||||
|
|||||||
@@ -870,7 +870,7 @@ export async function listMissingFiles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Takes a plain offset rather than a getter: callers wrap the call in
|
// Takes a plain offset rather than a getter: callers wrap the call in
|
||||||
// $derived (as the playback-errors and requests pages do for their tab
|
// $derived (as the playback-errors page does for its tab
|
||||||
// state), so changing the page re-creates the query with a new key. A
|
// state), so changing the page re-creates the query with a new key. A
|
||||||
// getter would capture the key once and paging would silently not refetch.
|
// getter would capture the key once and paging would silently not refetch.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export type ArtistDetail = ArtistRef & {
|
|||||||
albums: AlbumRef[];
|
albums: AlbumRef[];
|
||||||
// Genres across this artist's tracks. Server guarantees an array.
|
// Genres across this artist's tracks. Server guarantees an array.
|
||||||
genres: string[];
|
genres: string[];
|
||||||
// MusicBrainz id, which following is keyed by; "" when none.
|
// MusicBrainz id; "" when none.
|
||||||
mbid: string;
|
mbid: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -191,7 +191,6 @@ export type PlaybackErrorKind = 'zero_duration' | 'load_failed' | 'stalled';
|
|||||||
export type PlaybackErrorResolution =
|
export type PlaybackErrorResolution =
|
||||||
| 'hidden'
|
| 'hidden'
|
||||||
| 'deleted'
|
| 'deleted'
|
||||||
| 'requested'
|
|
||||||
| 'fixed'
|
| 'fixed'
|
||||||
| 'ignored';
|
| 'ignored';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
// The centred column every track-list page sits in: album, playlist, Liked,
|
// The centred column every track-list page sits in: album, playlist, Liked,
|
||||||
// History and Search → Tracks. Shelf and grid pages (Home, Library, Discover,
|
// History and Search → Tracks. Shelf and grid pages (Home, Library,
|
||||||
// Artist, Search) stay full width, since a narrow column would cost them
|
// Artist, Search) stay full width, since a narrow column would cost them
|
||||||
// cards.
|
// cards.
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script lang="ts" generics="Id extends string">
|
<script lang="ts" generics="Id extends string">
|
||||||
// In-page tabs: one strip of buttons switching what a single page shows.
|
// In-page tabs: one strip of buttons switching what a single page shows.
|
||||||
// The same look as DiscoverTabs, which is route
|
// This is for state inside one page, not route navigation, such as
|
||||||
// navigation and so stays links; this is for state inside one page, such as
|
|
||||||
// Liked's Artists | Albums | Tracks or a queue's status filter.
|
// Liked's Artists | Albums | Tracks or a queue's status filter.
|
||||||
type Item = {
|
type Item = {
|
||||||
id: Id;
|
id: Id;
|
||||||
|
|||||||
@@ -27,16 +27,10 @@
|
|||||||
"bad_kind": "Invalid request type.",
|
"bad_kind": "Invalid request type.",
|
||||||
"bad_paging": "Invalid page size or offset.",
|
"bad_paging": "Invalid page size or offset.",
|
||||||
"invalid_paging": "Invalid page size or offset.",
|
"invalid_paging": "Invalid page size or offset.",
|
||||||
"not_decidable": "That download isn't waiting on a decision any more. Refresh the list.",
|
|
||||||
"bad_import_root": "New music has to be filed into one of the library's folders.",
|
|
||||||
"bad_folders": "The library folders weren't saved.",
|
"bad_folders": "The library folders weren't saved.",
|
||||||
"bad_reason": "Invalid quarantine reason.",
|
"bad_reason": "Invalid quarantine reason.",
|
||||||
"mbid_required": "An MBID is required for this lookup.",
|
|
||||||
"system_playlist_readonly": "System playlists can't be edited directly.",
|
"system_playlist_readonly": "System playlists can't be edited directly.",
|
||||||
"connection_refused": "Couldn't reach the server. Check the URL and try again.",
|
"connection_refused": "Couldn't reach the server. Check the URL and try again.",
|
||||||
"musicbrainz_unreachable": "MusicBrainz can't be reached right now, so search is unavailable. Try again in a minute.",
|
|
||||||
"request_not_pending": "This request is no longer pending.",
|
|
||||||
"request_not_found": "That request no longer exists.",
|
|
||||||
"track_not_found": "That track no longer exists.",
|
"track_not_found": "That track no longer exists.",
|
||||||
"library_not_writable": "The music library isn't writable by the server.",
|
"library_not_writable": "The music library isn't writable by the server.",
|
||||||
"file_delete_failed": "The file couldn't be deleted.",
|
"file_delete_failed": "The file couldn't be deleted.",
|
||||||
@@ -51,28 +45,6 @@
|
|||||||
"artist_not_found": "That artist no longer exists.",
|
"artist_not_found": "That artist no longer exists.",
|
||||||
"playlist_not_found": "That playlist no longer exists.",
|
"playlist_not_found": "That playlist no longer exists.",
|
||||||
"user_not_found": "That user no longer exists.",
|
"user_not_found": "That user no longer exists.",
|
||||||
"service_not_found": "That connection no longer exists. Refresh the page.",
|
|
||||||
"too_many_services": "There are already twenty of these. Remove one you no longer use first.",
|
|
||||||
"bad_state": "That isn't a tab of the wanted list.",
|
|
||||||
"bad_profile": "That isn't a release-type profile.",
|
|
||||||
"not_followable": "Various Artists and MusicBrainz placeholders can't be followed.",
|
|
||||||
"profile_not_found": "That release-type profile no longer exists. Refresh the page.",
|
|
||||||
"profile_invalid": "A profile needs a name and at least one primary type.",
|
|
||||||
"profile_name_taken": "A profile already has that name.",
|
|
||||||
"profile_in_use": "Artists are followed on this profile. Move them to another one first.",
|
|
||||||
"profile_is_default": "The default profile can't be deleted. Make another one the default first.",
|
|
||||||
"want_not_found": "That's no longer on the wanted list. Refresh the page.",
|
|
||||||
"follow_not_found": "That artist isn't followed any more. Refresh the page.",
|
|
||||||
"invalid_profile": "That isn't a release-type profile.",
|
|
||||||
"bad_interval": "Hours between searches must be between 0 and 720.",
|
|
||||||
"bad_quality": "Choose at least one quality to take.",
|
|
||||||
"candidate_not_found": "That release is no longer in the list. Search again.",
|
|
||||||
"no_infohash": "That release can't be set aside: its indexer gave no infohash to know it by.",
|
|
||||||
"want_held": "The library already holds that album, and it isn't wanted for a better copy.",
|
|
||||||
"block_not_found": "That release isn't set aside any more.",
|
|
||||||
"not_running": "That download isn't running any more. Refresh the list.",
|
|
||||||
"bad_lifecycle": "Seed ratio is 0 to 100, seed days 0 to 365, and stall hours 0 to 720.",
|
|
||||||
"bad_upgrade_until": "Upgrade until has to be one of the qualities listed.",
|
|
||||||
"invalid_backup_setting": "That backup setting can't be saved.",
|
"invalid_backup_setting": "That backup setting can't be saved.",
|
||||||
"destination_failed": "Couldn't reach the backup destination.",
|
"destination_failed": "Couldn't reach the backup destination.",
|
||||||
"backup_running": "A backup is already running.",
|
"backup_running": "A backup is already running.",
|
||||||
|
|||||||
Reference in New Issue
Block a user