Closed (fixed)
Project:
Simplenews
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Aug 2018 at 09:19 UTC
Updated:
21 Sep 2019 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jkardum commentedSuggested patch. Please review!
Comment #3
tamerzg commentedReviewed and looks fine.
Comment #4
adamps commentedSeems to have the same bug as #2931645: Is Drush simplenews-spool-send command broken item 2.
Comment #5
adamps commentedComment #6
Coops_Based off of jkardum's patch, here's one with a SQL sanitize hook to get rid of user data in the module
Comment #7
Coops_Comment #8
adamps commented@Coops_ Thanks for creating a patch.
I think it makes more sense to keep the two issues separate. Please use this issue to create a patch that adds drush 9 support identical to the current drush 8 support, taking account of comment #4.
Then the other issue can add support for SQL sanitize, but that needs to be done for both drush 8 and drush 9.
Comment #9
andrewbelcher commentedHere's an update patch, based on #4 without the additions. It:
SpoolStorageInterface::countMails()callspoolSendwhere$limitwas optional but$options(including adding a default forpipeComment #10
andrewbelcher commentedComment #11
adamps commentedThanks @andrewbelcher I did a review and that looks good. Minor comments:
I didn't test it as I still use drush 8. We still need confirmation from someone else that they have used this and it works.
Comment #12
jcnventuraIt doesn't work because of the following error:
Comment #13
jcnventuraThis one works.
Comment #14
jcnventuraComment #16
adamps commentedThanks @jcnventura. All commits/patches now go to the new branch 2.x please.
Comment #17
jcnventuraThe patch is still the same, as the last change to simplenews.drush.inc is from February 10 (#2931645: Is Drush simplenews-spool-send command broken).
In any case, since I changed some of the documentation to stop referring to simplenews_throttle variable, might as well submit the same changes (plus coding standard fixes) to the Drush 8 file.
Comment #18
adamps commentedGreat, thanks for the new patch - it looks good to me although I'm not using Drush 9 so didn't test. Please can you upload an interdiff with the previous patch? If it's a fairly small change since the previous patch then I think I can commit without waiting for someone else to test
Please no coding standards fixes mixed in with other issues - we have a separate issue for them [3037140]. Patches welcome there although right now I have given precedence to #3055728: Convert from Simpletests to PHPUnit tests so it would need to wait a few weeks.
Comment #19
jcnventuraThe effective interdiff without coding standard changes between #9 and #13 is:
I'll do a new patch that doesn't fix the coding standards in the Drush 8 file, but keeps the documentation fix.
Comment #20
adamps commentedGreat thanks @jcnventura that seems simple enough. Please can you explain why the comment for the
pipeoption isn't needed? Is it a global option in Drush 9?Comment #21
jcnventuraYes, it is a global option and an exception is thrown if you try to redefine it.
This is an updated #17 patch without the coding standards changes to the Drush 8 file, but fixing the documentation errors fixed in the Drush 9 documentation.
Comment #22
adamps commentedThanks looks good to me, I will commit after giving other maintainers a chance to review.
Comment #24
adamps commentedComment #26
adamps commentedSorry my first commit missed one of the files - now fixed.