From 094390523fe79faafb421475e2fadd316e2746dd Mon Sep 17 00:00:00 2001 From: richardscull <106016833+richardscull@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:32:00 +0200 Subject: [PATCH 1/2] feat: Update default not eligible beatmap statuses for hype --- Sunrise.Shared/Application/Configuration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sunrise.Shared/Application/Configuration.cs b/Sunrise.Shared/Application/Configuration.cs index e272e01e..26cdad9d 100644 --- a/Sunrise.Shared/Application/Configuration.cs +++ b/Sunrise.Shared/Application/Configuration.cs @@ -156,7 +156,7 @@ public static string WebTokenSecret return status; }).ToArray() ?? - [BeatmapStatusWeb.Qualified, BeatmapStatusWeb.Approved, BeatmapStatusWeb.Ranked, BeatmapStatusWeb.Loved]; + [BeatmapStatusWeb.Qualified, BeatmapStatusWeb.Approved, BeatmapStatusWeb.Ranked, BeatmapStatusWeb.Loved, BeatmapStatusWeb.Wip, BeatmapStatusWeb.Pending]; // Telemetry section public static bool UseMetrics => Config.GetSection("Telemetry").GetValue("UseMetrics") ?? true; From 3980b043a7520560f8f3b5410a5582d03050df15 Mon Sep 17 00:00:00 2001 From: richardscull <106016833+richardscull@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:37:43 +0200 Subject: [PATCH 2/2] fix: tests --- .../API/BeatmapController/ApiGetBeatmapSetHypeTests.cs | 3 +++ .../API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs b/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs index 043131c7..d39a0d84 100644 --- a/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs +++ b/Sunrise.Server.Tests/API/BeatmapController/ApiGetBeatmapSetHypeTests.cs @@ -1,6 +1,8 @@ using System.Net; using Sunrise.API.Serializable.Response; using Sunrise.Shared.Application; +using Sunrise.Shared.Enums.Beatmaps; +using Sunrise.Shared.Extensions.Beatmaps; using Sunrise.Tests.Abstracts; using Sunrise.Tests.Extensions; using Sunrise.Tests.Services.Mock; @@ -23,6 +25,7 @@ public async Task TestGetBeatmapSetHype(bool shouldHypeBefore) var beatmapSet = _mocker.Beatmap.GetRandomBeatmapSet(); beatmapSet.Id = 1; + beatmapSet.StatusString = BeatmapStatusWeb.Graveyard.BeatmapStatusWebToString(); await _mocker.Beatmap.MockBeatmapSet(beatmapSet); diff --git a/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs b/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs index d7c06d4d..d11c4f9c 100644 --- a/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs +++ b/Sunrise.Server.Tests/API/BeatmapController/ApiGetHypedBeatmapSetsTests.cs @@ -58,6 +58,7 @@ public async Task TestGetHypedBeatmapSets(bool shouldAddedHypeStartHypeTrain) var beatmapSet = _mocker.Beatmap.GetRandomBeatmapSet(); beatmapSet.Id = 1; + beatmapSet.StatusString = BeatmapStatusWeb.Graveyard.BeatmapStatusWebToString(); await _mocker.Beatmap.MockBeatmapSet(beatmapSet);