Skip to content

Commit

Permalink
RavenDB-21547 Set reasonable default Revisions limits on new configur…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
ml054 committed Nov 27, 2023
1 parent e1e4f58 commit 72b1681
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class revisionsConfigurationEntry {
return new revisionsConfigurationEntry("",
{
Disabled: false,
MinimumRevisionsToKeep: null,
MinimumRevisionsToKeep: 1000,
MinimumRevisionAgeToKeep: null,
MaximumRevisionsToDeleteUponDocumentUpdate: null,
PurgeOnDelete: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ <h3 data-bind="text: isDefault() ? 'Default Document Revisions' : (isConflicts()
<div class="bg-info padding padding-xs margin-top small" data-bind="visible: humaneRetentionDescription">
<div data-bind="html: humaneRetentionDescription"></div>
</div>

<div class="bg-warning padding margin-top small flex-horizontal" data-bind="visible: !limitRevisions()">
<div class="flex-start text-warning">
<i class="icon-warning"></i>
</div>
<div>
No limit has been set on the number of revisions to keep.<br />
An excessive number of revisions will lead to increased storage usage and may affect system performance.
</div>
</div>
<hr>
<div class="text-right margin-top">
<button class="btn btn-default" data-bind="click: $root.exitEditMode"><i class="icon-cancel"></i><span>Cancel</span></button>
Expand Down

0 comments on commit 72b1681

Please sign in to comment.