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
Add hook for sharing and migration function #214
Conversation
@whikloj Thanks for the feedback! I think I've fixed it all; we should be good to go now. Before this last commit, the new hook would fire twice every time you viewed a collection where the hook could be called. I printed the value of Excluding fake:pid before triggering the hook solves the problem. |
Looks like I mistook the file where the constant was defined. Now it's fixed, and all is well... It works just fine. Any other issues for your review, @whikloj? |
Note that the Travis failure is for only one job - php 5.3.3 - which is the build itself failing and not any syntax errors. It looks like this is happening across all or most of our modules. |
@whikloj Following up again on this -- anything else before it's approvable? The Travis failure (only happening on the very last php 5.3.3 build) looks like a problem with Travis.yml rather than my code:
|
I'll try to get to actually testing this this week. |
Forgot to mention in testing instructions that devel should be enabled if taking the dd() approach (but I'm guessing you know that @whikloj). |
Just a bump - still needs testing. Would much appreciate some eyes on it! |
@bondjimbond I can test this today. |
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.
Works as advertised.
Thanks @mjordan! Once this is merged, islandora_westvault will be just about ready for a serious test. |
Travis is failing on the PHP 5.3.3 / Fedora 3.8.1 combination with:
Anyone know how we work around this? |
I'm sorry @bondjimbond I got swamped, thank you @mjordan |
@mjordan This has been happening for a lot of modules lately. People have been discussing whether to simply drop that test, since 5.3.3 is EOL anyway. I believe we're merging PRs that fail that check now; anyone able to confirm/deny that? |
Thanks @whikloj I'll add this to my recent Islandora Bagit PRs as well. |
We're good to go.
|
@bondjimbond shouldn't #216 get merged before this one, so this one passes? I can merge #216 now if that's the case, then merge this one. |
I don't think the order really matters, but it's up to you. If you merge #216, I'll pull it down and add the commit here to get the pass. |
OK, I'll merge #216 now. |
Correction, I just approved #216, so I'll merge in 24 hours. |
Woohoo, finally passed! |
@bondjimbond can you close the JIRA ticket? |
JIRA Ticket: (https://jira.duraspace.org/browse/ISLANDORA-2410)
What does this Pull Request do?
Creates a new hook,
hook_islandora_basic_collection_share_migrate
, which provides the object being migrated and its new parent to whatever module is calling it.What's new?
New hook exists. It can be called.
How should this be tested?
Enable devel
Call the hook in some other module. For example, in your module "islandora_my_module", add the function:
Migrate an object to another collection.
Checking
/tmp/drupal_debug.txt
should show the two parameters have been passed to your function.Interested parties
@Islandora/7-x-1-x-committers