Closed (fixed)
Project:
Project
Version:
6.x-1.x-dev
Component:
Releases
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2011 at 16:40 UTC
Updated:
24 Oct 2011 at 06:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
rfayWell... need the project shortname instead of going scrambling for it.
Comment #2
damien tournoud commentedSeems to make more sense to me to add this as a Project release hook in package_releases(). Could you roll a patch for
package-release-nodes.php?Comment #3
damien tournoud commentedComment #4
rfayOK, here is the patch for project. I've tested this with project_dependency module and it seems to work fine.
I'm pretty sure this can do no real harm on its own.
The matching implementation in project_dependency has been committed.
Comment #5
bfroehle commentedI hate to slow the momentum here, but shouldn't this new hook be documented in project.api.php?
Here's a start:
Comment #6
rfayThanks, @bfroehle, here it is with your hook doc.
Comment #7
dwwThanks for the patches here. I'm totally down with invoking a hook at this point.
However, any reason not to just pass in the fully-loaded project node as the first argument? Your use-case might only care about the shortname, but I can certainly imagine needing to at least know the project nid, if not all sorts of other things about the project, if I was watching this hook...
Cheers,
-Derek
Comment #8
rfay#7: I think that makes perfect sense. Here's the reroll.
Comment #9
dwwPerfect. I just wanted to ask instead of changing it myself since I know this change will require a change over at project_dependencies.
I fixed the code style on the PHPDoc block, then committed and pushed:
http://drupal.org/commitlog/commit/122/297dd4494600141f272aa01ad2208b51f...
Thanks!
-Derek
Comment #10
rfayThanks so much!
Comment #12
rfayJust a question: We think we're getting close to pushing for deployment of project dependency. Are there blockers for Project deployment that will contain this?
Comment #14
damien tournoud commentedThe last patch has a bug: if a project is not explicitly provided on the command line,
$project_nodeis not going to be initialized, as debugged by jthorson (++) in #1241704-25: Deploy Project Dependency, Project and PIFT on d.o.Patch attached for review.
Comment #15
rfayOK, this version seems to work ok in reality.
There was a slight error on the project node load. Also we noted that there were lots of failures loading sandboxes, as they weren't excluded from the query. This patch excludes the sandboxes. If that's not OK, we can rip that part out.
Comment #16
rfayNo, we decided that wasn't needed; the sandboxes are successfully excluded by the existing query. Not sure what happened to us.
This is the needed improvement to #14.
Comment #17
damien tournoud commentedCommitted.
Comment #18
damien tournoud commentedNow deployed.
Comment #19
rfayThanks @DamZ!
Comment #21
dwwPlease remove the "needs drupal.org deployment" tag once things are actually deployed.
Thanks,
-Derek