Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2013 at 20:51 UTC
Updated:
4 Oct 2013 at 06:41 UTC
This module is an integration for the plista RecommendationAds.
https://drupal.org/sandbox/chr.fritsch/2029955
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/chr.fritsch/2029955.git plista
cd plista
drush en -y plista
Go to admin/config/services/plista and configure the module. After that there are two possibilities to use this module. It can be used as a field or as a block.
Plista javascript url: http://static.plista.com/fullplista/3fcddedee162e4669cd13695.js
Plista widgetname: plista_widget_standard_1
If you could see the following on a node you selected, everything works fine.

| Comment | File | Size | Author |
|---|---|---|---|
| plista_success.png | 24.79 KB | chr.fritsch |
Comments
Comment #1
fluxsauce commentedAutomatic review of the 7.x-1.x branch:
No problems, very cool!
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://ventral.org/pareview - PAReview.sh online service
Code review:
Project application checklist - https://drupal.org/node/1587704
Pretty solid overall, haven't done a functionality test yet.
Comment #2
chr.fritschThanks for the fast response.
2. plista.admin.inc - validate plista_api_key, plista_domain_id (assuming they're required and should be no longer than XXX)
They are not required. If they are set, updates are working. But thats not required. The widget is working without that, too.
All other points are fixed. Here is the commit diff:
http://drupalcode.org/sandbox/chr.fritsch/2029955.git/commitdiff/bf420fe...
Comment #3
rolando.caldas commentedHello chr.fritsch
My manual review:
.install
lines 10ss
Extra code. You create an array and later a foreach to delete the variables. You can changed to
less codelines and less cpu use.
.module lines 135ss
Coding standards "Line length and wrapping" (https://drupal.org/coding-standards#linelength): "Control structure conditions may exceed 80 chars, if they are simple to read and understand"
.module lines 148 149
You can use check_plain instead strip_tags
.admin.inc line
if (module_exists('token')) {useless. The token module is a dependency so alway must exists.
Comment #4
chr.fritschFixed all that stuff
Comment #5
fluxsauce commentedActually, I disagree with #3 on this, the foreach is just fine. Less CPU use? That's not a valid criticism, especially in the context of an uninstall. The original method was clean; populate an array with what you want to do, then run the same command on every value on the array.
No action needed, don't change it back or anything; I just want you to know that a foreach to delete variables is just fine.
Comment #6
chr.fritschI wrapped a fieldset around all the fields. Now, i just have two variables to delete. But yeah, i agree with you FluxSauce, less CPU is not a valid argument.
Comment #7
willieseabrook commentedStarting review
Comment #8
willieseabrook commentedHi @chr.fritsch
Looks like a cool module, nicely documented and worked as stated when I installed and tested it. Here's my notes from code review.
1. plista_help
This is more of a question - is this approach for hook_help reading a READEME.txt a standard pattern in Drupal? I've not seen it before, but it may be.
2. plista_node_view
2.1 Drop the first empty line (there's a couple of other examples of that too)
2.2. #type => "markup" is not required, as that is the default
3. watchdog calls
For things like " 'Unknown node: ' . $node->title" see the documentation from function watchdog()
For an example of this approach see code from salesforce_pull.module (in salesforce module)
Hope this helps.
Regards,
Willie
Comment #9
willieseabrook commentedComment #10
chr.fritschThanks for your comments. I've fixed the points 2 and 3.
Comment #11
artem_sylchuk1. You should use current_path() instead of $_GET['q'] and drupal_substr() or truncate_utf8() instead of substr in plista_view_widget() function.
2. Use url() to generate external URL at line 198 in plista_perform_update() function.
$url = 'http://farm.plista.com/api/item/' . $action . '/' . $node->nid . '?' . drupal_http_build_query(array(
'domainid' => $plista_advanced['plista_domain_id'],
'apikey' => $plista_advanced['plista_api_key'],
'status' => FALSE,
));
Comment #12
chr.fritschThanks for the review. Fixed it
Comment #13
kscheirerNo problems found, nice integration module!
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #14
stborchertThanks for your contribution, Christian!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.