Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2013 at 08:47 UTC
Updated:
23 Sep 2018 at 23:44 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxhiryu1977374git
We 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
hiryu commentedI've done a bit of standardization for my code.
I don't know if the remaining errors are real errors or just false positive.
Any help would be appreciated.
Comment #3
hiryu commentedComment #4
hiryu commentedI've solved all errors and warning except this:
Can someone help me to understand how to solve it?
Thanks
Comment #5
hiryu commentedok... last thing... what's this?
./userautotag.module: the byte order mark at the beginning of UTF-8 files is discouraged, you should remove it.Comment #6
hardcoding commentedHi hiryu,
here are some things i found:
code
userautotag.module:
Looks like your editor manually puts a bom to your file. Maybe you should take an other editor and create a new file.
- http://en.wikipedia.org/wiki/Byte_order_mark
There are some strings which are not translatable like messages to the user.
userautotag.css:
- remove line 11
-
in this line is unnecessary
in drupal
i get some warnings from your module:
after saving in admin/config/workflow/userautotag:
But your module works like written in the description.
Comment #7
hardcoding commentedComment #8
hiryu commentedHi hardcoding,
thanks for your precious help!
I've fixed what you've said, but I didn't get any PHP warning. Maybe they came from an unset variable, so I've added, in the relative function, a declaration of the variable $fields = FALSE.
Let me know if there is some other work to do.
Comment #9
hardcoding commentedHi hiryu,
i don't get an notice anymore that's ok, but i still get this warning after saving. i will install your module in a clean drupal installation. hope i will get no warning after that. :)
As i can see there are still some strings which are not translatable. Please check that.
You are currently working in your master branch. Please create a "7.x-1.x" branch and push it to git. After that you can delete your master branch.
Comment #10
hiryu commentedYou mean sting not wrapped in "t()" ? If yes, ok, I've fixed them wrapping every message in a t() function.
Regarding Git, I'm very new to it, I know just 3 commands:
Can you tell me how to create a "7.x-1.x" branch and push my code into it?
Thanks a lot!
Comment #11
PA robot commentedProject 1: http://drupal.org/node/1978434
Project 2: http://drupal.org/node/1985214
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #12
hiryu commentedMy "Webform Advanced Reports" module is not a duplicate of this project. I don't understand why it was closed.
Comment #13
PA robot commentedProject 1: http://drupal.org/node/1978434
Project 2: http://drupal.org/node/1985214
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #14
hardcoding commentedto push:
git push <remote-name> <branch-name>to remove:
git push origin --delete <branch-name>for more information see gitref.org
Comment #15
a.milkovskyManual review:
1) in Drupal is more common to use .inc files instead of .php files.
2) don't use $_POST global array in form submit. Use $form_state['values'] instead.
Here is part of your code:
3)
Also read this article http://drupal.org/node/1127732
Comment #16
hiryu commentedThank you for your help. I've created a branch 7.x-1.x and deleted the master.
What's the next step to apply for a full project??
Comment #17
a.milkovskyread this article
Use Review bonus program
Comment #18
hardcoding commentedHave you already read this article?
Comment #19
hiryu commentedFixed!
Just one thing about review program... Is it mandatory to get a full project access?
Comment #20
samvel commentedHi, manually reviewed:
if ($vocaboulary->machine_name == $form_stateDEFAULT_VOCABULARY) {Comment #20.0
samvel commentedAdded link
Comment #21
hiryu commentedLink appended in the issue and code fixed.
Comment #22
hiryu commentedHow can I get the sign off for this module and apply for a full project?
Comment #23
gianfrasoft commentedThis project is a great intuition. I'm going to use it now... Thank you.
Comment #24
gianfrasoft commentedPlease add some other description to readme file...
Comment #25
hiryu commentedreadme.txt and help.html updated with new and more complete informations.
Comment #26
gianfrasoft commentedOk, thank you!
Comment #27
hiryu commentedHi guys,
it's almost 2 weeks I've got no feedback on this project. Can someone advise me on how to move on to apply for a full project?
I've read this: https://drupal.org/node/1068952 but on my sandbox project page there is no link to apply.
What's the next step?
Thank you very much.
Comment #28
thedavidmeister commentedJust some minor comments.
I don't think you should be using !important in css for contrib code.
// field_delete_field('field_user_auto_tags');There's no reason to keep debug code lying around.
* Implements of hook_install()."Implements hook_install()." not "Implements of hook_install().". Similar issue for most of the other documented hooks.
Avoid using module_load_include() in the global context, see the docs at https://api.drupal.org/api/drupal/includes%21module.inc/function/module_...
$user->field_user_auto_tags[LANGUAGE_NONE][]['tid'] = $applytag;There are a few places where you're using LANGUAGE_NONE instead of the field API. This would make your module incompatible with internationalization/translation.
I'm wondering if it might be more efficient to convert your various, dynamic variable_set() calls (that use $type) that could end up representing many individual variables into a single array variable, unless there's a strong use-case for keeping them separate.
$path = realpath(dirname(__FILE__));Can we not use drupal_get_path() here?
Why are we not using path_is_admin() https://api.drupal.org/api/drupal/includes%21path.inc/function/path_is_a... ?
Why are we adding css to every admin path?
Comment #29
hiryu commentedHi, and tahnks for your help.
// field_delete_field('field_user_auto_tags');Deleted.
* Implements of hook_install().Changed in (all of them):
* Implements hook_install().Moved into "hook_init()".
$user->field_user_auto_tags[LANGUAGE_NONE][]['tid'] = $applytag;Replaced LANGUAGE_NONE with $langcode.
$path = realpath(dirname(__FILE__));Replaced with:
$path = drupal_get_path('module', USER_AUTO_TAG_PATH_NAME);Yes we can! I've changed it as you've suggested, but how can I load my css just in my module pages instead of all Admin section pages?
Comment #30
mavin commentedHi,
It looks like you're calling an undefined function in user_auto_tag_install() (line 22 in user_auto_tag.install)
-> function user_auto_tag_check_vocaboulary()
Comment #31
hiryu commentedFixed! Thank for the bug notice, was a misconfigured file name for the include.
Comment #32
vincenzo gambino commentedIf you don't mind about translation you may ignore the error below.
Comment #33
hiryu commentedChanged t() with check_plain().
Comment #34
kscheirer<hr>tags should technically be<hr/>.I'm not sure why you're using check_plain() instead of t()? check_plain() just sanitizes the string - t() allows it to be translated. The comment in #32 just meant that when possible you should use t() like t('String you can translate"). When you do t($variable_to_translate) it doesn't allow a code parser to pre-determine all the translatable strings in your code. Not a major issue, and changing all the check_plains to t() is not the answer.
typo "variablke" should be "variable".
It would be nice to include a way to configure this module on a per-role basis. Currently it will either affect all users or all non-admins.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #35
hiryu commentedHi,
thanks for the tip, having a role based system is not a bad idea, I can add it in a nearly future release.
Do you think I can use my text strings without any wrapping function like t() or check_plain()?
Comment #36
kscheirerDefinitely use something, I think using t() is better, but I guess check_plain() is ok too.
Thanks for your contribution, hiryu!
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.
Comment #37
hiryu commentedThanks a lot for your support!!
Comment #38
avpaderno