From d852422328d412afaff3c71bfe8e48bce4dddfee Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 31 Jan 2019 00:09:30 +1100 Subject: [PATCH] removes CloneXmlContent from umbraco settings --- build/NuSpecs/tools/Web.config.install.xdt | 8 +++----- .../Configuration/UmbracoSettings/ContentElement.cs | 7 +------ .../Configuration/UmbracoSettings/IContentSection.cs | 2 -- .../Configurations/UmbracoSettings/ContentElementTests.cs | 5 ----- .../Configurations/UmbracoSettings/umbracoSettings.config | 2 -- src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs | 2 +- 6 files changed, 5 insertions(+), 21 deletions(-) diff --git a/build/NuSpecs/tools/Web.config.install.xdt b/build/NuSpecs/tools/Web.config.install.xdt index 2f6fb8f61c..74a614275f 100644 --- a/build/NuSpecs/tools/Web.config.install.xdt +++ b/build/NuSpecs/tools/Web.config.install.xdt @@ -4,13 +4,11 @@
- -
- +
-
+
@@ -25,7 +23,7 @@ - + diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs index 6e18c369d8..356b009d5c 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs @@ -36,10 +36,7 @@ namespace Umbraco.Core.Configuration.UmbracoSettings [ConfigurationProperty("allowedUploadFiles")] internal CommaDelimitedConfigurationElement AllowedUploadFiles => GetOptionalDelimitedElement("allowedUploadFiles", new string[0]); - - [ConfigurationProperty("cloneXmlContent")] - internal InnerTextConfigurationElement CloneXmlContent => GetOptionalTextElement("cloneXmlContent", true); - + [ConfigurationProperty("GlobalPreviewStorageEnabled")] internal InnerTextConfigurationElement GlobalPreviewStorageEnabled => GetOptionalTextElement("GlobalPreviewStorageEnabled", false); @@ -76,8 +73,6 @@ namespace Umbraco.Core.Configuration.UmbracoSettings IEnumerable IContentSection.AllowedUploadFiles => AllowedUploadFiles; - bool IContentSection.CloneXmlContent => CloneXmlContent; - bool IContentSection.GlobalPreviewStorageEnabled => GlobalPreviewStorageEnabled; string IContentSection.DefaultDocumentTypeProperty => DefaultDocumentTypeProperty; diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs index 147f5745da..4f3013b966 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs @@ -25,8 +25,6 @@ namespace Umbraco.Core.Configuration.UmbracoSettings IEnumerable AllowedUploadFiles { get; } - bool CloneXmlContent { get; } - bool GlobalPreviewStorageEnabled { get; } string DefaultDocumentTypeProperty { get; } diff --git a/src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs b/src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs index f6aa1fe852..8d6aa0af6b 100644 --- a/src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs +++ b/src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs @@ -74,11 +74,6 @@ namespace Umbraco.Tests.Configurations.UmbracoSettings { Assert.IsFalse(SettingsSection.Content.GlobalPreviewStorageEnabled); } - [Test] - public void CloneXmlContent() - { - Assert.IsTrue(SettingsSection.Content.CloneXmlContent); - } [Test] public void PreviewBadge() diff --git a/src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config b/src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config index fb723117ba..7acb547b1c 100644 --- a/src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config +++ b/src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config @@ -40,8 +40,6 @@ true - true - In Preview Mode - click to end diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs index e7aa4a216e..6dec9f2448 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs @@ -263,7 +263,7 @@ namespace Umbraco.Tests.LegacyXmlPublishedCache private bool SyncFromXmlFile => false; // whether _xml is immutable or not (achieved by cloning before changing anything) - private static bool XmlIsImmutable => Current.Configs.Settings().Content.CloneXmlContent; + private static bool XmlIsImmutable => true; // whether to keep version of everything (incl. medias & members) in cmsPreviewXml // for audit purposes - false by default, not in umbracoSettings.config