This module allows Drupal users to sign nodes for acknowledgement. For this purpose, a checkbox is used; this checkbox is located before or after the text of the node. Administrators can select the node types to be managed by the module; also, administrators can view a users table with specification of which users signed the current node.
I searched for similar projects and I found "Signed nodes", but this project is oriented to single node, while my project is oriented to node type. So I think these projects are not real competitors.
Project page and screenshots: http://drupal.org/sandbox/pagolo/1945276.
Git clone command: 'git clone http://git.drupal.org/sandbox/pagolo/1945276.git sign_for_acknowledgement'
Reviews
http://drupal.org/node/1987552#comment-7391910
http://drupal.org/node/1978804#comment-7400232
http://drupal.org/node/1751752#comment-7402240
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | acknowledgements.PNG | 6.95 KB | pagolo |
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 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
beljaako commentedHi Pagolo,
Nice module. Here's my manual review.
- Check out issues reported by parreview: http://ventral.org/pareview/httpgitdrupalorgsandboxpagolo1945276git
- It seems you're using italian names for form elements. I think it would be better to keep it English, so we can understand ;-)
- Maybe a little late, but I think you could use the field API to accomplish the same. Have you thought about that? It would be nice, because you could use the functionality in a much broader perspective.
- Is there a way to change the output of the checkbox & table? Would be nice to be able to use a template for this.
- You're showing a list of all users, using your own query. This way blocked users are also shown.
- The settings form has the option: First name field, as inserted in ACCOUNT SETTINGS->MANAGE FIELDS. Couldn't you present a dropdown list of possible fields?
- Have you thought about privacy? You're showing every user full names of other users including date and time when they read the document.
- There is no way to undo an acknowledgement, not even by an administrator.
- Acknowledgements are not being deleted when running hook_uninstall.
- Something to think about: when I have signed for acknowledgement, and the document is changed, it's still signed. I think the acknowledgement should be removed.
Comment #3
pagolo commentedThank you very much for your suggestions. They are valuable and I will try to implement them. About privacy: users full names are shown only to administrator (alternatively to groups that are selected in permissions section). If the module behaves differently, please tell me.
Comment #4
pagolo commentedUpdate #1
----------
...as suggested by beljaako
Comment #5
SamChez commentedOverall I think the concept behind the module is great and I can see potential specifically in places with a complicated workflow. The thing I'm most concerned with, as beljaako pointed out and forgive me for saying it twice, is that after editing the document in question the signed check box is still checked. When the article in question is edited the box should become unchecked for all users who have already acknowledged it. This would prevent things like posted proposals being edited without the knowledge of users who have already read the document.
Comment #6
pagolo commentedThank you, SamChez, it is fixed. When a node is updated, now all related acknowledgements are deleted, so the checkbox becomes unchecked.
After that, I'm trying to give the administrator the option to delete a single (or multiple) acknowledgement. Unfortunately I'm experiencing some difficulties, because I'm working with a table and not all rows have an acknowledgement to be deleted. Any suggestions? for example, could be useful the "tableselect" forms item?
Thanks in advance...
Comment #7
pagolo commentedReview bonus comment.
Comment #8
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:
<script>alert('XSS');</script>as first name then there is a nasty javscript popup when the table is displayed. You need to sanitize all user provided input before printing. Please read http://drupal.org/node/28984 again. Adding security tag, please don't remove it, we keep that for statistics and to show examples of security problems.Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #9
pagolo commentedMany thanks for your helpful review, Klausi, especially for security hints. Now I have 'enough' job to do ...
Comment #10
pagolo commentedUPDATE #2
-----------
- Acknowledgements are removed when updating a node (beljaaco, SamChez)
- empty function removed (klausi #3)
- filter_xss removed (false positive in .install file, klausi #4)
- usign 'value' instead of 'hidden" (klausi, #2)
Comment #11
pagolo commentedUPDATE #3
-----------
- is_numeric() check for $rows_limit removed (klausi #5)
(Now it depends on a selectbox, so no need to be checked, I think)
- "sign_for_acknowledgement_form(): I think the checkbox #title string should be configurable." (klausi #1)
Done.
- Now fields for first and last name are selectboxes. (beljaaco, klausi #6)
- XSS vulnerability fixed (klausi, #7)
Comment #12
pagolo commentedUPDATE #4
-----------
beliaako says:
- now output of checkbox snd table is configurable via theme() function
- now user who access the table (normally an administrator) can add/delete acknowledgements
Comment #13
pagolo commentedComment #13.0
pagolo commentedAdded reviews
Comment #13.1
pagolo commentedadded my review link
Comment #13.2
pagolo commentedreview link added
Comment #14
pagolo commentedreview bonus
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.
But otherwise looks RTBC to me now. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to zzolo as he might have time to take a final look at this.
Comment #16
pagolo commentedklausi says:
... to play it safe, I changed 'EnsurePagerDefault' to 'SignForAcknowledgementPagerDefault'...
Thank you
Paolo
Comment #16.0
pagolo commentedlast review added
Comment #16.1
pagolo commentedfirst review added
Comment #16.2
pagolo commentedreview added
Comment #17
pagolo commentedReview bonus.

Note: I'm planning to move the acknowledgements table to a page of the administration interface; the node should appear as in the picture below.
Please, let me know if you think it is a good idea.
Comment #18
klausino objections for more than a week, so ...
Thanks for your contribution, pagolo!
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.
Comment #19
pagolo commentedMany thanks to you, klausi! I'm proud to be a Drupal module developer!
Paolo
Comment #20.0
(not verified) commentedreview added