Remove RetroApplyTags from multiple tables

Removed the RetroApplyTags field from ProviderDefinition, Notifications, Indexers, DownloadClients, and relevant API resources. RetroApplyTags is now exclusively managed within ImportListDefinition.
This commit is contained in:
scphantm 2024-10-13 10:46:02 -04:00
parent 5f9c52d790
commit 8730c26de0
4 changed files with 2 additions and 7 deletions

View file

@ -9,8 +9,5 @@ public class add_retroapply_to_importlists : NzbDroneMigrationBase
protected override void MainDbUpgrade()
{
Alter.Table("ImportLists").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("Notifications").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("Indexers").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
Alter.Table("DownloadClients").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
}
}

View file

@ -16,6 +16,7 @@ public class ImportListDefinition : ProviderDefinition, IEquatable<ImportListDef
public int QualityProfileId { get; set; }
public string RootFolderPath { get; set; }
public bool SearchOnAdd { get; set; }
public bool RetroApplyTags { get; set; }
[MemberwiseEqualityIgnore]
public override bool Enable => Enabled;

View file

@ -28,7 +28,6 @@ protected ProviderDefinition()
public ProviderMessage Message { get; set; }
public HashSet<int> Tags { get; set; }
public bool RetroApplyTags { get; set; }
[MemberwiseEqualityIgnore]
public IProviderConfig Settings

View file

@ -37,7 +37,6 @@ public virtual TProviderResource ToResource(TProviderDefinition definition)
ConfigContract = definition.ConfigContract,
Message = definition.Message,
Tags = definition.Tags,
RetroApplyTags = definition.RetroApplyTags,
Fields = SchemaBuilder.ToSchema(definition.Settings),
// radarr/supported is an disambiguation page. the # should be a header on the page with appropriate details/link
@ -62,8 +61,7 @@ public virtual TProviderDefinition ToModel(TProviderResource resource, TProvider
Implementation = resource.Implementation,
ConfigContract = resource.ConfigContract,
Message = resource.Message,
Tags = resource.Tags,
RetroApplyTags = resource.RetroApplyTags,
Tags = resource.Tags
};
var configContract = ReflectionExtensions.CoreAssembly.FindTypeByName(definition.ConfigContract);