Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] child version cascade tests (fails) #85

Closed
wants to merge 2 commits into from
Closed

[WIP] child version cascade tests (fails) #85

wants to merge 2 commits into from

Conversation

fazy
Copy link

@fazy fazy commented Feb 28, 2013

Tests to demonstrate how I believe version cascade should work.

For now, I've added a child node to the 'versioned' node in the fixtures and added extra test cases to 15_Versioning/VersionTest.php. However, if it's better I'll be happy to move these tests to a separate test class (and with separate fixtures if needed).

Also, does the CND type look correct?

[phpcr:versionCascade] > nt:unstructured
    + * multiple copy

@@ -26,6 +26,17 @@
<sv:property sv:name="foo" sv:type="String">
<sv:value>something</sv:value>
</sv:property>
<sv:node sv:name="version_child">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>phpcr:versionCascade</sv:value>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The child can probably can be nt:unstructured rather than phpcr:versionCascade...

@dbu
Copy link
Member

dbu commented Mar 26, 2013

ftr fazy mailed to the jackrabbit mailinglist, but got no replies. he since did the workspace clone method which was much easier to achieve and helps with draft and production already.

i'd suggest we leave this open in case somebody ever wants to hunt the issues down, then he has some tests to start with...

@fazy
Copy link
Author

fazy commented Mar 26, 2013

Here's my posting on the Jackrabbit list:
http://www.mail-archive.com/users@jackrabbit.apache.org/msg19256.html

I hope to also use versioning in due course, i.e. a workflow where the all the changes, version history, revert to earlier version take place in a "preview" workspace, and a publish action causes these changes to be updated to the "published" workspace.

So any insight on the above would be useful.

@dbu
Copy link
Member

dbu commented Mar 26, 2013

just a note (i guess you already saw that, but for others): when
cloning, there is one version history throughout all workspaces. which
is very cool, because then we can have a workspace where the node is
constantly updated when edited and we can update it to another workspace
when ready. with the version history we could still go back and check
old versions or restore them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants