Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2013 at 13:47 UTC
Updated:
18 Sep 2014 at 16:28 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
brice_gato commentedHello HaroldRKnieriem,
eg.
Change them into :
Line 10 : add $form parameter to your function hubspot_blog_integration_admin_settings_form($form, $form_state)
Line 15 : add t() function : t('No Blog Selected')
Line 126 - 127 : Breaking the line within a string, within the t() function is not so cool for translation!
Line 14 and 30 : variable $module_prefix seems to be not used (t() on 'hubspot_blog_integration')
Line 15 - 16 - 17 : The values set out will be the same for all module's users!? These values coming from where and why are same to
all users?
Line 83 to 95 : your permissions ("administer hubspot blog" and "use PHP for tracking visibilit") are unused. Delete this hook or use
your permissions.
Line 148 to 152 : It will be better if you use lowercase letters in your parameters
Line 164 : add t() function : t('No Blog Selected')
Line 208 : If you handle boolean values - use TRUE/FALSE instead of 0/1.
If you need integer - cast them before they are needed - (int) TRUE is still much more readable.
Line 215 : Do not use db_select() for simple static queries, use db_query() instead. See http://drupal.org/node/310075
Line 449 : add t() function
Line 475 : use constant REQUEST_TIME instead of php time() function
Comment #3
HaroldRKnieriem commentedThank you brice_gato for the review.
I have fixed the issues reported.
Please review the module again at your convenience and let me know if there are more issues I need to address.
Comment #4
jorgegc commentedHi @HaroldRKnieriem,
I guess I will start my review by making a few suggestions about the way you work with git. The first thing that stood out when I looked at your repository viewer was the commit messages. You shouldn't use the same message for all your commits, even though you are fixing things that were suggested by the same person. Ideally you would like to end up with a nice list of meaningful messages that help you identify exactly what was fix in each one of the commits.
For more info about how you should be making commits to Drupal, check out this page: https://drupal.org/node/52287
In regards to the code itself, it looks pretty good but I am going to make a few comments:
1. In hubspot_blog_integration.admin.inc
- Line 12: If $module_prefix is supposed to work as a const I would move it out the function and define an actual const.
- Line 13: Is there a reason to translate ":" in ": Connected"?
- Lines 15, 16, 82: Having a string (--node--) sprinkled around the good is not a good practice. Define and use a const instead.
- Line 97: I would replace the hard-coded options array with a helper function that returns an array to make the code easier to maintain.
2. In hubspot_blog_integration.install
- Line 9: You should have "Implements hook_install()." first and in another line a description of what you are doing in the hook. Hook documentations should always start with "Implements hook_NAME().".
3. In hubspot_blog_integration.module
- Line 8: Do you really want the client ID hard-coded in there?
- Lines 62 and 72: I would replace the underscores with dashes in the paths
- Lines 67 and 76: I suggest you implement hook_perm and define a permission that lets users access these menu items instead of using "administer site configuration". It gives the users a more granular control over who can do what on the site.
- Line 93: Define a const for this URL to make the code easier to maintain.
- Lines 96, 126: Define a const for this error number, same reason as above.
- Line 151, 181: Replace "--node--" with the const you will define.
- Lines 346, 353: Always use "Implements hook_NAME()." and in another line describe what you are using the hook for.
- Line 448, 511: Another hard-coded URL that could be replaced with a const.
I think that is it. At least it is everything that I have managed to spot :-)
Cheers!
Comment #5
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #6
HaroldRKnieriem commented@Jorgegc,
Thank you for your review and for your suggestions with using the git repository.
First I will explain my use of hard-coding the client ID into a constant. This is my developer ID for HubSpot and must be included when requesting access from the client site to the HubSpot API.
As for the rest of your suggestions I have fixed them.
I requesting a new review this module.
Thank you again.
Comment #7
kscheirerhubspot_blog_integration_to just
node_save($node);twice?----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #8
HaroldRKnieriem commentedI have listened to the recommendations here and from user review, and have made some significant changes.
I have run the code though PAReview.sh for a high-level check of my code.
Please review this module at your earliest convenience.
Thank you,
Harold
Comment #9
amreana commentedCan i have a test Portal Id - so i can continue my review?
Comment #10
HaroldRKnieriem commented@amreana
The HubSpot developer test portal credentials are:
Login: testapi@hubspot.com
Pass: HubSpot
PortalID: 62515
Thank you for testing this module,
Harold
Comment #11
amreana commentedManual review:
Module is clean and simple, well commented, gets the job done, i personally like it, i give the GO!
Comment #12
HaroldRKnieriem commented@amreana, et all
Thank you to all that help in reviewing and testing this module. I have been recently working on updating the module so that it will have access to HubSpot's COS blogging tool. I hope to have updates soon.
Again thank you all,
Harold
Comment #13
gisleThis sounds like a feature that should live in the existing HubSpot project. Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. Please open an issue in the HubSpot issue queue to discuss what you need. You should also get in contact with the maintainer(s) to offer your help to move the project forward. If you cannot reach the maintainer(s) please follow the abandoned project process.
If that fails for whatever reason please get back to us and set this back to "needs review".
PS: There is a broken link to HubSpot.com on your project page.
Comment #14
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.