Versioning - and editing the control document

82 views
Skip to first unread message

Nic Wise

unread,
Apr 26, 2012, 9:37:54 AM4/26/12
to rav...@googlegroups.com
Hi there

we have versioning enabled, but it was setup without the versioning document (Raven/Versioning/DefaultConfiguration). We just made the Plugins folder, dropped the DLL's in, and it worked.

Now, I want to change the versioning to only have 5 versions of anything. I've tried editing Raven/Versioning/DefaultConfiguration, but it can't be found (it's on all document, so there isn't appear to be a Document-Type-specific config). I've tried creating that, but while the studio allows me to do it, it can then never find it...

So... how do I configure this? preferably without writing an app to do it.

We are running in a tenant database, if that helps.

Ta

Nic

Oren Eini (Ayende Rahien)

unread,
Apr 27, 2012, 7:18:41 PM4/27/12
to rav...@googlegroups.com
If you don't have a "Raven/Versioning/DefaultConfiguration" document, we just use hard coded defaults.
You can just create  Raven/Versioning/DefaultConfiguration  through the UI.

Nic Wise

unread,
Apr 28, 2012, 6:04:55 AM4/28/12
to rav...@googlegroups.com
Thanks. I tried that, and it allowed it to be saved. However, if I try
to edit the document, it fails to load. If I make a new one, it allows
it to be saved over the top again.

Can it be loaded? And edited? Am I missing something?
--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2

Oren Eini (Ayende Rahien)

unread,
Apr 28, 2012, 6:15:46 AM4/28/12
to rav...@googlegroups.com
It is just a standard doc
What do you mean, you can't load?

Nic Wise

unread,
Apr 28, 2012, 7:05:53 AM4/28/12
to rav...@googlegroups.com
1. Go into the tenant database
2. Hit "Edit Document". Enter "Raven/Versioning/DefaultConfiguration"
3. "Document not found"
4. Make a new document. Id (at the top): Raven/Versioning/DefaultConfiguration
{
Exclude: false,
Id: "Raven/Versioning/DefaultConfiguration",
MaxRevisions: 5
}

(from memory. Its this:
http://ravendb.net/docs/server/bundles/versioning but in JSON format)

5. Save. Works: "Document saved, do you want to update a system document? etc"

6. Load document: "Raven/Versioning/DefaultConfiguration". Document not found.

Using #888

We have replication documents in this tenant DB, too, and I can load,
edit and view them fine.

On Sat, Apr 28, 2012 at 11:15, Oren Eini (Ayende Rahien)

Itamar Syn-Hershko

unread,
Apr 28, 2012, 1:35:03 PM4/28/12
to rav...@googlegroups.com
We will take a look at this tomorrow, thanks for reporting

Nic Wise

unread,
Apr 28, 2012, 2:17:54 PM4/28/12
to rav...@googlegroups.com
Thanks!

I assume if we make a version configuration with a maxrevisions of 5,
and a document has 10 already, it'll just delete the other 5?

Oren Eini (Ayende Rahien)

unread,
Apr 29, 2012, 5:18:25 AM4/29/12
to rav...@googlegroups.com
Actually, no.
It does't check for the old revisions beyond the range it was given.
The old revisions would stay there, untouched.

Oren Eini (Ayende Rahien)

unread,
Apr 29, 2012, 5:30:59 AM4/29/12
to rav...@googlegroups.com
Nic,
I am unable to reproduce this on our end.
Can you please try again, this time with Fiddler open, and send us the SAZ file?

Nic Wise

unread,
Apr 29, 2012, 12:58:40 PM4/29/12
to rav...@googlegroups.com
I'll give it a go tomorrow. Thanks!

On Sun, Apr 29, 2012 at 10:30, Oren Eini (Ayende Rahien)

Nic Wise

unread,
Apr 29, 2012, 12:59:36 PM4/29/12
to rav...@googlegroups.com
Is there any way to purge old revisions then? Or do we just loop thru
all the document, find their revisions, and remove the older ones? (ie
do it manually)

On Sun, Apr 29, 2012 at 10:18, Oren Eini (Ayende Rahien)

Oren Eini (Ayende Rahien)

unread,
Apr 30, 2012, 12:02:52 AM4/30/12
to rav...@googlegroups.com
You have to do this manually.
We don't consider the fact that we need to change the size that we have, and doing the check all the time would be costly.

Nic Wise

unread,
Apr 30, 2012, 4:51:12 AM4/30/12
to rav...@googlegroups.com
And, of course, now I can't reproduce it, on either server (live or
the backup one)

:(

Comments added to the ticket - feel free to close it. Sorry!

On Mon, Apr 30, 2012 at 05:02, Oren Eini (Ayende Rahien)
Reply all
Reply to author
Forward
0 new messages