This module is used to delete the webform submissions with in the date range you given.

This module will add a Menu tab(Bulk Delete) under webform Results tab, with the help of this user can enter their date range they want.

Dependency:

Webform

Installation

1. Copy the entire webform_submissions_bulk_delete directory the Drupal sites/all/modules directory.

2. Login as an administrator. Enable the module in the "Administrator" -> "Modules"

How to use:

1.After installation login as admininstrator.
2.Go to content menu and filter your needed webfrom and click edit.
3.Go to Results->BulkDelete.

As per Webform maintainer recommendation, i have created an add-on module for webform
https://www.drupal.org/node/2540330

Sandbox project page link:
https://www.drupal.org/sandbox/viswanathan6/2543296

Pareview results:
http://pareview.sh/pareview/httpgitdrupalorgsandboxviswanathan62543296git

To clone the project:

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/viswanathan6/2543296.git webform_submissions_bulk_delete
cd  webform_submissions_bulk_delete

Reviews of other projects
https://www.drupal.org/node/2525758#comment-10138612
https://www.drupal.org/node/2533528#comment-10138702
https://www.drupal.org/node/2536668#comment-10138746
https://www.drupal.org/node/2513112#comment-10153084
https://www.drupal.org/node/2537108#comment-10153094

Manual Reviews of other projects
https://www.drupal.org/node/2541244#comment-10172532
https://www.drupal.org/node/2543346#comment-10172688
https://www.drupal.org/node/2541320#comment-10172750

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Status: Needs work » Needs review
viswanathan6’s picture

FileSize
23.26 KB
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.

viswanathan6’s picture

Issue tags: +PAreview: review bonus
viswanathan6’s picture

Issue summary: View changes
ashish.verma85’s picture

Status: Needs review » Needs work

Hi, Few Things:
1) It is recommended to always implement hook_install(). Here you can find an example.
2) configure link is missing in your .info file.

viswanathan6’s picture

Hi ashish,

Thanks for your inputs.

Your recommendations has added to this module,except hook_install.Because i am not using any custom table in my module.

Thanks
viswa

viswanathan6’s picture

Status: Needs work » Needs review
ashish.verma85’s picture

Hi, i feel even if you are not using any tables you still need to add a installation message in your hook_install, so that it confirms that module gets installed properly.
Please have a look at the link i posted in earlier message.

Thanks

viswanathan6’s picture

Hi ashish,

Thanks for your suggestion.hook_install has added to my module.

Thanks
viswa

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
ajalan065’s picture

Issue tags: -PAreview: review bonus

Hi viswanathan6,
1. For adding the Pareview bonus tag, you need to review three other projects.
When done, add them to your sanbox front page.
Also, as your project had been rolled back to "Needs Work" after adding the Pareview Bonus tag, so it should be removed according to Drupal Rules. Review three other projects again,and set back the tag. Removing it for a while.
2. In the README, no need to add D7 as a requirement.
3. Drupal already has the required version of php. See this https://www.drupal.org/requirements .
So you can safely remove the line php=5.3 from your *.info file.

And must say, excellent work buddy. It works for me. Didnot find any major application blockers.

dstorozhuk’s picture

Automated Review

Git default branch is not set, see the documentation on setting a default branch.

Manual Review

Individual user account
Yes: Follows.
No duplication
No: date range export exists in last recommended version of webform.
But deleting submissions by date range still not implemented in core module.
Master Branch
Yes: Follows. No Master Branch.
Licensing
Yes: Follows.
3rd party assets/code
Yes: Follows, no 3rd party code.
README.txt/README.md
Yes: Follows. But, README.txt template sugest to use "INTRODUCTION" instead of "DESCRIPTION".
Code long/complex enough for review
Yes: Follows.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage.
  1. (*) Your module should inherit the the functionality of parent module and expand the DOWNLOAD RANGE OPTIONS section on node/nid/webform-results/download (download tab) so the user can use other options when downloading the results (columns, format, ets.). I think this is a major issue which must be fixed before the release.
  2. (+) Delete submission. To follow drupal way, you have to use Drupal confirmation page instead of JS alert window. Here you can find some "how to" build the confirmation page.
  3. (+)
    webform_data_export_menu().
    

    
Better to use

    
'page callback' => 'drupal_get_form',

    'page arguments' => array('webform_data_export_submission_form')

    

    Instead of

    
'page callback' => 'webform_data_export_submission_form',

    

    So that no need to write extra call to drupal_get_form(), drupal will do that for you.

  4. Check the spelling in webform_data_export_install().

The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.

This review uses the Project Application Review Template.

