Skip to content

Commit ed6fd64

Browse files
authored
Merge pull request #1986 from Danielle9897/RDoc-3176-revisionsBinCleaner
RDoc-3176 Revisions Bin Cleaner
2 parents 1e08a30 + 88d7114 commit ed6fd64

File tree

75 files changed

+3650
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3650
-405
lines changed

Documentation/5.3/Samples/csharp/Raven.Documentation.Samples/DocumentExtensions/Revisions/ClientAPI/Operations/ConfigureRevisions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ConfigRevisions()
3030
// ------------------------
3131
// * A revision will be created anytime a document is modified or deleted.
3232
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
33-
// * At least 100 of the latest revisions will be kept.
33+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
3434
// * Older revisions will be removed if they exceed 7 days on next revision creation.
3535
// * A maximum of 15 revisions will be deleted each time a document is updated,
3636
// until the defined '# of revisions to keep' limit is reached.
@@ -174,7 +174,7 @@ public async Task ConfigRevisionsAsync()
174174
// ------------------------
175175
// * A revision will be created anytime a document is modified or deleted.
176176
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
177-
// * At least 100 of the latest revisions will be kept.
177+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
178178
// * Older revisions will be removed if they exceed 7 days on next revision creation.
179179
// * A maximum of 15 revisions will be deleted each time a document is updated,
180180
// until the defined '# of revisions to keep' limit is reached.

