Commit Graph

34 Commits

Author SHA1 Message Date
Dean Herbert 0fcb3bdba9 Fix beatmap date added not being updated on reimporting a soft deleted beatmap
Addresses concerns raised in https://github.com/ppy/osu/discussions/17399.
2022-03-22 14:10:36 +09:00
Dean Herbert 79d1d54e33 Rename parameter to match other usages 2022-02-08 20:35:38 +09:00
Dan Balasescu b1a73996ba Fix incorrect check for beatmap availability 2022-02-08 19:36:42 +09:00
Dean Herbert 5288eedd31 Update all usages of `RulesetID` and `Ruleset.ID` to use `Ruleset.OnlineID` 2022-01-27 15:38:03 +09:00
Dean Herbert 3e5c9e8436 Fix cases of `Access` instead of `Realm` 2022-01-25 12:58:15 +09:00
Dean Herbert 6eb2c28e41 Rename `RealmContextFactory` to `RealmAccess` 2022-01-24 20:38:07 +09:00
Dean Herbert a5d2047f05 Fix various cases of creating realm contexts from update thread when not necessary 2022-01-21 01:44:56 +09:00
Dean Herbert 7f65f3a47f Remove all usage of `BaseDifficulty` (and access `Difficulty` instead) 2022-01-18 22:57:39 +09:00
Dean Herbert a0e2106468 Guard against null values getting inserted into database during score/beatmap imports 2022-01-17 14:05:08 +09:00
Dean Herbert 8424d86e9a Remove unused `cancellationToken` parameter in synchronous `BeatmapOnlineLookupQueue` flow 2022-01-14 13:19:00 +09:00
Dean Herbert 93c78253d6 Add synchronous fetch flow to `BeatmapOnlineLookupQueue`
The async flow doesn't work great with the realm import process. We
might be able to improve on this going forward, but for the time being
adding a synchronous path seems safest.

After all, we are already an an asynchronous (dedicated) thread pool at
this point.
2022-01-13 16:36:54 +09:00
Dean Herbert bdb2979b2e Remove `async` from `Populate` method 2022-01-13 16:36:54 +09:00
Dean Herbert d8e75a9de4 Reimplmeent `IsAvailableLocally` as an `abstract` method 2022-01-12 17:49:10 +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 00e3af3366 Update model manager and many related classes to get things compiling again 2022-01-12 17:00:00 +09:00
Dean Herbert 213d89b479 Update null fallback cases involving `OnlineID` 2022-01-12 16:39:36 +09:00
Dean Herbert 618903c217 Rename realm to become imposter classes 2022-01-12 16:39:36 +09:00
Dean Herbert 0eea026afb Remove null checks on `CreateInstance()` calls 2021-11-24 12:23:09 +09:00
Dean Herbert 6fb2757739 Remove usage of `Nuget.Packaging` extension methods for `IList.AddRange` 2021-11-23 15:02:02 +09:00
Dean Herbert 59e763467f Move `StoragePath` implementation to an extension method 2021-11-19 16:08:38 +09:00
Dean Herbert 692e846acd Rename `BeatmapSetInfo.OnlineBeatmapSetID` to `OnlineID` to match interface 2021-11-12 17:52:44 +09:00
Dean Herbert 6a098a8634 Rename `BeatmapInfo.OnlineBeatmapID` to `OnlineID` to match interface 2021-11-12 17:46:24 +09:00
Dean Herbert 51a353e12d Rename `BeatmapInfo.Version` to `DifficultyName` to match underlying interface 2021-11-11 17:20:53 +09:00
Dean Herbert ed07ee8c61 Update all existing usages of `AuthorString`/`AuthorId`
Unfortunately the getters need to be left in place else EF breaks.
2021-11-04 18:59:37 +09:00
Dean Herbert 86540d1fb6 Update existing usages of `Author` as `string` to access `Username` directly 2021-11-04 18:57:54 +09:00
Dean Herbert 6944151486 Apply batch fixing of built-in types using `var` 2021-10-27 13:04:41 +09:00
smoogipoo c8cdc38efd Always compare OnlineIds by >0 2021-10-20 15:20:34 +09:00
Dean Herbert ff2eae4597 Rename confusing variable 2021-10-19 11:37:46 +09:00
Dean Herbert b3219bb592 Update usages of `OnlineID` 2021-10-18 16:16:36 +09:00
Dean Herbert b2f9f8b8da Update logic surrounding removal of previous `OnlineID`s when running a new import 2021-10-18 15:14:13 +09:00
Dean Herbert 264fa703f2 Remove some forgotten temporary code from `BeatmapImporter`
And make the online queue not `dynamic`, at very least.
2021-10-18 14:43:50 +09:00
Dean Herbert 0e1f144bf4 Rename `ArchiveModelImporter` with `Realm` prefix to avoid confusion 2021-10-15 17:08:43 +09:00
Dean Herbert cd64faa4f9 Tidy up importer difficulty creation code 2021-10-15 17:07:34 +09:00
Dean Herbert d95a62fa56 Add models and stores for beatmap manager requirements 2021-10-15 16:58:41 +09:00