viswanathan6’s picture

Hi dstorozhuk,

Thanks for your reviewing.I will do your recommendation.

dstorozhuk’s picture

Status: Needs review » Needs work
viswanathan6’s picture

Hi dstorozhuk,

Thanks for your inputs.Your recommendations are fixed in my module.

viswanathan6’s picture

Issue summary: View changes
FileSize
21 KB
viswanathan6’s picture

Status: Needs work » Needs review
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue tags: +PAreview: review bonus
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
dstorozhuk’s picture

OK, I will check.

viswanathan6’s picture

Issue summary: View changes
dstorozhuk’s picture

Bad news @viswanathan6.
I started testing your last changes, and updated webform module to latest recommended version: 7.x-4.10, where downloading by date range already implemented ((((.

Good news is that deleting by date range still not implemented there, so you can add this, but my recommendation is to create a patch for webform (if one is not exists yet).

viswanathan6’s picture

Hi dstorozhuk,

Thanks for your inputs. I have created and uploaded a patch for bulk delete submissions in webform.

My patch Link:
https://www.drupal.org/node/2540330

viswanathan6’s picture

Status: Needs review » Closed (duplicate)
peterlolty’s picture

Status: Closed (duplicate) » Needs review

As the Webform maintainer haven't accept the patch (https://www.drupal.org/node/2540330), and he also suggests to make it as an add-on module. I think this should be reopen again.

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Title: [D7] Webform Data Export » [D7] Webform Submissions Bulk Delete
viswanathan6’s picture

Hi peterlolty ,
Thanks for reopened this.i have uploaded Delete webform submissions as an add-on module for webform.

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue tags: -PAreview: review bonus
viswanathan6’s picture

Issue tags: +PAreview: review bonus
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

FileSize
20.43 KB
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
PA robot’s picture

Issue summary: View changes

Fixed the git clone URL in the issue summary for non-maintainer users.

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

dstorozhuk’s picture

Hey, viswanathan6, I think you have to remove "_d7_" prefix from module folder name. What is the reason to add it?

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Hi dstorozhuk,

Sorry for the inconvenience.Now the prefix has removed from module folder.

viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue summary: View changes
viswanathan6’s picture

Issue tags: +PAreview: security
viswanathan6’s picture

Issue tags: -PAreview: security
viswanathan6’s picture

Hi dstorozhuk,

if the application has no major flaws,Please guide me to get RTBC for my module.

dstorozhuk’s picture

Automated Review

Git default branch still is not set. Setting a default branch

Manual Review

Individual user account
Yes: Follows.
No duplication
No: This module expands the webform functionality.
Master Branch
Yes: Follows. No Master Branch. But default branch is not set, please set the default branch.
Licensing
Yes: Follows.
3rd party assets/code
Yes: Follows, no 3rd party code.
README.txt/README.md
Yes: Follows. But need to fix module name in Installation section
Code long/complex enough for review
Yes: Follows.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage.
  1. (*) no validation when the start date greater than end date. Need to add.
  2. (*) no date format validation. I can enter any string in the date fields and form still asking me "Warning, this is the last step before form gets submitted" "Process?" Form must validate date format before process to next step. Move this $end_date = strtotime($end_date)) !== FALSE to form validation.
  3. (*) Call to webform_submissions_bulk_delete_webform_submission_action() on line 138 use 3 parameters, but function definition use 2 parameters.
  4. (+) webform_submissions_bulk_delete.info:
    No need to define configure = node/%nid/webform-results/bulk-delete. This is not a configuration page. Remove this line.
    stylesheets[all][] = css/webform_submissions_bulk_delete.css: Better to attach you CSS file especially for page where it is used.
    Use $form['#attached']['css'] to attach your file instead of drupal_add_css().

    Even more, I think CSS code from webform_submissions_bulk_delete.css is not used any more. Please review this file, probably it can be removed from the module.

  5. The date picker removed. I suggest to add it back, this can help to avoid date format misunderstood for users.
  6. I also suggest to expand existing "Clear" page with adding additional option to delete submissions range instead of building separate page for this.
  7. Feature request: Add VBO action to perform selecting and deleting submissions on "Submissions" tab since now this is views page. Module definitely can release without this, but in future it will be good to have this functionality.
  8. Feature request: Delete by ID range. Module definitely can release without this, but in future it will be good to have this functionality.
  9. Make Date popup dependency optional with keeping date format validation (currently it is provide by date module).

The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.

This review uses the Project Application Review Template.

dstorozhuk’s picture

Status: Needs review » Needs work
viswanathan6’s picture

Hi dstorozhuk,

Thanks for spent some time to reviewing my module.
The git branch,readme.txt,(*),(+) items are fixed in my module.And date picker also added.
i will definitely do your (6) recommendation along with Feature request in future.once this module has been released.
if the application has no major flaws,Please consider for RTBC.

viswanathan6’s picture

Status: Needs work » Needs review
dstorozhuk’s picture

Module looks good for now, setting status RTBC.
Also, I want to make additional feature request:
make Date popup dependency optional with keeping date format validation (currently it is provide by date module).

dstorozhuk’s picture

Status: Needs review » Reviewed & tested by the community
viswanathan6’s picture

Hi dstorozhuk ,

Thanks for reviewing and changed the status of my module to RTBC. I will do your additional feature request.

viswanathan6’s picture

Waiting for Drupal admin review.

apaderno’s picture

Assigned: Unassigned » apaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution!

I am going to update your account so you can 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 more contributors chatting on IRC in #drupal-contribute. 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.

Thank you to the dedicated reviewer(s) as well.

viswanathan6’s picture

Hi kiamlaluno,
i have just promoted my sandbox project to full project.But my clone doesn't changed.Please guide me to solve this.
Url: https://www.drupal.org/project/webform_submissions_bulk_delete/git-instr...

git clone --branch 7.x-1.x viswanathan6@git.drupal.org:project/2543296.git

viswanathan6’s picture

Priority: Normal » Major
viswanathan6’s picture

Hi git admins,

I have just promoted my sandbox project to full project.But my clone doesn't changed.Please guide me to solve this.
Url: https://www.drupal.org/project/webform_submissions_bulk_delete/git-instr...
git clone --branch 7.x-1.x viswanathan6@git.drupal.org:project/2543296.git

viswanathan6’s picture

Priority: Major » Critical
viswanathan6’s picture

Status: Fixed » Needs review
dstorozhuk’s picture

Have you changed the project name?

rajeev_drupal’s picture

Assigned: apaderno » rajeev_drupal

Reviewing this...

viswanathan6’s picture

Hi dstorozhuk/rajeev_drupal,

I have given short project name as webform_submissions_bulk_delete.But my clone url doesn't changed.
it looking like this: git clone --branch 7.x-1.x viswanathan6@git.drupal.org:project/2543296.git

Please guide me to solve this

dstorozhuk’s picture

Hmm. Strange. Really, on https://www.drupal.org/project/webform_submissions_bulk_delete/git-instr... , I see:

git clone --branch 7.x-1.x http://git.drupal.org/project/2543296.git
cd 2543296

I can't help here.

You also should set tag in GIT and setup default recommended release to display download links on project page.

viswanathan6’s picture

Hi dstorozhuk,

I have already created one tag and push to 7.x branch.But nothing happened. it shown a below error when add new release.

Packaging error messages

Git clone failed:

fatal: remote error: access denied or repository not exported: /project/2543296.git
Initialized empty Git repository in /tmp/drush_tmp_1438888095_55c3b09f851e3/clone/.git/

How to proceed further.

dstorozhuk’s picture

Maybe the problem exists since you had changed the project GIT url?
Tried to contact directly to somebody from drupal team via Email?

I didn't face with problems like this when my project was promoted few days ago.

viswanathan6’s picture

thanks dstorozhuk.I have sent an detailed email regrad this to klausi.I think she might take this into right way.

viswanathan6’s picture

@klausi can you help me to solve this git problem.

klausi’s picture

Assigned: rajeev_drupal » Unassigned
Status: Needs review » Fixed

@viswanathan6: you are still trying to push to the old sandbox URL. You need to update your git remote URL or reclone the project from the new URL.

viswanathan6’s picture

Hi klausi,

can you help me. How to update or reclone the project url

klausi’s picture

You delete the folder of your module on your computer and run the instructions from https://www.drupal.org/project/webform_submissions_bulk_delete/git-instr... again.

viswanathan6’s picture

thanks Klausi.I will try this.

viswanathan6’s picture

Hi klausi,
I have tried but it shows like below

git clone --branch 7.x-1.x viswanathan6@git.drupal.org:project/2543296.git
Cloning into '2543296'...
fatal: remote error: The remote repository at 'project/2543296.git' does not exist. Verify that your remote is correct.

apaderno’s picture

Assigned: Unassigned » apaderno
Priority: Critical » Normal

It's git clone --branch 7.x-1.x viswanathan6@git.drupal.org:project/webform_submissions_bulk_delete.git.

Status: Fixed » Closed (fixed)

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