Modify

Opened 15 years ago

Last modified 7 years ago

#6047 new enhancement

Don't send blog announcement, when `draft` is specified in categories

Reported by: Ryan J Ollos Owned by:
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: blog, FullBlogPlugin
Cc: Robert Corsaro, Steffen Hoffmann Trac Release: 0.11

Description

The FullBlogPlugin has a plugin that implements draft functionality. A draft is specified by entering draft in Categories. It would be a nice feature for the FullBlogNotificationPlugin if emails were not sent when draft was specified in Categories.

Attachments (0)

Change History (21)

comment:1 Changed 14 years ago by Ryan J Ollos

See also #5556.

comment:2 Changed 14 years ago by Ryan J Ollos

I'm starting to work on implementing this feature. Initially, I'll aim to have the email sent only to the blog author if draft is specified in the list of tags.

Once that is working, I'll consider adding the following additional logic:

  • Only implement the aforementioned functionality if BlogDraftPlugin is installed.
  • Add the following trac.ini options:
    • notify_if_draft
    • notify_author_if_draft, which can over-ride the always_notify_author option.

If anyone else is interested in this feature, please let me know if you have any comments.

comment:3 Changed 14 years ago by osimons

The draft plugin is really just an example, and other variations may appear in other plugins. It would seem to me that the general solution would be to have notification plugin check permission to recipients, and only send to recipients that have permission to read the blog post.

Disclaimer: I don't know any FullBlogNotificationPlugin details - only the FullBlogPlugin with sample plugins.

comment:4 Changed 14 years ago by Ryan J Ollos

Owner: changed from Nick Loeve to Ryan J Ollos

Reassigning ticket since I am now maintainer of the plugin.

comment:5 Changed 14 years ago by Ryan J Ollos

Component: FullBlogNotificationPluginFullBlogAnnouncementsPlugin
Owner: changed from Ryan J Ollos to Robert Corsaro

Moving this over to the FullBlogAnnouncementsPlugin to work on it there.

comment:6 Changed 14 years ago by Robert Corsaro

I have a trunk version of FullBlogAnnouncements in AnnouncerPlugin trunk. Please use that as the base for any >0.11 work that you do.

comment:7 Changed 14 years ago by Robert Corsaro

Component: FullBlogAnnouncementsPluginAnnouncerPlugin
Owner: changed from Robert Corsaro to Stephen Hansen

comment:8 in reply to:  7 Changed 14 years ago by Ryan J Ollos

Replying to doki_pen: In regard to owner changed from doki_pen to ixokai. in comment:7, did you intend to do that? It might be that the component has not been transferred to you from the previous owner (I saw this behavior with some plugins I adopted), and to fix it you just need to send an email to the tho admin otaku42.

comment:9 in reply to:  6 Changed 14 years ago by Ryan J Ollos

Replying to doki_pen:

I have a trunk version of FullBlogAnnouncements in AnnouncerPlugin trunk. Please use that as the base for any >0.11 work that you do.

Sorry that I haven't had any time to follow-up on things lately, but I intend to continue with testing and development soon.

Do you intend to keep all of the plugins with the AnnouncerPlugin? I think that is a good idea, and if you do intend to do that I think it would also be good to remove the existing pages for FullBlogAnnouncementsPlugin and the other AnnouncerPlugin plugins, and make them sub-wiki-pages of the AnnouncerPlugin.

I'd be happy to help with this, I just don't want to do anything with the documentation that is outside of whatever you have in mind.

comment:10 Changed 14 years ago by anonymous

Owner: changed from Stephen Hansen to anonymous
Status: newassigned

Sounds good. Don't worry about me, I'm pretty easy going. I'm just happy to have any help that I can get!

comment:11 Changed 14 years ago by Ryan J Ollos

I'll do the same for the other two AnnouncerPlugin plugins if it looks okay with you.

comment:12 Changed 14 years ago by Steffen Hoffmann

Cc: Robert Corsaro Steffen Hoffmann added; anonymous removed
Keywords: blog added
Owner: changed from anonymous to Ryan J Ollos
Status: assignednew
Summary: When `draft` is specified in categories, email should not be sentDon't send blog announcement, when `draft` is specified in categories

This is just a friendly reminder, that things seem to got stuck by not having the right persons filled into the right fields of this ticket.

Ryan shouldn't wait forever, if he's still up for the task of reorganizing wiki pages for AnnouncerPlugin plugins, right? Let him go on, please.

comment:13 Changed 14 years ago by Ryan J Ollos

Ticket for this same feature in the FullBlogNotificationPlugin is #7604.

comment:14 Changed 14 years ago by Robert Corsaro

Proceed! Proceed!

comment:15 Changed 14 years ago by Ryan J Ollos

Keywords: FullBlogPlugin added

comment:16 Changed 14 years ago by Robert Corsaro

So I've resumed work and I'm wondering were we are with this? I like the idea of using permissions to stop drafts from being sent. This is something I will implement globally in announcer via the filter interface (which I was going to drop, but I'm not going to now). On concern I have, although not a big concern, is that the announcement will show the post as modified instead of new when it changes from draft to live. I guess this should really be handled by the event publisher and not announcer. But think about it. When going from draft to live, issue a created event, instead of a modified event. Or even a new type of event called 'published' or something. For now, I'll leave things as is and you'll have to wait for the permissions to be put in place to get this functionality.

comment:17 Changed 13 years ago by Ryan J Ollos

Priority: normalhigh
Status: newassigned

comment:18 Changed 12 years ago by Ryan J Ollos

Status: assignednew

comment:19 in reply to:  17 ; Changed 11 years ago by Steffen Hoffmann

Priority: highnormal

Replying to rjollos:

Obviously not true, sorry. I'm just going through ticket to set the stage for squeezing more Announcer issues as time permits.

comment:20 in reply to:  19 Changed 11 years ago by Ryan J Ollos

Replying to hasienda:

Obviously not true, sorry.

I've used the Priority = high on my projects to generate a list what I will work on next. I understand that this will cause problems when collaborating on project, so I will find some other way to track tickets that need attention.

comment:21 Changed 7 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.