cancel
Showing results for 
Search instead for 
Did you mean: 

History - Archived Versions Behavior

mcaissie_
Confirmed Champ
Confirmed Champ

I would like to know if its possible to restore to the first version of a document. It seems that after modification of a document the first 1.0+ version is not archived , only the subsequent.

Here is the test i made;

1-Create Document

Summary Version 1.0+
Event Log  :  Creation  (no version mentionned)
Archived Versions :  No archived version

2-Modify Document

Increment minor version
Summary Version 1.1
Event Log:  Creation    1.1
	        Modificaton 1.1
Archived Versions : 1.1 

It seams that the archived version is done on the modified version instead of archiving the version before the modification. So the original 1.0+ version does not appear in the history and is not recoverable.

Is this a bug or i am missing something ?

tx Michel

8 REPLIES 8

Olivier_Grisel
Star Contributor
Star Contributor

Which version of Nuxeo are you using? On 5.5 I have sequence of user actions / document states:

Create a document:

Version of the live document 0.0 (in the summary tab)
Event Log  :  Creation  (no version mentioned)
Archived Versions :  No archived version

Perform edit on the document without version increment:

Version of the live document 0.0 (in the summary tab)
Event Log  :  Creation + Modification (no version mentioned)
Archived Versions :  No archived version

There is a UI glitch here: there is no + after the 0.0 version number as there is no difference since the last archived version as there is no archived version.

Make another edit on the document with major version increment:

Version of the live document 1.0 (in the summary tab)
Event Log  :  Creation + Modification + Modification + Version creation
Archived Versions :  1.0

Make another edit on the document without version increment:

Version of the live document 1.0+ (in the summary tab)
Event Log  :  Creation + Modification + Modification + Version creation + Modification
Archived Versions :  1.0

Apart from the lack of the + after the first edit, the UI seems consistent to me.

I am on 5.4.2, but i see the same behavior with your test. The archived version is a copy of the document after modification not before modification. (I assume that we edit with increment)

The UI logic is what you describe, increment the version into the Edit tab is incrementing the version of the document displayed...

0.0 is not a version and is not archived. 0.0 means "initial draft". If you want something, anything, archived you have to explicitly ask for it.

So if i create a document(description = original) ; save it, then make a modification(description=modification);save it, i cannot recuperate the document with description = original, because the first archived version is description = modification.

This is effectively the default behavior... But you can create a listener with 4 line of code that will archive each version of your document...

I have to agree with mcaissie here - I think that the base nuxeo product should save an iteration 0 of the document the first time a change is made to the document in question, and that the version 0 should be fully recoverable. Yes, it's possible to write a very simple listener to achieve this right now, but I think it's an important enough use case to warrant inclusion in the base product.

In the base product the initial document you upload is a draft.