Commit Graph

47883 Commits

Author SHA1 Message Date
Dean Herbert c33e163178 Bind ruleset to toolbar later for safety 2022-01-12 17:49:10 +09:00
Dean Herbert 605898ec53 Add missing "non-null" elements missing from some tests 2022-01-12 17:49:10 +09:00
Dean Herbert 02d0ca2741 Fix protected beatmaps showing up in the song select carousel 2022-01-12 17:49:10 +09:00
Dean Herbert 4b690703b3 Remove unnecessary DI dependencies from cache test 2022-01-12 17:49:10 +09:00
Dean Herbert 41d90cd0b5 Fix beatmap carousel test failures 2022-01-12 17:49:10 +09:00
Dean Herbert a0f8debafe Add note about `BeatmapMetadata.Author` being weird 2022-01-12 17:49:10 +09:00
Dean Herbert 8ecfb9172e Fix multiple tests with incorrect access to beatmap imports 2022-01-12 17:49:10 +09:00
Dean Herbert f4a1fa85a1 Fix incorrect conditional for deciding whether scores can be deleted from UI 2022-01-12 17:49:10 +09:00
Dean Herbert ae8f522c20 Add support for persisting score's mods to realm 2022-01-12 17:49:10 +09:00
Dean Herbert af5d3af664 Remove test coverage of scores being deleted when beatmaps are
This is not supported in realm for now. Probably best suited to a
separate pass, similar to files, using backlink count.
2022-01-12 17:49:10 +09:00
Dean Herbert d8e75a9de4 Reimplmeent `IsAvailableLocally` as an `abstract` method 2022-01-12 17:49:10 +09:00
Dean Herbert 47390d7ec3 Update handling of ruleset nullability when handling a game-wide change 2022-01-12 17:49:10 +09:00
Dean Herbert 43c7b0d2c8 Fix unsupported realm operations in multiple tests 2022-01-12 17:49:10 +09:00
Dean Herbert ba62d2c756 Fix `ScoreInfo` oversights causing automapper to fail
Parameter in ctor *has* to be named `realmUser` else automapper will try
to map to the `User` property.
2022-01-12 17:48:49 +09:00
Dean Herbert 33b5fa3473 Detach score during import tests to ensure original object doesn't get managed 2022-01-12 17:00:17 +09:00
Dean Herbert 463a185605 Fix many instances of `User` being null in score import tests 2022-01-12 17:00:17 +09:00
Dean Herbert d19a9a0ba3 Remove assertion of `ScoreInfo.Combo` being database persisted 2022-01-12 17:00:17 +09:00
Dean Herbert 83ccbc1d13 Mention safety failures of Beatmap/Score constructors 2022-01-12 17:00:17 +09:00
Dean Herbert c831e9107a Fix `BeatmapInfo.Clone` potentially not cloning if already detached 2022-01-12 17:00:17 +09:00
Dean Herbert 5dd0bb1218 Ensure `Score` created by `GameplayState` has a valid ruleset 2022-01-12 17:00:17 +09:00
Dean Herbert 82259ee072 Improve legibility of `RulesetInfo.Equals` 2022-01-12 17:00:17 +09:00
Dean Herbert fa7dddcf3c Fix `TestScenePresentScore` sharing metadata/difficulty across multiple beatmaps 2022-01-12 17:00:17 +09:00
Dean Herbert 6251713796 Add missing `Ruleset` in `ReplayRecorder` tests 2022-01-12 17:00:17 +09:00
Dean Herbert 7e7784b78a Fix incorrect access to `ILive` in `BeatmapSkinResources` tests 2022-01-12 17:00:17 +09:00
Dean Herbert e5af673b01 Fix incorrect `BeatmapInfo.ToString` implementation 2022-01-12 17:00:17 +09:00
Dean Herbert f2f1adb792 Update `FilterMatchingTest` and filter code to use ruleset's `OnlineID` 2022-01-12 17:00:17 +09:00
Dean Herbert ba4ef0926f Remove incorrect test fixture specification 2022-01-12 17:00:17 +09:00
Dean Herbert a3c70ccdfc Fix OnlineAvailabilityTracker referencing a value in query that could potentially be null 2022-01-12 17:00:17 +09:00
Dean Herbert b619ff1264 Reattach detached items on delete/undelete 2022-01-12 17:00:17 +09:00
Dean Herbert e74a5022c9 Fix multiple tests via null checks and changing `ToLive` to `Detach`
flow
2022-01-12 17:00:17 +09:00
Dean Herbert 13401a8846 Better handle Statistics to avoid losing data 2022-01-12 17:00:17 +09:00
Dean Herbert 76670a8faa Fix `BeatmapDifficultyCache` not working with detached beatmaps 2022-01-12 17:00:17 +09:00
Dean Herbert 52ca649159 Fix results screen test failures due to relation query 2022-01-12 17:00:17 +09:00
Dean Herbert 6919df18fa Fix incorrect ordering and grouping of difficulties at song select 2022-01-12 17:00:17 +09:00
Dean Herbert aaefd72c69 Handle ignored mappings locally in `Detach` configuration 2022-01-12 17:00:17 +09:00
Dean Herbert 2b8706b6ce Detach and reattach scores to make work 2022-01-12 17:00:16 +09:00
Dean Herbert 60d2de8a3b Fix potential nullref when song select filters to no results 2022-01-12 17:00:16 +09:00
Dean Herbert 2d2faa72a9 Fix rulesets being out of order 2022-01-12 17:00:16 +09:00
Dean Herbert e1f77b87de "Fix" OnlinePlayBeatmapAvailabilityTracker 2022-01-12 17:00:16 +09:00
Dean Herbert de3a338d02 Update realm queries to use `Filter` to allow for indirect property filtering 2022-01-12 17:00:16 +09:00
Dean Herbert 8461eaab46 `BeatmapSetInfo` detach support 2022-01-12 17:00:16 +09:00
Dean Herbert de076678fe Fix some remaining test failures 2022-01-12 17:00:16 +09:00
Dean Herbert 3811bd8520 Fix some null inspections 2022-01-12 17:00:16 +09:00
Dean Herbert 667cdb2475 Fix skin lookup when there's no beatmap file available 2022-01-12 17:00:16 +09:00
Dean Herbert 33060990b7 Temporarily disable `WorkingBeatmapCache` and fix multiple invalid data flows 2022-01-12 17:00:16 +09:00
Dean Herbert 0793b0f0ab Fix `Max` lookup methods not checking for zero beatmap count 2022-01-12 17:00:16 +09:00
Dean Herbert dcd69e852e Add back settable `RulesetID` for now 2022-01-12 17:00:16 +09:00
Dean Herbert 2a980cc474 Fix `BeatmapInfo` file lookup not handling the case where no files exist
Quite common for test scenes.
2022-01-12 17:00:16 +09:00
Dean Herbert 167c399e8a Fix invalid DI resolution of `RealmFileStore` 2022-01-12 17:00:16 +09:00
Dean Herbert 99e46cd26b Fix missing `BeatmapMetadata.ToString`
This is relied on by a few usages.
2022-01-12 17:00:16 +09:00