01-12-2012 05:25 PM
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
01-13-2012 06:19 AM
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.
01-13-2012 10:43 AM
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)
01-13-2012 11:34 AM
The UI logic is what you describe, increment the version into the Edit tab is incrementing the version of the document displayed...
01-13-2012 11:34 AM
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.
01-13-2012 11:57 AM
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.
01-13-2012 12:40 PM
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...
01-14-2012 01:14 AM
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.
01-18-2012 08:57 AM
In the base product the initial document you upload is a draft.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.