Closed (fixed)
Project:
Digest
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2020 at 17:35 UTC
Updated:
16 Nov 2020 at 19:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
derekcresswell commentedHere is an implementation of this.
Two things I'd like discussed in the review :
Thanks.
Comment #4
derekcresswell commentedDon't know how that didn't error before, missed one period.
Comment #5
gnumatrix commentedPatch seems to work well.
I'd stick with 'Test', personally. I'd take 'Send Now' to mean something different as you suggest - sending out the digest to all the digest subscribers.
I read up a little tiny bit on the security coverage process. Certainly not encouraging in terms of whether I'd want to pursue Drupal development as a larger part of my day. So much ambiguity. If you can fit it in without interfering with that process, great! Wasn't clear to me whether that would be generally feasible or not. On the other hand, they can't possibly expect a module to sit in limbo indefinitely while waiting, so ?? Without understanding that fully, admittedly, I'd say it should be included.
Comment #6
derekcresswell commentedThank you for the input.
I might see about giving it another week or so but I don't think I'll continue to hesitate making a full release without security coverage.
While I don't like that I'll be adding new features after a RC is made, that's kinda my fault for making one so I will include this in the 1.0.0.
Comment #7
derekcresswell commentedComment #8
derekcresswell commentedGoing to mark this back as needs work.
Within #3178938: Permissions ignored on cron we are adding account switching within the send function of digests. This is to prevent permissions issues. I'd like to accommodate that here by changing this from send to any email to send to a user.
Sending this to a temporary user could prevent permissions from working correctly. The field on the form should be an autocomplete for users and default to the current account.
Comment #9
derekcresswell commentedNow the form utilizes entity autocomplete instead of just an email.
Comment #10
gnumatrix commentedWorks very well.
Comment #11
travis-bradbury commentedLooks good to me too.
Comment #13
derekcresswell commentedGreat. Committed.
Comment #14
derekcresswell commentedFollow up, will make a new issue for this if wanted.
Should the test emails be demarcated as a test? I wouldn't want to change the body of the email (as that is what we want to show) but we could perhaps prefix the subject with 'TEST'. It wracks my nerves to see the digest in my live inbox and I go "but it looks so real, what if everyone got it?".
This would require the send function to be aware of the context in which it is being set. An extra array of parameters that we pass in for context. What I don't like about that is then the hook_mail and digest send are coupled to the context to sending, even if it's just as a pass-through parameter.
Comment #15
gnumatrix commentedI don't know if it is worth the trouble? But if it is, maybe consider adding [TEST] as a subject suffix rather than prefix?