Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2013 at 07:07 UTC
Updated:
12 Aug 2013 at 21:31 UTC
Name: Phased Contest
This module allows creation of a voting contest with voting and submission phases. It creates two content types.
Phased contest content type allows creation of entry form via Form Builder Field. Type also has fields for controlling if anonymous users can submit and entry and controlling the number of submissions per user.
Sandbox: http://drupal.org/sandbox/PieIsGood/1937046
Drupal Version: 7.x
Comments
Comment #1
mayank-kamothi commentedhi
Autometed Review:
Check this url http://ventral.org/pareview/httpgitdrupalorgsandboxpieisgood1937046git
Manual Review:
Thanks,
Mayank Kamothi
Comment #2
mnico commentedHi
Manual Review
Comment #3
pieisgood commentedThanks for the review!
Fixed all the warnings and errors located here http://ventral.org/pareview/httpgitdrupalorgsandboxpieisgood1937046git
Changed the hook_form_alter to hook_form_FORM_ID_alter
Switched to using theme_image
Added missing t()s
Thanks,
Jeffrey
Comment #4
pieisgood commentedThanks for the review!
1. Added hook_uninstall to remove variables.
2. Added README.txt
3. Creating phased_contest.api.php with documentation and examples.
Thanks,
Jeffrey
Comment #5
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
Comment #6
arnoldbird commentedHi PieIsGood,
The module seems like it could be useful but has some UI problems (possibly form_builder bugs) that make it difficult to test.
The module has a lot of dependencies (more than 10) so you might consider listing them on your project page as this may affect some people's decision about whether to use the module.
In the module file, consider using module_load_include() to include 'phased_contest.features.inc'.
Incomplete comment at line 62 of the module file.
At line 312 of the module file, you add CSS, but if I'm not mistaken I think you could also add it in phased_contest_form_phased_contest_entries_node_form_alter() by setting $form['#attached'] like in this example...
At line 388 and 391 I don't think you need that equals sign. That's the default.
At line 328 please write a clearer comment especially when you are highlighting something that you think might not work.
In the function doc blocks consider indicating when you are implementing _preprocess_. I don't know the standard way of doing that but it seems like a good idea.
You have untranslated strings at lines 223 and 232.
Line 422 is another place where your comment indicates you think something is inadequate, but you don't explain why.
Untranslated string at line 433.
I'm getting this error...
...at node/add/phased-contest.
I don't know if it's a bug in your module or form_builder, but I get "Field Name field is required." when I click a red X to delete a checkbox option. So it's not possible to delete a checkbox option.
This looks to be a form_builder bug I got when I clicked the fieldset button:
In any case, there are some problems in the UI that are blockers at least as long as the module depends on form_builder. At one point clicking the fieldset button seemed to clear all the inputs from the pane where you drag the inputs.
There is a broken "Edit Form" link showing at the bottom of the Create Phased Contest form.
Comment #7
pieisgood commentedThanks for the review. Here are the following items that I have addressed:
Once again, thank you for the review.
Comment #8
pieisgood commentedPlease see comment #7
Comment #9
kscheirerNice feature module, well documented and the code looks solid.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #10
kscheirerWould it be easier to use Webform and a scheduler module to handle this use case? Webform allows you to build a form easily, and stores the submissions, and can track # of entries / user. If you could describe the differences that would help let a user know why they would use your module instead.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #11
pieisgood commentedHey kscheirer,
Unless I'm mistaken you can't vote on webform entries, nor display them easily. Also you cannot have revisions on webforms. By using form_builder_field you can attach form_builder to a node field and use the built in revision mechanism. The purpose of this was for a client that wanted forms to have revisions and voting on the entries.
Comment #12
kscheirerThanks for the additional info, that does seem reasonable.
Thanks for your contribution, PieIsGood!
I updated your account to let you 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 get 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.
----
Top Shelf Modules - Crafted, Curated, Contributed.