Summary
Allows delete nodes specified by filters either in Batch or Queue mode.
Somewhat similar to Delete All module, except it supports all the filters available in generic Administer > Content interface and more, and user can choose between Batch and Queue, which allows background deleting of large amount of nodes without affecting sites performance significantly.
Project page
https://drupal.org/sandbox/arthgwyr/2022121
Repository
git clone --branch master git.drupal.org:sandbox/arthgwyr/2022121.git bulk_delete_nodes
Reviews of other projects:
https://drupal.org/node/2012340#comment-7661641
https://drupal.org/node/2036083#comment-7661789
https://drupal.org/node/2046429#comment-7667377
https://drupal.org/node/2036083#comment-7667535
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxarthgwyr2022121git
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
jyokum commentedcodesniffer review appears to be mostly formatting issues which need to be cleaned up. http://ventral.org/pareview/httpgitdrupalorgsandboxarthgwyr2022121git
Basic test of functionality worked properly, nodes were deleted as expected.
There is some commented out code which should probably be removed
bulk_delete_nodes.inc around lines 246, 378, 433
Comment #3
artur.martirosyan commentedThanks for the review.
All suggestions have been taken into consideration.
Comment #4
andrewsizz commentedAll seems fine. Nice module.
Comment #5
artur.martirosyan commentedThanks!
Comment #5.0
artur.martirosyan commentedAdded reviewed applications
Comment #5.1
artur.martirosyan commentedAdded a review
Comment #6
artur.martirosyan commentedAdded reviews of other projects
Comment #7
ayesh commentedEven though the module is now in RTBC status, here is a little comparison with similar approaches:
I'd go for the VBO if I had to make a decision, but users with less Views and VBO experience will definitely find this module very useful!
Comment #8
artur.martirosyan commentedHi Ayesh.
That's the point. You can pretty much do the same and more with VBO, but then there are people who never heard of Views and will have hard time figuring it out. This is when this module saves the day.
And this is not a made-up situation, the idea of the module came up from experience with actual end users.
Oh and btw, we're thinking of adding Drush support eventually.
Comment #9
klausiIt appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master 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:
The feature, UI and use case of this module can be built with Views Bulk Operations without writing a single line of code. The View can be exported to a PHP include file providing the default View to delete content as in your example. So instead of duplicating code that will have bugs you should rely on existing projects. Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. So my suggestion is to create a Views configuration with the exposed filters and bulk operations available as you need them, export them to code and commit them. There will not be much code left after that.
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #10
ayesh commented+1 for Klausi's comments.
A feature module would be the best way I guess (so we can add dependencies, the View and make it easy to update, etc).
Comment #11
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 #11.0
PA robot commentedAdded review
Comment #12
tiko commentedHi all,
I'm contributor in this module and would like to correct bugs and release the module.
The key point of this module is the simplicity. It was design for users that have had no past experience with views, views bulk operations, features and are just admins which are working with content. In my opinion there is no need to add redundant code for views and vbo, as far as I'm using drupal SQL API and there is no any security issues.
Thanks in advance.
Comment #13
klausiGit errors:
Review of the 7.x-1.x branch (commit c0eb241):
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:
Otherwise looks good to me, but placeholder usage in SQL is a blocker right now.
Comment #14
tiko commentedThanks for review.
Currently I'm working on 7.x-1.x branch but there is no option to change default branch(see the screenshot).
I've commited changes and have changed db query where statement to
function.
Comment #15
karoop commentedI had a look at your module and here are my thoughts:
User Interface
Functionality
Code
bulk_delete_nodes.module
bulk_delete_nodes.inc
'#prefix'and'#suffix'to surround the form elements with a div. You should use the theme function to do it. This way you could avoid having an extra div around the form element, and just add a class to the outer div.Overall, it's cute and does what it says on the tin, but definitely requires more work. I hope you find my comments helpful.
Comment #16
gisletiko wrote:
It doesn't look like your sandbox - it belongs to artur.martirosyan
Even if you have permission to commit to the repo, you may not have permission to change branches.
Check out the permissions with artur.martirosyan
Comment #17
karoop commentedForgot to change the status!
Comment #18
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.