Documentation/5.3/Samples/nodejs/document-extensions/revisions/client-api/operations/configureRevisions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function configureRevisions() {
1919
// ------------------------
2020
// * A revision will be created anytime a document is modified or deleted.
2121
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
22-
// * At least 100 of the latest revisions will be kept.
22+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
2323
// * Older revisions will be removed if they exceed 7 days on next revision creation.
2424
// * A maximum of 15 revisions will be deleted each time a document is updated,
2525
// until the defined '# of revisions to keep' limit is reached.

Documentation/5.4/Raven.Documentation.Pages/document-extensions/revisions/overview.dotnet.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,15 @@ Let's play with revisions a little to get a taste of its advantages.
178178
![Revision for Document Modification](images\revisions_modify-document.png "Revision for Document Modification")
179179

180180
5. **Delete the document**.
181-
Though you deleted the document, its **audit trail** is **not lost**: all revisions were moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182-
including a new revision (called "Delete-Revision"), created to indicate that the document was deleted.
183-
184-
To see the "orphaned" revisions (whose parent document was deleted):
181+
Though you deleted the document, its **audit trail** is **not lost**: all its revisions are moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182+
including a new revision (called "Delete Revision"), created to indicate that the document was deleted.
183+
184+
{INFO: }
185+
* A "Delete Revision" is created only if the deleted document has revisions.
186+
* If a document has no revisions, a "Delete Revision" will be created only if the Revisions Configuration is set and enabled for its collection.
187+
{INFO/}
188+
189+
To see the revisions created for the document before it was deleted:
185190
* Open the `Documents > Revisions Bin` section in the Studio
186191
* Click the deleted document's ID
187192

Documentation/5.4/Raven.Documentation.Pages/document-extensions/revisions/overview.js.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,16 @@ Let's play with revisions a little to get a taste of its advantages.
178178
![Revision for Document Modification](images\revisions_modify-document.png "Revision for Document Modification")
179179

180180
5. **Delete the document**.
181-
Though you deleted the document, its **audit trail** is **not lost**: all revisions were moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182-
including a new revision (called "Delete-Revision"), created to indicate that the document was deleted.
181+
Though you deleted the document, its **audit trail** is **not lost**: all its revisions are moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182+
including a new revision (called "Delete Revision"), created to indicate that the document was deleted.
183183

184-
To see the "orphaned" revisions (whose parent document was deleted):
185-
* Open the `Documents > Revisions Bin` section in the Studio
184+
{INFO: }
185+
* A "Delete Revision" is created only if the deleted document has revisions.
186+
* If a document has no revisions, a "Delete Revision" will be created only if the Revisions Configuration is set and enabled for its collection.
187+
{INFO/}
188+
189+
To see the revisions created for the document before it was deleted:
190+
* Open the `Documents > Revisions Bin` section in the Studio
186191
* Click the deleted document's ID
187192

188193
![Revisions Bin](images\revisions_revisions-bin.png "Revisions Bin")

Documentation/5.4/Raven.Documentation.Pages/document-extensions/revisions/overview.python.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,16 @@ Let's play with revisions a little to get a taste of its advantages.
178178
![Revision for Document Modification](images\revisions_modify-document.png "Revision for Document Modification")
179179

180180
5. **Delete the document**.
181-
Though you deleted the document, its **audit trail** is **not lost**: all revisions were moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182-
including a new revision (called "Delete-Revision"), created to indicate that the document was deleted.
181+
Though you deleted the document, its **audit trail** is **not lost**: all its revisions are moved to the [Revisions Bin](../../studio/database/document-extensions/revisions#revisions-bin),
182+
including a new revision (called "Delete Revision"), created to indicate that the document was deleted.
183183

184-
To see the "orphaned" revisions (whose parent document was deleted):
185-
* Open the `Documents > Revisions Bin` section in the Studio
184+
{INFO: }
185+
* A "Delete Revision" is created only if the deleted document has revisions.
186+
* If a document has no revisions, a "Delete Revision" will be created only if the Revisions Configuration is set and enabled for its collection.
187+
{INFO/}
188+
189+
To see the revisions created for the document before it was deleted:
190+
* Open the `Documents > Revisions Bin` section in the Studio
186191
* Click the deleted document's ID
187192

188193
![Revisions Bin](images\revisions_revisions-bin.png "Revisions Bin")

Documentation/5.4/Raven.Documentation.Pages/studio/database/document-extensions/revisions.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Click the revision's comparison button to compare it with other revisions:
9494
![Revision Comparison](images/revisions/revision-comparison.png "Revision Comparison")
9595

9696
1. **Exit revisions compare mode**
97-
Click to exit the comparison window and return to the revisions tTab in the Document View.
97+
Click to exit the comparison window and return to the revisions tab in the Document View.
9898
2. **Compare with**
9999
Click to select a revision to compare with.
100100
![Compare-with Drop List](images/revisions/compare-with-drop-list.png "Compare-with Drop List")
@@ -129,9 +129,8 @@ Click the revision's comparison button to compare it with other revisions:
129129
making them irrecoverable.
130130
4. **Deleted document ID**
131131
This is the ID of the document that was deleted.
132-
Click it to inspect the revisions created for this document,
133-
known as "orphaned revisions" since their parent document has been deleted.
134-
![Orphaned Revisions](images/revisions/orphaned-revisions.png "Orphaned Revisions")
132+
Click it to inspect the revisions created for this document.
133+
![Revisions of a deleted document](images/revisions/orphaned-revisions.png "Revisions of a deleted document")
135134
* Revisions stored in the revisions bin can be [inspected](../../../studio/database/document-extensions/revisions#revision-inspection)
136135
and cloned just like the revisions of a live document.
137136
5. **Change vector**

Documentation/5.4/Samples/csharp/Raven.Documentation.Samples/DocumentExtensions/Revisions/ClientAPI/Operations/ConfigureRevisions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ConfigRevisions()
3030
// ------------------------
3131
// * A revision will be created anytime a document is modified or deleted.
3232
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
33-
// * At least 100 of the latest revisions will be kept.
33+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
3434
// * Older revisions will be removed if they exceed 7 days on next revision creation.
3535
// * A maximum of 15 revisions will be deleted each time a document is updated,
3636
// until the defined '# of revisions to keep' limit is reached.
@@ -174,7 +174,7 @@ public async Task ConfigRevisionsAsync()
174174
// ------------------------
175175
// * A revision will be created anytime a document is modified or deleted.
176176
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
177-
// * At least 100 of the latest revisions will be kept.
177+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
178178
// * Older revisions will be removed if they exceed 7 days on next revision creation.
179179
// * A maximum of 15 revisions will be deleted each time a document is updated,
180180
// until the defined '# of revisions to keep' limit is reached.

Documentation/5.4/Samples/nodejs/documentExtensions/revisions/client-api/operations/configureRevisions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function configureRevisions() {
1919
// ------------------------
2020
// * A revision will be created anytime a document is modified or deleted.
2121
// * Revisions of a deleted document can be accessed in the Revisions Bin view.
22-
// * At least 100 of the latest revisions will be kept.
22+
// * Only the latest 100 revisions will be kept. Older ones will be discarded.
2323
// * Older revisions will be removed if they exceed 7 days on next revision creation.
2424
// * A maximum of 15 revisions will be deleted each time a document is updated,
2525
// until the defined '# of revisions to keep' limit is reached.

0 commit comments

Comments
 (0)