Project page: http://drupal.org/sandbox/vikramaditya234/1446396
GIT: git.drupal.org:sandbox/vikramaditya234/1446396.git
Drupal version: 6.x

This project helps in implementing the organization structure. This structure will be duplicate the actual organizational hierarchy present in reality. This project can act as reference for other modules to implement workflows etc.
Current Implementation:
1. Addition of multiple hierarchies
2. Addition of user-supervisor combination as record.
3. Creation of multiple supervisors for single user

CommentFileSizeAuthor
#3 review.txt1.83 KBdarrell_ulm

Comments

szantog’s picture

Status: Needs review » Needs work

A quick review after checking your repository:

  1. You are working on master branch. You should use feature branch: 6.x-1.x. See http://drupal.org/node/1127732
  2. The ; $Id$ is not necessary, this was used for old cvs system in dorg.
  3. I'm not sure, but imho files[] = organization_structure.module doesn't need, especially in drupal 6. All .module file of enabled modules are included during the drupal bootstrap process.
  4. I don't know what your module will do exactly, but in schema, there isn't any index defined. I ask: Won't this cause performance issue?
  5. You use some SELECT query on functions, but no static cache used.
  6. 'file' => 'organization_structure.module' on organization_structure_menu no need, if the menu callback is on the same module file.

And a question too:
You defined "admin/orgstructure/%". Then you build an organization structure object. Won't be better admin/orgstructure/%org, like node/%node on node.pages.inc? (This need some other change, eg. need to write own _load function, so this is really question, not a 'musthave' thing..)

At the end, you should check the coding standards, see http://ventral.org/pareview/httpgitdrupalorgsandboxvikramaditya234144639...

vikramaditya234’s picture

Status: Needs work » Needs review

Following changes are done:
1. Creation a new branch 6.x-1.x-beta
2. Re-factoring of code to integrate security issues and ventral comments (http://ventral.org/pareview/httpgitdrupalorgsandboxvikramaditya2341446396git-6x-1x-beta)
3. Removed CVS related tags
4. Added README.txt file
5. Added indexes in tables, where needed

Response to other comments:
1. Static cache is not added as the current functionality is not very costly for DB and it will be done in future releases, in its much evolved form
2. hook_load() is not used as the menu item is currently only for configuration purposes only. Might need to use this in later stages of the module.

darrell_ulm’s picture

Status: Needs review » Needs work
StatusFileSize
new1.83 KB

Hello, first off used the online auto scanner. Found only a trivial coding style issue, not a problem. These are included in the attached file. Feel free to run the scanner yourself to resolve these issues.

For Drupal coding conventions please refer to:
http://drupal.org/coding-standards#comment
http://drupal.org/node/1354

The more main issue is that you need to setup master to just have README. Backing up everything is wise before you do this of course. See:
http://drupal.org/node/1127732

The project page:
http://drupal.org/sandbox/vikramaditya234/1446396
could use some better description and documentation, and/or make a separate documentation page.

Should be pretty close after the branch move and a few fixes.

patrickd’s picture

do NOT wrap text in hook_menu funktions with t()!

@darrellulm
please be more carefull with your copy/pasting
he was already instructed to pareview and and coding standarts -> he already moved into a version specific branch
for simple modules that can be installed just as any other, there is absolutely no need for a install.txt

such reviews won't be accepted for review bonus

setting back to needs review, as there are only minor issues

darrell_ulm’s picture

@patrickd OK, before I think the MASTER was supposed to be empty with a README file only. Good to know this has changed and MASTER can be used again as HEAD, and thanks for the new information.

patrickd’s picture

.. the master should be empty but you wanted him to move to a version specific branch what he already did..

back to topic now

vikramaditya234’s picture

Moving issue out of review as I will be updating the code soon. Don't want waste reviewers time.

klausi’s picture

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

Closing due to lack of activity. Feel free to reopen if you are still working on this application.