CVS edit link for scarer

Please see Drupal book page http://drupal.org/node/827672. Also, is it possible to change my CVS user name to UQ-TEDI and withdraw the previous application I made for the export data module? I am no longer working on that module as I have switched jobs and do not wish to submit it to Drupal.

Comments

scarer’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new351.42 KB

This is the first code roll-out. It's still under development.

scarer’s picture

StatusFileSize
new351.35 KB

Here's another roll-out from today. I'm kind of working on this when I get a chance to. It's still under development.

scarer’s picture

StatusFileSize
new351.91 KB

code as of 6 18pm AEST 16-06-2010

avpaderno’s picture

Status: Needs review » Needs work
Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.

scarer’s picture

StatusFileSize
new360.88 KB

Code as of 1 51 PM AEST 17-06-2010

scarer’s picture

StatusFileSize
new322.11 KB

Code as of 3 30 PM AEST 18-6-2010

scarer’s picture

The JISC PM Module for Drupal has been created to facilitate the use of the JISC Project Management framework using Drupal.

The JISC Project Management framework has been developed for project managers working in the educational sector.

There are a number of core documents that are used to manage and document a project using this framework. There is also a stakeholder, risk, issue and change log that needs to be maintained as a spreadsheet or as some form of database/s. As well, the use of a gantt chart is encouraged to track tasks throughout projects that are managed with JISC.

Many of the documents have repeatable content that needs to be updated each time the project changes in several documents. As well, data is often repeated in multiple documents (i.e. stakeholders, project managers etc.) which also has to be updated throughout documents when something changes about the data that is being referenced (e.g. the head of an organisation is replaced). Consequently, it makes sense to find a way to update the content throughout all of the documents and also to re-use data instead of creating numerous instances of the same data that needs to be updated in every place an instance occurs.

Additionally, there is the potential in some of the document templates to enter sensitive stakeholder information which may restrict the potential audience for the content. Subsequent to this, it also makes sense to be able to export documentation for a particular audience that omits certain sensitive information so the project progress still remains transparent.

The module has been built based on the core document templates for JISC with forms for entering the documentation for projects so the data is kept in the database rather than stored in static documents that need to be revised and versioned.

