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

Implement copyResource -- Address #10. #20

Merged
merged 8 commits into from
Dec 7, 2015
Merged

Implement copyResource -- Address #10. #20

merged 8 commits into from
Dec 7, 2015

Conversation

ruebot
Copy link
Member

@ruebot ruebot commented Nov 8, 2015

See: #10

Still need to get TravisCI hooked up proper.

You can see the build here. It appears to be passing. But, same as with #19, I'm not confident I'm doing things right here.

tags @Islandora-CLAW/7-x-2-x-committers

@ruebot ruebot added this to the Community Sprint - 01 milestone Nov 8, 2015
* @return string
*/
public function copyResource($uri,
$destination);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add transactionality here too. Might want to do a lot of copying inside a transaction. All you'll have to do is call prepareUri in your implementation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool. I psyched myself out of including it 😄

// Ensure uri takes transaction into account.
$uri = $this->prepareUri($uri, $transaction);
// Create destinsation URI
$destination_uri = "Destination: " . $destination;
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll need to prepare this URI, as well.

@daniel-dgi
Copy link
Contributor

Looks good. Merging.

daniel-dgi added a commit that referenced this pull request Dec 7, 2015
Implement copyResource -- Address #10.
@daniel-dgi daniel-dgi merged commit 33edb8f into Islandora:master Dec 7, 2015
@ruebot ruebot deleted the issue-10 branch December 7, 2015 16:28
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