Skip to content

A tool for managing lists of Drupal modules and themes in a complex environment. Do you have a separate security review for modules/themes before you use them? Are you constantly wondering to yourself "Self, I wonder if I should use Module X or Module Y or if someone in my organization is already using one of them"?

License

Notifications You must be signed in to change notification settings

greggles/epm_project_management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epm_project_management is an "Enterprise Project Management" tool to help manage
"projects" in use within an "enterprise".

Glossary
========
"Projects" are used to identify "Project" nodes on drupal.org. Things like 
themes and modules.

"Enterprises" are just organizations, but this tool is most likely only a 
valuable tool to help communicate if you have a large number of Drupal site
builders, a separate security review team, and maybe your folks are distributed
geographically or you have high turnover/use consultants making it hard for
everyone to stay in agreement on which modules can or can't be used.

Installation
============
1. Place the module files in the usual place for your site (sites/all/modules)
2. Enable the module (admin/build/modules or admin/build/features)
3. Grant permissions for "EPM" nodes on admin/user/permissions
4. Grant permissions for flags (some roles are included, but review them)
5. Create some nodes (node/add/epm-project)
6. Note how the node view page has awesome meta-data about the project
7. Visit example.com/epm-project-list to see a list of projects
8. Rejoice in your organized enterprise glory

Optional steps:
By default the module gathers data about the 6.x version of a module. You can
change that by setting the variable 

variable_set('epm_project_management_major_version', '6'); 

You are also encouraged to add an exposed filter to the view at 
/epm-project-list for the "Project purpose" vocabulary. This cannot
be done in the module because vocabularies don't get consistent ID numbers.


Inspiration
===========
See http://growingventuresolutions.knaddison.com/blog/drupal-module-selection-enterprise-lists-and-processes.html

Data Structure
==============
Data is stored in a handful of tables.

* title, nid, vid in the {node} table where type = 'epm_project';
* Project name is content_type_epm_project.field_epm_project_shortname_value
* The two default flags will have unknown flag ID values, but their names are
  epm_approved_security and epm_in_use.
* The scraped meta-data is stored in epm_project_management_data

So, to find the ratio of open to closed bugs of projects that are "in use":

SELECT n.title, epm.field_epm_project_shortname_value, open_bug_count / closed_bug_count 
FROM epm_project_management_data epm INNER JOIN node n on epm.nid = n.nid 
INNER JOIN flag_content fc ON fc.content_type = 'node' AND fc.content_id = n.nid
INNER JOIN flags f ON fc.fid = f.fid WHERE f.name = 'epm_in_use';

You could shorten that query up a bit by first finding the flagid:

SELECT fid FROM flags f WHERE f.name = 'epm_in_use';

On a fresh installation that should be 2.

Then reduce the query:

SELECT n.title, open_bug_count / closed_bug_count 
FROM epm_project_management_data epm INNER JOIN node n on epm.nid = n.nid 
INNER JOIN flag_content fc ON fc.content_type = 'node' AND fc.content_id = n.nid
WHERE fc.fid = 2;

And depending on the audience you should always add a WHERE clause for 
published nodes:

AND n.status = 1;

Troubleshooting
===============
You must have allow_url_fopen enabled. If not, you may not get any data scraped 
from drupal.org. This problem may be hidden by the use of an @ to suppress
messages in
  @$doc->loadHTMLFile($url);
  
However without that @ the parsing of files will complain loudly about every 
unclosed tag and improper nesting which happens too often to leave enabled.

Development
===========
Greg Knaddison of [Growing Venture Solutions](http://growingventuresolutions.knaddison.com/)
Tell me how much you love the module @greggles on Twitter.
Tell me about problems or ideas in the issue queue (ideally with patches!)

About

A tool for managing lists of Drupal modules and themes in a complex environment. Do you have a separate security review for modules/themes before you use them? Are you constantly wondering to yourself "Self, I wonder if I should use Module X or Module Y or if someone in my organization is already using one of them"?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages