feat!: replace_existing_custom_formats now defaults to true

pull/201/head
Robert Dailey 1 year ago
parent c773a1a90b
commit 21a63ab8e1

@ -17,6 +17,7 @@ changes you may need to make.
- API Key is now sent via the `X-Api-Key` header instead of the `apikey` query parameter. This
lessens the need to redact information in the console.
- **BREAKING**: `replace_existing_custom_formats` now defaults to `true`
### Removed

@ -94,7 +94,7 @@ public class ConfigurationLoaderTest : TrashLibIntegrationFixture
ApiKey = "95283e6b156c42f3af8a9b16173f876b",
BaseUrl = new Uri("http://localhost:8989"),
InstanceName = "name",
ReplaceExistingCustomFormats = true,
ReplaceExistingCustomFormats = false,
ReleaseProfiles = new List<ReleaseProfileConfig>
{
new()

@ -34,9 +34,7 @@ public record ServiceConfigYaml
public string? BaseUrl { get; [UsedImplicitly] init; }
public string? ApiKey { get; [UsedImplicitly] init; }
public bool DeleteOldCustomFormats { get; [UsedImplicitly] init; }
// todo: In v5.0, this will change to false.
public bool ReplaceExistingCustomFormats { get; [UsedImplicitly] init; } = true;
public bool ReplaceExistingCustomFormats { get; [UsedImplicitly] init; }
public IReadOnlyCollection<CustomFormatConfigYaml>? CustomFormats { get; [UsedImplicitly] init; }
public QualitySizeConfigYaml? QualityDefinition { get; [UsedImplicitly] init; }

@ -11,5 +11,5 @@ public interface IServiceConfiguration
QualityDefinitionConfig? QualityDefinition { get; }
IReadOnlyCollection<QualityProfileConfig> QualityProfiles { get; }
bool ReplaceExistingCustomFormats { get; init; }
bool ReplaceExistingCustomFormats { get; }
}

Loading…
Cancel
Save