The Bongo module provides API key storage and functions that interact with the Bongo API. Bongo is a GPS-based, real-time passenger information system that allows riders to find current bus locations as well as predictions for upcoming bus arrivals for Iowa City (Iowa), Coralville (Iowa) and the University of Iowa.
The Bongo Panes module (included in the Bongo project) creates a ctools content type for displaying Bongo prediction information in something like Panels. This pane also provides a refresh predictions link to manually refresh the pane of predictions and also automatically refreshes them every 30 seconds.
As far as I know, there are no competing modules for this functionality.
Project page: https://drupal.org/sandbox/bneil/1807738
Git repository:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/bneil/1807738.git bongo
Projects reviewed:
Workbench Moderation Buttons: https://drupal.org/node/2106515#comment-7940613
POEditor: https://drupal.org/node/2102775#comment-7940655
Moodle Views: https://drupal.org/node/2092371#comment-7940921
HTTP Response Headers: https://drupal.org/node/2108495#comment-7958237
Field Conditional State: https://drupal.org/node/2106069#comment-7958293
Media Watermark: https://drupal.org/node/2036579#comment-7958455
Comment | File | Size | Author |
---|---|---|---|
#4 | bongo-todolist-2075353-4.patch | 2.05 KB | btopro |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxbneil1807738git
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 #2
kasalla CreditAttribution: kasalla commentedHi bneil, i looked at your module and only find one thing :)
bongo.admin.inc
--------------------------
line 15: If you store variables in the database (with system_settings_form) you should have a .install file and delete the variables in the hook_uninstall().
Kind regards
kasalla
Comment #3
bneil CreditAttribution: bneil commented@kasalla - thank you for your review. I've updated the module with the mssing .install file.
I've also fixed the pareview.sh issues- I apparently did not have PHP code sniffer installed properly so it was silently failing on my initial review. I've fixed the coding standards issues, except for one error dealing with arguments with default values with the function that creates ajax commands. The function appears to fail if the $ajax argument is not first so I'm leaving it as is for now.
Comment #4
btopro CreditAttribution: btopro commentedHere's my feedback as a patch so you have a list of todos. This also removes some tab chars in the bongo_panes.js file. These are mostly calls for refactoring some things to make your life easier down the road. I'm not suggesting you use this module but you may gain insight into some of my feedback by picking through https://drupal.org/project/cis_connector
Comment #5
bneil CreditAttribution: bneil commentedbtopro- thank you for the review!
I've committed your change to bongo_panes.js and have filed your suggestions into the project's issue queue.
Comment #6
tibezh CreditAttribution: tibezh commentedHi bneil!
You can find the results of the automated report at http://pareview.sh/pareview/httpgitdrupalorgsandboxbneil1807738git.
OR
I´ve attached the automated report as text file to this comment.
Other:
Kind regards
Comment #7
bneil CreditAttribution: bneil commentedI've made some significant changes after btopro's comments and have fixed further PARreview issues. There is currently a false positive with hook_requirements being in .module, which seems to be a fine alternative for runtime phases- even the core node module is doing it that way. There is also what I believe to be another false positive with the ajax response 'type' being the first argument in the function.
The 7.x-1.x branch has been set as the default branch since the beginning of this review process, but I ended up deleting the master branch as that was creating a false positive.
Comment #8
btopro CreditAttribution: btopro commentedhook_requirements should be in the module's .install I believe so that should then be resolved.
Comment #9
bneil CreditAttribution: bneil commentedI've moved hook_requirements back into .install and cleaned it up a bit.
Comment #10
genjohnson CreditAttribution: genjohnson commentedHi bneil :)
I agree with btopro, hook_requirements should be in the .install file. According to https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_requirements/7,
There are a couple of periods missing...one at the end of bongo.module line 135 ("An array of routes") and one at the end of bongo_predictions.inc line 63 ("Shown by default").
I enabled bongo and bongo_panes on a fresh site install, and everything worked as expected.
Comment #11
bneil CreditAttribution: bneil commentedgenjohnson,
Thanks for the review!
I've added the missing periods. I've also changed one of those form items from a select to checkbox to be consistent with the rest of the form.
Comment #12
Enxebre CreditAttribution: Enxebre commentedHi bneil,
after take a look to bongo module, just a little thinking: Probably creating "bongo_build_predictions_table($stopid, $rows, $agency)" as a render element through "hook_theme" instead of being a custom function would provide more integration and flexibility to developers.
Hope this is useful.
Regards!
Comment #12.0
bneil CreditAttribution: bneil commentedAdded a project review link
Comment #12.1
bneil CreditAttribution: bneil commentedAdded POEditor review link
Comment #13
bneil CreditAttribution: bneil commentedAdded review bonus tag.
Comment #14
bneil CreditAttribution: bneil commentedAdded validation to the API key form.
Enxebre: Thank you for the review. I'll add your suggestion to my queue of future feature requests. Thanks!
Comment #15
klausiReview of the 7.x-1.x branch:
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.
manual review:
Otherwise looks pretty good. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #16
bneil CreditAttribution: bneil commentedFixed formatting issues as identified above.
Also added t() function where necessary in bongo_predictions_build_title() and in bongo_build_predictions_table().
http://drupalcode.org/sandbox/bneil/1807738.git/commitdiff/f96964098bdf9...
http://drupalcode.org/sandbox/bneil/1807738.git/commitdiff/4ce3002e4284f...
Also using check_plain() from data returned and presented from API:
http://drupalcode.org/sandbox/bneil/1807738.git/commitdiff/2b28443c7bda2...
Comment #16.0
bneil CreditAttribution: bneil commentedAdded Moodle Views to reviewed list
Comment #16.1
bneil CreditAttribution: bneil commentedAdded another project reviewed.
Comment #16.2
bneil CreditAttribution: bneil commentedAdded field conditional state to reviewed modules
Comment #17
bneil CreditAttribution: bneil commentedAdding review bonus.
Comment #18
klausiCool, looks RTBC to me know!
Assigning to patrickd as he might have time to take a final look at this.
Comment #19
patrickd CreditAttribution: patrickd commentedbongo.module
Please don't make a line break within translatable strings, very ugly to handle. (btw, the 80 characters max. rule only applies for comments - not code. you can remove the newline here completely)
What could possibly go wrong? (please add error handling and proper logging)
beside that I couldn't find any blockers..
Thanks for your contribution! :-)
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.
Comment #20
patrickd CreditAttribution: patrickd commented*yay*
(forgot status change)
Comment #21.0
(not verified) CreditAttribution: commentedAdded Media Watermark review