The initial development roll-out was based on the Storm project management module (http://www.drupal.org/project/storm). However, the module has since changed a fair bit from the Storm structure and is using different data types and data. The schemas are also very different.

The code is available for download from http://github.com/downloads/scarer/JISC-PM-Drupal/100616_18-16_jiscpm.zip. This code is currently under development so use on production sites at your own peril.

More information about the JISC Project Management framework can be found at: http://www.jiscinfonet.ac.uk/infokits/project-management/checklist

scarer’s picture

StatusFileSize
new322.87 KB

latest upload before the weekend :D
4 09PM AEST 18-06-2010

avpaderno’s picture

Status: Needs work » Needs review

Remember to change status, when you upload a new version of the code.

scarer’s picture

StatusFileSize
new345.35 KB

Here is the latest version of the module.

avpaderno’s picture

Status: Needs review » Needs work
  • The points reported in this review are not in order or importance / relevance.
  • Most of the times I report the code that present an issue. In such cases, the same error can be present in other parts of the code; the fact I don't report the same issue more than once doesn't mean the same issue is not present in different places.
  • Not all the reported points are application blockers; some of the points I report are simple suggestions to who applies for a CVS account. For a list of what is considered a blocker for the application approval, see CVS applications review, what to expect. Keep in mind the list is still under construction, and can be changed to adapt it to what has been found out during code review, or to make the list clearer to who applies for a CVS account.
  1. Drupal variables are not initialized on hook_install().
  2. Hook implementation comments should be like the following one:
    /**
     * Implements hook_menu().
     */
    
  3. function jiscpm_perm() {
      return array(
        'jiscpm: access administration pages',
        'jiscpm: access data',
        'jiscpm: export documents',
      );
    }
    
    

    Permissions follow the schema <verb> <object>, where the verb is written in lowercase.

  4.   $items['jiscpm/dashboard'] = array(
        'title' => 'JISC PM',
        'description' => 'JISC PM',
        'page callback' => 'jiscpm_list',
        'access arguments' => array('jiscpm: access data'),
        'type' => MENU_NORMAL_ITEM
      );
    
    

    The description should be more descriptive, and help the users.

  5. See http://drupal.org/coding-standards to understand how a module should be written. In particular, see how the code should be formatted.
  6.     $project = node_load($records->project_nid);
        $requestor = user_load($records->rfc_requestor_uid);
      	$rows[] = array('<a href="../node/' . $records->nid . '">' . $records->title . '</a>', 
    
    

    Is the code showing the data of nodes for which the user has access?
    Why isn't the code using l()?

  7.    '#suffix' => '<div>Select "NO" if you do not need a Post Project Review and "YES" if you need one.</div>',
    
    

    That string should be in the description.
    Strings used in the user interface should be translated.

  8. Files available from third-party sites should not be committed in Drupal.org repository. Files licensed under a license different from GPL License (even if it is a compatible license) should not be committed in Drupal.org repositories.
  9.     //include php zipfile class
        include(drupal_get_path('module', 'jiscpm') . '/' . 'zipfile.php');
    
    

    There is a Drupal function, to use in such cases.

  10.   Header("Content-type: application/octet-stream");
      Header("Content-disposition: attachment; filename=ProjectDocuments.zip");
      echo $zipfile->file();
      exit(0);
    
    

    There is a Drupal function to use instead of header.
    The code should call module_invoke_all('exit'), before exit().

  11.       $results.= "<html>";
          $results.= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">";
          $results.= "<body>";
          //generate document body
          $results.= '<p><div align="center"><h1>Business Case Assessment</h1><p>&nbsp;</p><h2>Project name: ' . $project->title . '</h2><p>&nbsp;</p><h3>Date: ' . 
         date('d-m-Y') . '</h3></div></p><p>&nbsp;</p><p>&nbsp;</p>';
          $results.= "<p><h1>Introduction</h1></p><p>&nbsp;</p><p>The objectives of the " . $project->title . " include:</p><p>&nbsp;</p>";
          //print out actions and descriptions for project
          $results_a = db_query("SELECT a.action_title, a.action_description, a.action_deliverydate 
          FROM {jiscpmbca_action} a JOIN {jiscpmbca} bca ON a.bca_nid = bca.nid WHERE bca.project_nid = $id");
          while ($row_a= db_fetch_object($results_a)) {
            $results.= "<h2>Action: " . $row_a->action_title . "</h2><h3>Description: </h3><p>" . $row_a->action_description . "<h3>Delivery Date: </h3>" . 
            date('D d M Y', $row_a->action_deliverydate) . "</p><p>&nbsp;</p>";
          }
          //Project strategies
          $results.= "<p><h1>Strategies</h1></p><p>&nbsp;</p><p>" . $thisproject['bca_strategies'] . "</p><p>&nbsp;</p>";
          //Project Benefits
          $results.= "<p><h1>Benefits</h1></p><p>&nbsp;</p><p>" . $thisproject['bca_benefits']  . "</p><p>&nbsp;</p>";
          //Implications of not undertaking project
          $results.= "<p><h1>Implications</h1></p><p>&nbsp;</p><p>" . $thisproject['bca_implications'] . "</p><p>&nbsp;</p>";
          //Alternatives for project
          $results.= "<p><h1>Alternatives</h1></p><p>&nbsp;</p><p>" . $thisproject['bca_alternatives'] . "</p><p>&nbsp;</p>";
          //Organisational areas affected by project
          $results.= "<p><h1>Organisational Areas</h1></p><p>&nbsp;</p>";
          //Staff Changes
          $results.= "<p><h2>Staff Changes</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_staff_changes'] . "</p><p>&nbsp;</p>";
          //HR Related Issues
          $results.= "<p><h2>HR Related Issues</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_hr_related_issues'] . "</p><p>&nbsp;</p>";
          //Changes to Technology
          $results.= "<p><h2>Changes to Technology</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_changes_technology'] . "</p><p>&nbsp;</p>";
          //Process Changes
          $results.= "<p><h2>Process Changes</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_process_changes'] . "</p><p>&nbsp;</p>";
          //Internal Support Implications
          $results.= "<p><h2>Internal Support Implications</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_internal_support'] . "</p><p>&nbsp;</p>";
          //External Support Implications
          $results.= "<p><h2>External Support Implications</h2></p><p>&nbsp;</p><p>" . $thisproject['bca_external_support'] . "</p><p>&nbsp;</p>";
          //Risks
          $results .= "<p><h1>Risks</h1></p><p>&nbsp;</p><p><table><th>Risk</th><th>Description</th><th>Probability</th><th>Impact</th><th>Timescale</th><th>Residual Risk</th><th>Early Warning Signs</th><th>Owner</th><th>Category</th><th>Management Approach</th>";
    
    

    The code is generating too much HTML without to use any theme functions.

avpaderno’s picture

Status: Needs work » Closed (won't fix)

I am closing this issue due to lack of replies.

scarer’s picture

HI kiamlaluno,

Thanks for the feedback. I'm still working on it. I'll post up another version probably in a few weeks time. Just been busy with some other stuff at work.

Cheers,

Scarer

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes

Please read the following links as this is very important information about CVS applications.