https://www.drupal.org/sandbox/jonnyhocks/2890370

Views Filter Menu provides a Views filter which will filter nodes based on whether they are added to specific menus or not.

Users are provided with an interface which displays all configured menus, and may filter nodes based on whether they are added or not added to specific menus. Multiple menus may be selected.

Manual reviews of other projects

https://www.drupal.org/node/2892934
https://www.drupal.org/node/2896963
https://www.drupal.org/node/2887331

Comments

jonnyhocks created an issue. See original summary.

jonnyhocks’s picture

Issue summary: View changes
rob holmes’s picture

Looks good, a few minor coding nitpicks by the code sniffer.

Running https://git.drupal.org/sandbox/jonnyhocks/2890370.git through https://pareview.sh/ gives the following output

FILE: /root/repos/pareviewsh/pareview_temp/views_filter_menu.services.yml
-------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------

FILE: ...repos/pareviewsh/pareview_temp/src/Plugin/views/filter/NodeMenus.php
--------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Short array syntax must be used to define arrays
43 | ERROR | [x] Short array syntax must be used to define arrays
76 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...epos/pareviewsh/pareview_temp/src/Plugin/views/join/MenuNodeJoin.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
26 | ERROR | [x] Short array syntax must be used to define arrays
42 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: /root/repos/pareviewsh/pareview_temp/views_filter_menu.views.inc
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
13 | ERROR | [x] Short array syntax must be used to define arrays
15 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

rob holmes’s picture

Status: Needs review » Needs work
jonnyhocks’s picture

Issue discovered when saving the view when using the filter:

Error message:
InvalidArgumentException: The configuration property display.default.display_options.filters.menu_filter.value. doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 74 of core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

jonnyhocks’s picture

Status: Needs work » Needs review

Fixes committed for issues #3 and #5.

PA robot’s picture

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.

spencer95@gmail.com’s picture

Status: Needs review » Needs work

The review website suggests adding a readme file.

jonnyhocks’s picture

Status: Needs work » Needs review

Fixes commited for issue #8 - Added a README file with information and instructions.

shashikant_chauhan’s picture

Status: Needs review » Needs work

Manual Review

1) In Readme.txt file correct the sentence
Views FilterMenu provides a a Views filter which will filter nodes based
there is no space between 2 words "FilterMenu" and it has 2 "a" letter [provides a a Views].

2) Also

  menus, and whether it will filter based on if the nodes
   are 'in' or 'out' of the menus selected.

is not following 80 line character specification.

3) Your module is dependent on the views module but there is no dependency is added in views_filter_menu.info.yml. Add views module dependency in the info file.

jonnyhocks’s picture

Status: Needs work » Needs review

Fixes committed for issue #10 - Fixed typos in README file and added views as a dependency to info yml file.

jonnyhocks’s picture

Issue summary: View changes
jonnyhocks’s picture

Issue summary: View changes
jonnyhocks’s picture

Issue summary: View changes
jonnyhocks’s picture

Updated README to follow provided guidelines.

jonnyhocks’s picture

Issue tags: +PAreview: review bonus

Adding PAReview: review bonus Issue tag

spencer95@gmail.com’s picture

Manual Review

Individual user account
[Yes: Follows] the guidelines for individual user accounts.
No duplication
[Yes: Does not cause] module duplication and/or fragmentation.
Master Branch
[Yes: Follows] the guidelines for master branch.
Licensing
[Yes: Follows] the licensing requirements.
3rd party assets/code
[Yes: Follows] the guidelines for 3rd party assets/code.
README.txt/README.md
[Yes: Follows] the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
[Yes: Follows] the guidelines for project length and complexity.
Secure code
[Yes: Meets the security requirements. ]

This review uses the Project Application Review Template.

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxjonnyhocks2890370git

I'm a robot and this is an automated message from Project Applications Scraper.

jonnyhocks’s picture

Status: Needs work » Needs review

Coding standards resolved.

spencer95@gmail.com’s picture

Status: Needs review » Reviewed & tested by the community

After reviewing, all looks good.

jonnyhocks’s picture

Priority: Normal » Major
avpaderno’s picture

Assigned: Unassigned » avpaderno
Priority: Major » Normal
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.

I thank all the dedicated reviewers as well.

avpaderno’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.