-
Notifications
You must be signed in to change notification settings - Fork 29
Added option to control the uuid-behavior #184
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
Added option to control the uuid-behavior #184
Conversation
@dbu what do you think? |
e437994
to
e481347
Compare
e481347
to
75110d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. the functionality is perfect as is.
can you please add something to the help section with a very short summary how the modes are called and what each mode does?
); | ||
$uuidBehavior = $input->getOption('uuid-behavior'); | ||
if (!array_key_exists($uuidBehavior, self::UUID_BEHAVIOR)) { | ||
$output->writeln(sprintf('<error>UUID-Behavior "%s" is not supported</error>', $uuidBehavior)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we please add another line saying 'Supported behaviors are %s', implode(', ', self::UUID_BEHAVIOR)
@dbu what do you think? and are all of the description correct? |
i tweaked the wording a little bit and merged on the command line. tagged as 1.4.0, thanks a lot for the contribution! |
handled. Following options are available: | ||
|
||
* <info>new</info> recreate the uuid foreach node | ||
* <info>remove</info> remove the node from imported dataset on uuid collision |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just fyi: remove does remove the existing node on collision, not the one being imported, according to the jcr specification. i changed the doc accordingly.
This PR adds an option to control the uuid-behavior on import. To avoid a BC-break the default is set to
IMPORT_UUID_CREATE_NEW
.