Skip to content

Overwrite 'doctrine:phpcr:workspace:import' set default to throw #3752

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

Merged

Conversation

wachterjohannes
Copy link
Member

@wachterjohannes wachterjohannes commented Feb 6, 2018

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets none
Related issues/PRs https://github.com/phpcr/phpcr-utils
License MIT
Documentation PR none

What's in this PR?

This PR overwrites the command doctrine:phpcr:workspace:import and set the default of uuid-behavior to throw.

Why?

This disables the regeneration of uuid while import from xml.

@wachterjohannes wachterjohannes force-pushed the hotfix/import-uuid-generation branch 2 times, most recently from 141692a to 7dfe17d Compare February 7, 2018 06:10
@wachterjohannes wachterjohannes changed the base branch from develop to release/1.5 February 7, 2018 06:11
@wachterjohannes wachterjohannes force-pushed the hotfix/import-uuid-generation branch from 7dfe17d to d44b7c8 Compare February 7, 2018 06:12
@wachterjohannes wachterjohannes changed the title [WIP] Overwrite 'doctrine:phpcr:workspace:import' set default to throw Overwrite 'doctrine:phpcr:workspace:import' set default to throw Feb 7, 2018
@wachterjohannes
Copy link
Member Author

@danrot @chirimoya the phpcr-utils are only compatible with php ^5.6. what should we do?

@wachterjohannes wachterjohannes force-pushed the hotfix/import-uuid-generation branch from d44b7c8 to 3868a95 Compare February 13, 2018 08:10
@wachterjohannes
Copy link
Member Author

phpcr/phpcr-utils is released in 1.2 and 1.3 release

@wachterjohannes wachterjohannes force-pushed the hotfix/import-uuid-generation branch from 3868a95 to 9c939fb Compare February 13, 2018 08:17
@wachterjohannes
Copy link
Member Author

@danrot this is ready to review

Copy link
Contributor

@danrot danrot left a comment

Choose a reason for hiding this comment

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

If I checkout this change and import already existing data I get the following error:

[PHPCR\ItemExistsException]
There already is a node with uuid 51114c8d-1927-41db-82d8-16ca70e97447 in this workspace.

That's the desired behavior, right? So somebody would have to delete this data first before import it afterwards?

@@ -64,7 +64,8 @@
"symfony/symfony": "2.8.10",
"symfony/phpunit-bridge": "2.8.10",
"symfony/monolog-bundle": "2.8.10",
"jackalope/jackalope": "1.2.8 || 1.3.0 || 1.3.1"
"jackalope/jackalope": "1.2.8 || 1.3.0 || 1.3.1",
"phpcr/phpcr-utils": "1.2.1 - 1.2.10 || 1.3.1 || 1.3.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have such a strange version constraint here? Do you think 1.3.3 will already break again? Same for jackalope/jackalope, although that was already like that before.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, sry, didn't see that this is the conflict section 🙈

@danrot danrot merged commit a0d41c0 into sulu:release/1.5 Feb 16, 2018
@wachterjohannes wachterjohannes deleted the hotfix/import-uuid-generation branch February 16, 2018 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants