refactor: drop code nothing calls, and the sync log rows no app reads (#8002)
release / go (push) Successful in 1m56s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m20s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m56s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m20s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
- library.ProbeDurationMs and IsAudioFile, and db.MigrationsFS, had no callers. - The delta sync logged and hydrated like and playlist changes on every like, playlist edit and duplicate merge, including a GetPlaylistsByIDs query per sync. Android applies only artists, albums and tracks, and the web doesn't sync; likes and playlists reach both through their own endpoints and live events. The like and playlist-entry deletes also went to every caller unscoped, user ids included. They are no longer written or served, and migration 0112 clears the rows already logged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,29 +124,3 @@ func toTrackSyncView(t dbq.Track, g library.ReplayGain) trackSyncView {
|
||||
TrackPeak: g.TrackPeak,
|
||||
}
|
||||
}
|
||||
|
||||
type playlistSyncView struct {
|
||||
ID string `json:"id"`
|
||||
UserID string `json:"user_id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
CoverPath *string `json:"cover_path"`
|
||||
TrackCount int32 `json:"track_count"`
|
||||
DurationSec int32 `json:"duration_sec"`
|
||||
SystemVariant *string `json:"system_variant"`
|
||||
}
|
||||
|
||||
func toPlaylistSyncView(p dbq.Playlist) playlistSyncView {
|
||||
return playlistSyncView{
|
||||
ID: syncpkg.FormatUUID(p.ID),
|
||||
UserID: syncpkg.FormatUUID(p.UserID),
|
||||
Name: p.Name,
|
||||
Description: p.Description,
|
||||
IsPublic: p.IsPublic,
|
||||
CoverPath: p.CoverPath,
|
||||
TrackCount: p.TrackCount,
|
||||
DurationSec: p.DurationSec,
|
||||
SystemVariant: p.SystemVariant,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user