forked from umbraco/Umbraco-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v9/dev' into v9/bugfix/dont-reload-page-with-edit-user-…
…button # Conflicts: # src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
- Loading branch information
Showing
126 changed files
with
8,116 additions
and
2,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/Umbraco.Core/Configuration/Models/ContentVersionCleanupPolicySettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.ComponentModel; | ||
|
||
namespace Umbraco.Cms.Core.Configuration.Models | ||
{ | ||
/// <summary> | ||
/// Model representing the global content version cleanup policy | ||
/// </summary> | ||
public class ContentVersionCleanupPolicySettings | ||
{ | ||
private const bool StaticEnableCleanup = false; | ||
private const int StaticKeepAllVersionsNewerThanDays = 7; | ||
private const int StaticKeepLatestVersionPerDayForDays = 90; | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether or not the cleanup job should be executed. | ||
/// </summary> | ||
[DefaultValue(StaticEnableCleanup)] | ||
public bool EnableCleanup { get; set; } = StaticEnableCleanup; | ||
|
||
/// <summary> | ||
/// Gets or sets the number of days where all historical content versions are kept. | ||
/// </summary> | ||
[DefaultValue(StaticKeepAllVersionsNewerThanDays)] | ||
public int KeepAllVersionsNewerThanDays { get; set; } = StaticKeepAllVersionsNewerThanDays; | ||
|
||
/// <summary> | ||
/// Gets or sets the number of days where the latest historical content version for that day are kept. | ||
/// </summary> | ||
[DefaultValue(StaticKeepLatestVersionPerDayForDays)] | ||
public int KeepLatestVersionPerDayForDays { get; set; } = StaticKeepLatestVersionPerDayForDays; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Umbraco.Cms.Core | ||
{ | ||
public static partial class Constants | ||
{ | ||
public static class Sql | ||
{ | ||
/// <summary> | ||
/// The maximum amount of parameters that can be used in a query. | ||
/// </summary> | ||
/// <remarks> | ||
/// The actual limit is 2100 | ||
/// (https://docs.microsoft.com/en-us/sql/sql-server/maximum-capacity-specifications-for-sql-server), | ||
/// but we want to ensure there's room for additional parameters if this value is used to create groups/batches. | ||
/// </remarks> | ||
public const int MaxParameterCount = 2000; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Umbraco.Cms.Core.Models.ContentEditing | ||
{ | ||
[DataContract(Name = "historyCleanup", Namespace = "")] | ||
public class HistoryCleanup | ||
{ | ||
[DataMember(Name = "preventCleanup")] | ||
public bool PreventCleanup { get; set; } | ||
|
||
[DataMember(Name = "keepAllVersionsNewerThanDays")] | ||
public int? KeepAllVersionsNewerThanDays { get; set; } | ||
|
||
[DataMember(Name = "keepLatestVersionPerDayForDays")] | ||
public int? KeepLatestVersionPerDayForDays { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Umbraco.Core/Models/ContentEditing/HistoryCleanupViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Umbraco.Cms.Core.Models.ContentEditing | ||
{ | ||
[DataContract(Name = "historyCleanup", Namespace = "")] | ||
public class HistoryCleanupViewModel : HistoryCleanup | ||
{ | ||
|
||
[DataMember(Name = "globalEnableCleanup")] | ||
public bool GlobalEnableCleanup { get; set; } | ||
|
||
[DataMember(Name = "globalKeepAllVersionsNewerThanDays")] | ||
public int? GlobalKeepAllVersionsNewerThanDays { get; set; } | ||
|
||
[DataMember(Name = "globalKeepLatestVersionPerDayForDays")] | ||
public int? GlobalKeepLatestVersionPerDayForDays { get; set; } | ||
} | ||
} |
Oops, something went wrong.