Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Oct 2015 at 10:57 UTC
Updated:
19 Jul 2016 at 16:24 UTC
Jump to comment: Most recent
Comments
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxichionid2569457git
We 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 #3
ichionid commentedI know that this is a bot :p
Fyi when running drush coder-review --minor --release guardian_news
The response that I get is:
Severity minor, Drupal Coding Standards
sites/all/modules/guardian_news/guardian_news.module:
+252: [minor] There should be no trailing spaces
It's a minor fix that I can make. I guess the idea with the comment from the bot is that I should go in and code review other projects :-)
Comment #4
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.
Comment #5
ichionid commentedThere is only an indentation warning coming up. ESlint requires 6 lines while another checker requires 8. This is minor issue and I believe that the issue should be considered fix :-)
Comment #6
klausiThis application is not fixed, did you mean to set it to "needs review"? See the workflow: https://www.drupal.org/node/532400
Comment #7
ichionid commentedYes @klausi you are correct :-)
Comment #8
skullhole commentedAutomated Review
http://pareview.sh/pareview/httpgitdrupalorgsandboxichionid2569457git shows the below issues:
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
However, README.md lacks the most of the sections suggested in the README Template.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #9
skullhole commentedComment #10
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.
Comment #11
ichionid commentedWorking actively on it.
Comment #12
ichionid commentedComment #13
bren001 commentedThe project page does not provide a helpful overview of the module. See Module documentation guidelines for guidance. I think you need to outline how to register for an API key with some info an a link to the Guardian API site.
The README file is equally brief and you should refer to the above page to rectify this.
You do not implement hook_help() for additional module help via the Drupal UI
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.
Comment #15
ichionid commentedComment #16
ichionid commentedMade fixes according to comments. Making the addition of angular more flexible is in the @todo list.
Comment #17
ichionid commentedComment #18
Theodoros_ commentedDear ichionid I installed and tested your module.
I found a functionality issue. Articles sections selection doesn't work when AngularJS is enabled.
It doesn't display only articles from the selected sections as I checked on configuration page.
On the other hand everything looks as it must be when AngularJS is disabled.
Project Application Review template follows:
Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Follows the guidelines for in-project documentation and/or the README Template.
configuration section doesn't exist.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
1. Think to add configure property on info file (it's optional but really useful for the user -configuration link-)
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #19
klausiLooks like the AngularJS issue can be a standard bug report but I think we should not consider that an application blocker. Anything else that you found or should this now be RTBC instead?
Comment #20
gisle(*) All text pulled from the web (i.e. the Guardian) is printed directly to the screen without any sanitization. This makes the site vulnerable to XSS exploits. While the Guardian is a well-respected newspaper, all text originating from outside sources must be sanitized before printed to the screen. Adding "PAReview: security" tag. Make sure you read Handle text in a secure fashion.
(*) Module does not delete its DB variables when being uninstalled - there is no hook_uninstall. This is very annoying and must IMHO be fixed before promotion.
(*) All user facing text must run through t() for translation. Please check all your strings. Here is one you missed:
(*) The following line does not provide a valid default value:
which results in the following warning:
when
guardian_news_sectionsis undefined. Instead, it should be:(*) In Drupal, drupal_dirname is preferred over PHP dirname.
(*) In Drupal, drupal_json_decode is preferred over PHP json_decode.
(+) The application summary and README says: "Check the api at http://explorer.content.guardianapis.com/?api-key=test"
However, http://explorer.content.guardianapis.com/ no longer exists (it looks like it has changed to http://content.guardianapis.com/search.
(+) The API URL is now hardcoded into the module:
drupal_add_js(array('guardian_latest_news' => array('url' => 'http://content.guardianapis.com/search')), 'setting');should it not be user configurable in case it changes again?
(+) There is a sub-directory named
nbprojectincluded in the Git repo that seems to contain materials that is not used by the project. It should be deleted (or its purpose documented - if it serves some purpose that has eluded me).(+) Do not include
.gitignorein the repo you push (make it ignore itself).(+) The
README.mddoes not display bullet points correctly when rendered by the Markdown filter. These lines:should be:
(+) The README doesn't really explain how to get started viewing or searching for Guardian contrent on a Drupal site (only how to do this on Guardian's demo site). I was able to figure out (from reading the source) that the that the module creates 'Latest articles from The Guardian' block for the content pulled from the Guardian that you may configure to be visible. However, this step should have been explained in the README in the section about setting up the module.
( ) The markup (produced by
guardian_news.tpl.php)looks like this:Putting a H3 tag inside a HTML list item is unorthodox and will (without additional styling) show a single bullet followed by whitespace, and then the heading on a new line. My personal opinion is that this is very ugly. Since it is controlled by the template file, it is trivial to change it, but why not provide a more pretty look and feel "out of box"?
(+) Confirming the bug (found by Theodoros_ in #18) that articles sections selection doesn't work when AngularJS is enabled. It need to be working (or the angular option removed) before making a stable release.
(+) There is "Show more:" checkbox, but ticking it does not have any effect. It need to be working (or the "Show more"-option removed) before making a stable release.
The starred items (*) above are big issues and warrant the application going back to Needs Work. Items marked with a plus sign (+) should be addressed before a stable project release, but does not block the project from being promoted to a full project. The rest of the comments are only recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #21
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.