Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 456627

Summary: [PMI] Some projects have an empty Project Links block
Product: Community Reporter: Edouard Poitras <edouard>
Component: Project Management & PortalAssignee: Edouard Poitras <edouard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: edouard, wayne.beaton
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
URL: http://projects.eclipse.org
Whiteboard:
Bug Depends on:    
Bug Blocks: 456831    

Description Edouard Poitras CLA 2015-01-04 12:50:31 EST
There should be at least a link to the proposal in the Project Links block on this page: https://projects.eclipse.org/projects/iot.leshan/governance
Instead there is an empty block.
Comment 1 Wayne Beaton CLA 2015-01-05 18:20:55 EST
There are two ways of specifying a proposal.

For older projects, there is a field in which a URL can be provided. These proposals are generally not found in the PMI, but are instead under http://www.eclipse.org/proposals

For newer projects--ones that have a proposal in the PMI--the proposal document contains a "project" field (i.e. a back pointer). See #project_proposals_project_links

e.g.

	if ($proposal = Project_Proposal::getForProject($project->node->nid)) {
		$url = 'node/' . $proposal->node->nid;
	} elseif (!$url = $project->getProposalUrl()) return;
Comment 2 Edouard Poitras CLA 2015-02-02 17:09:30 EST
(In reply to Wayne Beaton from comment #1)
> e.g.
> 
> 	if ($proposal = Project_Proposal::getForProject($project->node->nid)) {
> 		$url = 'node/' . $proposal->node->nid;
> 	} elseif (!$url = $project->getProposalUrl()) return;

Thanks Wayne, that helped.

This bug is now fixed.