1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:23:21 +08:00
osu-lazer/osu.Game/Database
Dean Herbert 81461be49f Skip beatmap imports where ruleset is not present in realm
Closes #16651.

When a ruleset is not available, the `Find` call would return null. When
a null is passed to the constructor, `BeatmapInfo` would create an "osu"
ruleset, which tries to get stored to realm and fails on duplicate
primary key.

Probably need to add better safeties against this (or change that
constructor...) but this will fix the migration process.

Probably not serious enough to pull the build. This only affects
rulesets like karaoke which have custom beatmaps.
2022-01-28 00:14:20 +09:00
..
BeatmapLookupCache.cs Extract abstract implementation of online lookup cache 2021-12-21 11:12:51 +01:00
DatabaseContextFactory.cs Add more attempts to delete EF database 2022-01-27 14:32:21 +09:00
DatabaseWriteUsage.cs Remove easy to remove finalizers 2021-03-02 16:07:09 +09:00
EFToRealmMigrator.cs Skip beatmap imports where ruleset is not present in realm 2022-01-28 00:14:20 +09:00
EmptyRealmSet.cs Use Array.Empty instead of constructed list 2022-01-23 23:18:50 +09:00
ICanAcceptFiles.cs Fix missing XMLDoc bit. 2020-12-19 10:36:27 +01:00
IDatabaseContextFactory.cs Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
IHasFiles.cs Initialise all file lists at construction time (and remove setter) 2021-11-24 13:56:21 +09:00
IHasGuidPrimaryKey.cs Remove setter from IHasGuidPrimaryKey interface 2021-10-04 16:26:28 +09:00
IHasNamedFiles.cs Update all models to implement IHasNamedFiles 2021-11-25 16:41:12 +09:00
IHasOnlineID.cs Use extension method to compare online IDs 2021-11-15 14:34:50 +09:00
IHasPrimaryKey.cs Add IsManaged helper method to EF classes to match realm implementation 2021-11-19 21:56:06 +09:00
IHasRealmFiles.cs Add a few nullabilities and DCC excludes 2021-10-13 12:51:46 +09:00
IModelDownloader.cs Fix incorrectly specified events 2021-11-06 22:31:49 +09:00
IModelFileManager.cs Overwrite existing files if AddFile is called with an existing filename 2021-12-02 17:18:06 +09:00
IModelImporter.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
IModelManager.cs Move manager Update methods to be explicit to where they are still used by legacy code 2022-01-12 17:49:11 +09:00
ImportProgressNotification.cs Add test coverage of startup import sequence 2021-10-13 12:19:10 +09:00
ImportTask.cs Update model manager and many related classes to get things compiling again 2022-01-12 17:00:00 +09:00
INamedFile.cs Add a few nullabilities and DCC excludes 2021-10-13 12:51:46 +09:00
INamedFileInfo.cs Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
INamedFileUsage.cs Update all EF based models to implement new read only interfaces 2021-10-01 16:55:50 +09:00
IPostImports.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
IPostNotifications.cs Split out IPostNotifications into an interface 2021-09-30 18:21:34 +09:00
ISoftDelete.cs Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
LegacyBeatmapExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacyBeatmapImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
LegacyExporter.cs Fix scores not using correct filename/display strings 2022-01-13 16:56:11 +09:00
LegacyImportManager.cs Fix typo in class and variable names 2021-11-25 17:12:15 +09:00
LegacyModelImporter.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
LegacyScoreExporter.cs Update many score-related classes to move closer to being able to persist to realm 2022-01-12 16:57:27 +09:00
LegacyScoreImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
LegacySkinExporter.cs Remove unnecessary manager parameter 2021-11-25 18:36:03 +09:00
LegacySkinImporter.cs Add missing licence headers 2021-11-25 16:56:19 +09:00
Live.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
MemoryCachingComponent.cs Apply ConfigureAwait changes to game side 2021-03-08 14:36:35 +09:00
ModelDownloader.cs Various updates to ruleset and primary key usages to move closer to realm support 2022-01-12 16:57:13 +09:00
OnlineLookupCache.cs Update usages to new naming 2022-01-06 22:54:43 +09:00
OsuDbContext.cs Fix many shortcomings and compatibility issues with EF classes post-rename 2022-01-12 17:00:16 +09:00
RealmAccess.cs Move final empty result set sending to post-compact 2022-01-26 17:21:57 +09:00
RealmExtensions.cs Refine RealmContext implementation API 2021-09-30 23:56:38 +09:00
RealmLive.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
RealmLiveUnmanaged.cs Remove ILive<> interface (and use abstract Live<> instead) 2022-01-26 13:38:56 +09:00
RealmObjectExtensions.cs Remove collection ToLive helper method to avoid confusion 2022-01-26 18:26:37 +09:00
UserLookupCache.cs Extract abstract implementation of online lookup cache 2021-12-21 11:12:51 +01:00