Closed (duplicate)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2013 at 22:43 UTC
Updated:
9 Sep 2018 at 23:06 UTC
Jump to comment: Most recent
Comments
Comment #1
PA robot commentedLink to the project page and git clone command are missing in the issue summary, please add them.
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
garnett2125 commentedHi,
Manual review :
Comment #3
rajab natshahThanks Yohan.
This is my first full module contribution to Drupal ( so I'm in the process of learning how to work with Drupal reviewers stay to the standard work ).
I had fixed 1, and 3 .. I will add more into the README.txt
Thanks a lot for your work.
Comment #3.0
rajab natshahHave git clone link and link to the sandbox page
Comment #4
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
rajab natshahHi Yohan,
We have all changes. as you asked .. and we have good progress for display formats.
he Field allows us to use custom field collection data from a selected node in another content type.
Something like entity reference but for a selected Field Collection in a content type.
For example:
If we create a new content type with a field of type Field collection .. which can have a title, code, or some other field set of grouped fields in the Field Collection.
After that if we add contents using that content type. which have list of data in the node and the Field Collection field..
The next step is to create a another content type then add this Field from Field Collection, we will be able to select the content type then the field collection in the content type. So not as Field Collection do not have a default field as a title, So we will be able to select a field from the collection as a title.
As you can see at figure 1
Figure 1
After that we can have number of Display formats. to show up the data in pages/views/blocks.
Node Title and Field Collection Title
Node Title and Field Collection Title Linked to content
Field Collection Title text Only
Field Collection Title linked to content
Node Title text Only
Node Title Linked to content
As you can see at figure 2

Figure 2:
Comment #6
rajab natshahComment #7
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxRajabNatshah2052323git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #8
rajab natshahComment #9
ram4nd commentedJust a quick code review.
Comment #10
rajab natshahComment #11
rajab natshahThanks Ra for the Quick review..
Your project page has typos, etc.
Fixed typos and have a better copyright text for the Module readme.txt file and the module page. :)
I ware focusing on a functioning module .. we are going to have a better one before we release
Your git command here is your personal clone. Fix that.
Have changed it. thanks for the notice.
Use l() instead of writing "a href" manually.
Done. Changed.
Do you really need to translate variables? t('@node_title', array('@node_title' => $node->title))
This was a fix in a custom project.. as Field Collection have some issues with translation ( for the i18n and not Entity Translation)..
I have taken them out. ( Not to have accumulated Garbage translation )
Fix your git branches: https://drupal.org/empty-git-master
I had take out the Master Branch. Hop that It's in the right way now.
Thanks for your help Ra
Comment #12
rajab natshahComment #13
Alexxikon commentedRajab,
Here are my observations:
field_from_field_collection.modulefile:Typo in the 'field_from_field_collection_defualt' array key on line 32 and line 84 (it should be 'field_from_field_collection_default')
Some of the capitalization of the human-readable strings is erratic and inconsistent. For example, in 'Node Title and Field Collection Title Linked to content', why are 'Title' and 'Linked' capitalized?
The variable $fied_value_markup has a typo. It should probably read $field_value_markup.
On lines 100 and 129 there are spaces before commas.
The expressions between lines 343 and 352 seem very complicated. Consider breaking them into smaller pieces. The code would also run faster because several of the subexpressions are repeated and don't need to be evaluated more than once:
Ditto for this code at lines 380-381:
There are typos in the
field_from_field_collection.infofile:"a list of..." (capitalization)
"So that…" (capitalization)
Also, perhaps this description can be made more clear.
The
README.txtfile is not very clear. What are the main features and advantages of this module? There are also several typos. I recommend that you write an explanation that can be easily understood by a non-expert Drupal user.See also:
https://drupal.org/node/447604
https://drupal.org/node/161085
http://drupalcode.org/project/bot.git/blob/HEAD:/README.txt
http://drupalcode.org/project/admin_menu.git/blob/refs/heads/7.x-3.x:/RE...
http://drupalcode.org/project/actions.git/blob/HEAD:/README.txt
Comment #14
Alexxikon commentedComment #15
rajab natshahWe had the module filtered by the coder module with the help of Razem. and how to fix all Drupal standard coding issues.
We will go for more work on the README.txt file
Comment #16
rajab natshahComment #17
heddnComments, both inline and function should limit to 80 characters: https://drupal.org/coding-standards/docs#drupal
Function parameters and return type should be noted, except for the listed exceptions: https://drupal.org/coding-standards/docs#functions
There are still a lot of errors and warning returned by the PARreview: http://pareview.sh/pareview/httpgitdrupalorgsandboxRajabNatshah2052323git
.module file:
The 'item' variable used as a value by a foreach loop is already used in the same way by the outer foreach loop. (at line 86)
Comment #18
rajab natshahThanks heddn ... :)
Ok .. Noted .. I will have a progress work to have theme fixed.
Comment #19
rajab natshahComment #20
gwprod commented1. Basic application checks
1.1 Ensure your application contains a repository and project page link.
Yes
1.2 Ensure your project is not a duplication.
Unclear
1.3 Ensure you don't have multiple applications.
This is this user's only application
2. Basic repository checks
2.1 Ensure the repository actually contains code.
Repository contains code
2.2 Ensure you are working in a version specific branch.
Code is in a version specific branch
3. Security Review
3.1 Ensure the project does not contain any security issues.
In _field_from_field_collection_get_list_of_field_collection_data, you query nodes, but you don't respect node access tags. That MAY be a security problem.
Other than that, I didn't notice any, except the potential security problem of using $form_state['input'] directly.
4. Licensing checks
4.1 Ensure the repository does not contain a ‘LICENSE.txt’ file.
There is no LICENSE.txt file.
4.2 Ensure the repository does not contain any 3rd party (non-GPL) code.
Project does not contain 3rd-party code.
5. Documentation checks
5.1 Ensure the project page contains detailed information.
The project page seems to be fairly detailed.
5.2 Ensure the repository contains a detailed README.txt.
The README.txt does exist, and it reflects about the same information as the project page. However, I would like to see more detailed information on use-cases in the documentation.
5.3 Ensure the code contains a well-balanced amount of inline-comments.
A lot of the code is not well commented, and it does not self-comment, so sometimes it is non-obvious what it is doing.
6. Coding standards and style
6.1 Run an automated review and ensure there are no major issues.
FILE: .../www/drupal-7-pareview/pareview_temp/field_from_field_collection.module
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
234 | WARNING | Do not use the raw $form_state['input'], use
| | $form_state['values'] instead where possible
396 | ERROR | Doc comment long description must start with a capital letter
397 | ERROR | There must be exactly one blank line before the tags in a doc
| | comment
417 | ERROR | There must be exactly one blank line before the tags in a doc
| | comment
470 | ERROR | Type hint "opject" missing for $field_collection
--------------------------------------------------------------------------------
These should probably be fixed, especially using raw $form_state['input'].
7. API and best practices Review
7.1 Ensure you are using Drupals API correctly.
Aside from using $form_state['input'] and not respecting node access, the APIs appear to be used correctly.
Specific Issues I Have:
A fair amount of the code could be refactored to use function names, variables and indices that self-comment. For instance, several of the callback functions have 1drop as part of their name. Is this an allusion to Drupal, or does it mean something in context?
Comment #21
rajab natshahThanks a lot Derek.
use-cases in the documentation : I will have that then.
Coding standards : I will have all warning and errors fixed. It's a bit tricky to have the module validated using Coder + pareview.sh with no errors in both.
Coding standards
1drop : This is a code name for the widget ( one Drop Down menu ) .. we have 1drop for the widget and validation functions.
We are planning to have 2 drop down menus as a widget ( 2drop ) . ( It's a Back-end interface ). we may go and have more widgets.
We could use a better naming.. but functions have a limited number of characters .. or they will be so long.
Thanks for your time :)
Comment #22
rajab natshahComment #23
rajab natshahComment #24
PA robot commentedProject 1: https://www.drupal.org/node/2310391
Project 2: https://www.drupal.org/node/2065565
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 #25
rajab natshahComment #26
rajab natshahPlease, have a look at this module.
I have closed the other issue as we worked on this module for some time.
Rewording :)
Comment #27
rajab natshahComment #28
avpaderno