The autoarch module is for archivating nodes. Essentially the node gets a flag or sign, if that is actual or archive, and that data
will be saved to the database. There are two options for the user to choose, whether he/she wants to archivate the contents, also these
options can be performed in several ways. The first possibility or mode of it, is the manual archivation, where selecting the preferred
value, the content can be 'Actual' or 'Archive'. This kind of mode doesn't include time-bond or time-limit, instead of the other mode,
the automatic archivation. The latter case, the user has the chance to attach a date/time to the content, which defines how long the
node should be actual, because in default all nodes are actual till the user changes to other value. Other value then can be set like
the two option above.
The mode of the archivation can be set by two ways:
-one-by-one differently at the node/add or node/edit node forms inside 'Archive' fieldgroup
OR
-through node-operations/bulk operations for bunch of nodes, by selecting the proper option from 'Update options' ("admin/content/node")
The user also has the possibility to add a new filter to a new or existing view, by adding the 'State of the node' filter from the
'Autoarch' group. This filter checks the state of the node depending if the node is actual or archive.
This module can be useful for portals where meathers the chance for archivating and the content's information actuality.
My project page: http://drupal.org/sandbox/eFeS/1123170
GiT repository: http://git.drupal.org:sandbox/eFeS/1123170.git , branch:6.x-1.x
The module is for Drupal 6.
Reviews of other projects:
(1)
http://drupal.org/node/1265854#comment-5904800
http://drupal.org/node/1545640#comment-5911814
http://drupal.org/node/1496298#comment-5914692
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Screenshot.png | 25.21 KB | spike22 |
| #10 | Screenshot-1.png | 35.25 KB | spike22 |
| #10 | Screenshot-2.png | 37.97 KB | spike22 |
| #10 | Screenshot-3.png | 45.84 KB | spike22 |
| #10 | Screenshot-4.png | 45.55 KB | spike22 |
Comments
Comment #1
efes commentedComment #2
luxpaparazzi commentedYou should do a spellcheck of your project applications intro!
Review of the 6.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. Get a review bonus and we will come back to your application sooner.
I'll do a manual review shortly.
Comment #3
luxpaparazzi commentedI checked at your code, looks not bad, here some comments:
drupal_set_message(t("Your archivation settings for the selected node (nodeID: %nid) could NOT been updated, because the node's type is not selected at <a href='/admin/settings/autoarch'>Autoarch settings page</a>!", array('%nid' => $nid)), 'error');You should use the l() function for adding links, also don't submit any html to the t() function!
if (!empty($nodes) AND !empty($state))Use "&&" instead of "AND"
The response time for a review is now approaching 4 weeks.
Get a review bonus and we will come back to your application sooner.
See: http://drupal.org/node/1410826
You could for example start by evaluating my own project:
http://drupal.org/node/1302786
Comment #4
efes commentedThanks for the fast initial review!
The lines of README.txt were shortened, expect the one, which contains a long link, which is mush more readable in it's present state, I suppose.
All occurrences of "AND" were replaced by "&&".
Comment #5
spike22 commentedYes, thanx for the quick reply luxpaparazzi!
What I agree with you in are the followings:
What I do NOT agree or accept are the followings:
There's in the drupal documentation how to use the t() function: http://api.drupal.org/api/drupal/includes%21common.inc/function/t/6
It says:
So after all, the html tags ARE allowed in t() function. What I can do or maybe you meant like that, I can change the href's value to a string like this:
Is that what you meant or is it OK for you then?
I know it's not up to you or anyone, or anyone's fault, but I just copied the synthax from Domain Access' Domain Views moduls filter. Just to let you know what I mean this one is from domain_views_handler_filter_domain_access_gid.inc:
so the synthax is the same, I can nothing do about it, and honestly I don't want eather :)
If it's ok for a huge module like domain access, then it's ok for me too...
Please let me know if after this I'm wrong!
Thanks again!
Comment #6
luxpaparazzi commentedI would at least check the following erros:
It's better checking and comparing with core modules, as there is no guarantee that contrib modules got every coding standard correct.
Well ok maybe it is accepted, but won't make live easier for people doing translations, that's why I personaly don't like it, but it's more a personal opinion.
---
The response time for a review is now approaching 4 weeks.
Get a review bonus and we will come back to your application sooner.
See: http://drupal.org/node/1410826
You could for example start by evaluating my own project:
http://drupal.org/node/1302786
Comment #7
efes commentedThanks for the reply.
OK, we'll check our code and write back shortly.
Comment #8
spike22 commentedThanks for the quick reply!
I've made some changes in the code, now only two ERRORs left after Code Sniffer:
The first one is an address to a documentation in the README file, and the second is views own form function, what I can do with that, is makeing a function substitution. The question for that 'does it worth' ? I can make the changes but i don't feel that really necessary.
I've also made changes in the t() function mentioned above.
Comment #9
efes commentedComment #10
spike22 commentedI attached some screenshots for introducing the features of this module.
Comment #10.0
spike22 commentedreview bonus #1 added
Comment #11
luxpaparazzi commentedI suppose it's not worth it, and would make comparing with view module harder, it's not the goal of naming conventions. I suppose in the views module it is something which rested in there since several years. And changing would bring compatibility issues with other modules.
Comment #12
spike22 commentedThat's right :)
Comment #13
efes commentedThanks for the constructive comment, @luxpaparazzi!
Comment #13.0
efes commentedminor formatting changes
Comment #13.1
spike22 commentedadded a review link
Comment #13.2
spike22 commentedreview added
Comment #13.3
efes commentedremoved duplicate issue reference line
Comment #14
efes commentedReview bonus tag added.
Comment #15
luxpaparazzi commentedI find your reviews very short, you may have a look at this post:
Comment #16
spike22 commentedthanx for the comment. We will keep that in mind,however we don't just push the code into a code sniffer, when checking a module we are interested. We don't check a module because of should but cuz we find that interesting. Anyway personally i just hope we'll be able to share our module (and future modules) to the community.
Comment #17
klausiReview of the 6.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. Get a review bonus and we will come back to your application sooner.
manual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #18
spike22 commentedThx klausi for the constructive comment! It was useful, you picked up things I didn't know or never used before :)
yeah, it's ok, removed the the string from t()...DONE
Sure, i missed just that one...DONE
Ok, I removed the function and changed the call to direct call...DONE
Ok, removed the submit button and added the system_settings_form()...DONE
Ok, sanitized the checkbox #options ( array_map('check_plain', node_get_types('names')) ) and also added a security check into submit handler...DONE
Yes, again I missed that...DONE
Ok, I've put a form_id check at the beginning of function, if that's what you mean...DONE
Ok, I'm logging everything, just forgot about notices. I've put a check for that value into form_alter...DONE
No comment, just DONE
Ok, now the thing is, when I started to implement things I couldn't think for future advance, so at the beginning I thought I would use as string. Then I changed my mind and turned to unix timestamp, because of it's better usability. Then I also forgot to change it at schema level and in cron...sorry about that, anyway...DONE
Comment #19
efes commentedComment #19.0
efes commentedreview added
Comment #20
efes commentedSetting review priority to major, per application guidelines.
Comment #21
efes commentedSetting review priority to critical, per application guidelines.
Comment #22
efes commentedRemoving tag
Comment #23
patrickd commentedsecurity tag is for statistical purposes, please leave it
Comment #24
klausiSorry for the delay. Make sure to review more project applications and get a new review bonus to get this finished faster.
manual review:
Othwerwise looks almost ready to me.
Comment #25
efes commentedThanks, @klausi, for the manual review! We'll correct the errors shortly.
But I'd like you to ask about your last sentence. What else do we need to correct? Why the code only "almost" ready? If we correct these errors we'll get another ones? Is it a usual practice only to drip some bunch of errors for one review, and another bunch next time?
I've no problem with the review delay, after all, we didn't gather any review bonus, I know - it is only an option, anyway... - but it would be much more better to clarify the existing errors only once - and lit the green light when they became corrected.
And thanks again for your work!
Comment #26
spike22 commentedHi klausi!
Replying to your comment:
1:Ok, changed 'A' to 'a'.
2 & 3: copied from here, because this way worked for me too. Anyway, removed the function, we'll see if that'll also work.
4: I've read somewhere about freeing up memory in drupal based systems, that's why I put unset in, but if not necessary than i can cut that out. No problem. However the whole function is necessary, because there're two important variable_set()'s in there. The system settings_form($form) does nothing else than adding the default buttons to the form, so that's why the submit call needed to handle the variables.
5: it was mentioned by you in comment #17 at point 7. No further comment.
6: because of the difference between (creating/posting a new node) & (editing an already created node). Because a new node doesn't have a nid yet, but a created does.
7: there's no such thing in a module like Admin Menu's admin_menu.js! There's no $(document).ready() function in my module's js either, to replace with Drupal.behaviors! It doesn't need to be attached to Drupal.attachBehaviors(), it should run only once the page loads. It's specific, not reusable, that's why it's not necessary to put in Drupal.behaviors() sandwich.
8: '%s' is gonna be $exposed_value, so it must be "check_plain"-ed, or the whole query dies.
Comment #27
efes commentedComment #28
efes commentedSetting review priority to major, per application guidelines.
Comment #29
efes commentedSetting review priority to critical, per application guidelines.
Please, consider:
- we have done every issue within 1 day
- @klausi's suggestions were contradictory sometimes (for example no.#5)
- the whole procedure lasts more than 2 months
- no more _real_ problems were found in our module since April 26
We'd like to get the right to apply for a project status. Thanks.
Comment #30
spike22 commentedReplying for the comment above:
Any further problem-idea-submission-needs-etc can go to the module's issue list, there's no more real problem with it, just please accept/allow the module! First it goes to dev version, not as stable release, but yet we can't reach that stage. I'm personally getting listless sharing to the community by this procedure :(
Comment #31
klausiSorry for the delay. Make sure to review more project applications and get a new review bonus and this will get finished faster.
manual review
Although you should definitively fix those issues they are no blockers. The permission problem is not a security issue as the permission will just be ignored currently and your module's administration form is only usable by user 1. So I guess this is RTBC.
Comment #32
efes commentedOK, thanks for the review!
But...what should I do now? There is no "Promote" subtab under my sanbox project "Edit" tab, and if Iád like to create a new project, the sanbox checkbox doesn't unselectable.
Comment #33
patrickd commentedYour application is only RTBC not fixed yet, a git admin must do a final review and will then grant you permission to promote projects to full ones.
Comment #34
spike22 commentedModifications done...
Comment #35
efes commentedOK..but WHEN???
Comment #36
patrickd commentedwhat about now (I'm sorry they're 20 other waiting for this too..)
There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch:
The @file block in your readme is not necessary (nobody does that)
Thanks for your contribution and welcome to the community of project contributors on drupal.org!
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
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.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Thanks to the dedicated reviewer(s) as well.
Comment #37
efes commentedThank you very much for your work!
Comment #38.0
(not verified) commentedreview's list numbering