feat: implement Live/Remix filtering and add CI/CD pipeline
Some checks failed
Build and Push Docker Image / build (pull_request) Failing after 38s
Some checks failed
Build and Push Docker Image / build (pull_request) Failing after 38s
This commit includes: 1. Live/Remix Filtering Feature: - Added ignore_live and ignore_remix columns to artist_settings table (migration 010) - Updated ArtistSettings struct with IgnoreLive and IgnoreRemix fields - Modified SaveArtistSettings and UpdateArtistSettings to handle new fields - Extended FilterOptions struct with IgnoreLive and IgnoreRemix - Updated ApplyTypeToggles and ApplyTypeTogglesToReleaseGroups to filter Live/Remix types - Added toggleIgnoreLive and toggleIgnoreRemix handlers in web layer - Updated ArtistData view model and artist.html template with new toggle UI - Comprehensive test coverage for all new functionality 2. CI/CD Pipeline with Gitea Actions: - Added .gitea/workflows/docker-build.yml for automated Docker builds - Workflow triggers on pushes to main/master and tags, plus PRs - Runs Go tests before building - Builds and pushes multi-architecture Docker images to gitea.mrixs.me - Includes caching for faster subsequent builds - Proper tagging strategy (branch, semver, SHA) - CI-CD-GUIDE.md documentation 3. Cleanup: - Removed temporary build artifacts and coverage files
This commit is contained in:
@@ -257,9 +257,9 @@ func TestArchive_RendersIgnoredReleases(t *testing.T) {
|
||||
seedArtist(t, db, "a1", "Radiohead", "", true)
|
||||
// An ignored external release.
|
||||
if err := database.SaveExternalRelease(db, &database.ExternalRelease{
|
||||
RGID: "r-ignored",
|
||||
ArtistID: "a1",
|
||||
Title: "Ignored Album",
|
||||
RGID: "r-ignored",
|
||||
ArtistID: "a1",
|
||||
Title: "Ignored Album",
|
||||
IsIgnored: true,
|
||||
}); err != nil {
|
||||
t.Fatalf("seed ignored release: %v", err)
|
||||
@@ -490,10 +490,10 @@ func TestStateChangingEnforcesSameOrigin(t *testing.T) {
|
||||
served := "http://0.0.0.0:8080" // matches the server's Addr()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
route string
|
||||
origin string
|
||||
wantCode int
|
||||
name string
|
||||
route string
|
||||
origin string
|
||||
wantCode int
|
||||
}{
|
||||
{"same-origin Origin allowed", "/artist/a1/ignore", served, http.StatusSeeOther},
|
||||
{"no Origin header allowed (same-origin form post)", "/artist/a1/ignore", "", http.StatusSeeOther},
|
||||
|
||||
Reference in New Issue
Block a user