Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPlanning issue for Email Notifications GSoC project #1421
Comments
jywarren
added this to the Email notifications overhaul milestone
May 19, 2017
jywarren
assigned
StlMaris123
May 19, 2017
jywarren
referenced this issue
May 19, 2017
Open
wiki page edit email notifications (max 1 per hour) #396
This comment has been minimized.
This comment has been minimized.
Thank you so much @jywarren This is a great place to start. What is the validity of the phases? (Period you should take to complete the phases) |
This comment has been minimized.
This comment has been minimized.
I think each one could plausibly be done in a week, maybe less -- what do you think? Maybe the second one in 3 days? But you tell me, we want to leave room for you to figure things out if you run into trouble. |
This comment has been minimized.
This comment has been minimized.
@jywarren Is it possible to have a call? There are some things I would like to get clear before embarking on the issue |
This comment has been minimized.
This comment has been minimized.
Yeah I also think that it is a good idea to have a small voice call and clear all the doubts. then it'll be more productive to boost up the first task. |
This comment has been minimized.
This comment has been minimized.
I am fully available. Tell me when we can schedule one
…On Fri, May 26, 2017 at 4:52 PM, Ujitha Perera ***@***.***> wrote:
Yeah I also think that it is a good idea to have a small voice call and
clear all the doubts. then it'll be more productive to boost up the first
task.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2SPRwK44K6PJ8slKlh7CBk_a-Unfks5r9tkjgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
Yes, I'd be happy to. I'll be available on Thursday, but it may have to wait until Monday for us to find a time as I'm currently on a trip. What times are you free on Thursday? Thanks! |
This comment has been minimized.
This comment has been minimized.
Whole day on Thursday
…On Wed, May 31, 2017 at 5:23 AM, Jeffrey Warren ***@***.***> wrote:
Yes, I'd be happy to. I'll be available on Thursday, but it may have to
wait until Monday for us to find a time as I'm currently on a trip. What
times are you free on Thursday? Thanks!
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2a4h4SMmK7pVhUGZBwKMq8Rbxj_dks5r_M8sgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
Thursday means next Thursday(8th) right ?. I'm in +5.30 GMT time zone.
After 7.00 pm, I am available for a voice call. Since US and Sri Lanka have
around 12 hours time difference, 7.00pm for Sri Lanka would be early in the
morning for US, I guess. And would like to know time difference for Stella
also. Then we can arrange appropriate time to have the call.
|
This comment has been minimized.
This comment has been minimized.
I'm in, -4 GMT I believe - boston, in the US. So perhaps early Friday
(before noon) could work? How about 10 et?
http://everytimezone.com/#2017-6-2,120,cn3
…On May 31, 2017 8:39 AM, "Ujitha Perera" ***@***.***> wrote:
Thursday means next Thursday(8th) right ?. I'm in +5.30 GMT time zone.
After 7.00 pm, I am available for a voice call. Since US and Sri Lanka have
around 12 hours time difference, 7.00pm for Sri Lanka would be early in the
morning for US, I guess. And would like to know time difference for Stella
also. Then we can arrange appropriate time to have the call.
On Wed, May 31, 2017 at 9:06 AM StellaMaris Njage <
***@***.***>
wrote:
> Whole day on Thursday
>
>
> On Wed, May 31, 2017 at 5:23 AM, Jeffrey Warren <
***@***.***>
> wrote:
>
> > Yes, I'd be happy to. I'll be available on Thursday, but it may have to
> > wait until Monday for us to find a time as I'm currently on a trip.
What
> > times are you free on Thursday? Thanks!
> >
> > —
> > You are receiving this because you were assigned.
> > Reply to this email directly, view it on GitHub
> > <#1421#
issuecomment-305063727
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/
AMdR2a4h4SMmK7pVhUGZBwKMq8Rbxj_dks5r_M8sgaJpZM4NgiBn
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1421 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AMZR7TOdQGjVoqlxSAKo-
zOEP1ccD9a7ks5r_OA5gaJpZM4NgiBn>
> .
>
--
Sent from Gmail Mobile
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ9RNL7G0RZRM3-S4XGfBx3PROQ-rks5r_V-OgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
Hi Jeff, 10:00 AM is okay
On Wed, May 31, 2017 at 6:35 PM, Jeffrey Warren <notifications@github.com>
wrote:
… I'm in, -4 GMT I believe - boston, in the US. So perhaps early Friday
(before noon) could work? How about 10 et?
http://everytimezone.com/#2017-6-2,120,cn3
On May 31, 2017 8:39 AM, "Ujitha Perera" ***@***.***> wrote:
> Thursday means next Thursday(8th) right ?. I'm in +5.30 GMT time zone.
> After 7.00 pm, I am available for a voice call. Since US and Sri Lanka
have
> around 12 hours time difference, 7.00pm for Sri Lanka would be early in
the
> morning for US, I guess. And would like to know time difference for
Stella
> also. Then we can arrange appropriate time to have the call.
> On Wed, May 31, 2017 at 9:06 AM StellaMaris Njage <
> ***@***.***>
> wrote:
>
> > Whole day on Thursday
> >
> >
> > On Wed, May 31, 2017 at 5:23 AM, Jeffrey Warren <
> ***@***.***>
> > wrote:
> >
> > > Yes, I'd be happy to. I'll be available on Thursday, but it may have
to
> > > wait until Monday for us to find a time as I'm currently on a trip.
> What
> > > times are you free on Thursday? Thanks!
> > >
> > > —
> > > You are receiving this because you were assigned.
> > > Reply to this email directly, view it on GitHub
> > > <#1421#
> issuecomment-305063727
> > >,
> > > or mute the thread
> > > <
> > https://github.com/notifications/unsubscribe-auth/
> AMdR2a4h4SMmK7pVhUGZBwKMq8Rbxj_dks5r_M8sgaJpZM4NgiBn
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1421#
issuecomment-305073078
> >,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-
auth/AMZR7TOdQGjVoqlxSAKo-
> zOEP1ccD9a7ks5r_OA5gaJpZM4NgiBn>
> > .
> >
> --
> Sent from Gmail Mobile
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1421 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABfJ9RNL7G0RZRM3-
S4XGfBx3PROQ-rks5r_V-OgaJpZM4NgiBn>
> .
>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2d7qlagGjP5gO8gDx38TlhQnqKZ_ks5r_YipgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
10am would be really great, i'll look for you then, @ujithaperera is that OK? |
This comment has been minimized.
This comment has been minimized.
I also made some additional suggestions and edits to break up into additional phases. @StlMaris123 - what do you think of these changes? See how I'm making it into as small components as possible so we can publish the code and try it out incrementally and step by step, rather than having to have all the parts running all at once? |
This comment has been minimized.
This comment has been minimized.
Hi, I a ready for the call
…On Thu, Jun 1, 2017 at 9:20 PM, Jeffrey Warren ***@***.***> wrote:
I also made some additional suggestions and edits to break up into
additional phases. @StlMaris123 <https://github.com/stlmaris123> - what
do you think of these changes? See how I'm making it into as small
components as possible so we can publish the code and try it out
incrementally and step by step, rather than having to have all the parts
running all at once?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2TWhve0Ats2CKAOicWyxLlOCoEogks5r_wDlgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
Yes Jeff, I am available. Can you please create an google calender event
and share with me. Then it would be a great help for me to understand exact
time and date in my local.
|
This comment has been minimized.
This comment has been minimized.
hi, all, i'm in the chatroom now! |
This comment has been minimized.
This comment has been minimized.
https://riot.im/app/#/room/#publiclab:matrix.org or chat.publiclab.org |
This comment has been minimized.
This comment has been minimized.
Hmm, it looks like we didn't manage to sync timezones. I could try again on Monday though. This would be the same as the time I linked to above -- please click the link to see: http://everytimezone.com/#2017-6-5,120,cn3 The chart says it's 7:30PM in +5.5 (@ujithaperera), and 5:00PM in +3 (@StlMaris123). Will that work? Can you read over teh changes I made in the plan above, before then, and write back with some questions here? Thank you! |
This comment has been minimized.
This comment has been minimized.
Actually I am available now. I joined to the chat room. but still finding a way to connect to you |
This comment has been minimized.
This comment has been minimized.
ah ok, but is StellaMaris available? It's evening there now. |
This comment has been minimized.
This comment has been minimized.
she said that she is available. But it's looks like she is not in the chat room right now. |
This comment has been minimized.
This comment has been minimized.
It looks like she may have joined at 10am at her local time, and is probably offline now (as should be, on a friday night -- you too!) But will Monday work for you at the time I linked to above? |
This comment has been minimized.
This comment has been minimized.
yes :) . I'm available on Monday. |
This comment has been minimized.
This comment has been minimized.
On Fri, Jun 2, 2017 at 5:28 PM, Ujitha Perera ***@***.***> wrote:
yes :) . I'm available on Monday.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2fz5qGH0Ydw3EHTUkS0Ze39YSTj_ks5sABwTgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
sorry Stella, we won't ask you to join a call right now, it's too late! See
you monday?
On Fri, Jun 2, 2017 at 10:43 AM, StellaMaris Njage <notifications@github.com
… wrote:
|
This comment has been minimized.
This comment has been minimized.
5 PM, my local time? It is fine .
On Fri, Jun 2, 2017 at 5:51 PM, Jeffrey Warren <notifications@github.com>
wrote:
… sorry Stella, we won't ask you to join a call right now, it's too late! See
you monday?
On Fri, Jun 2, 2017 at 10:43 AM, StellaMaris Njage <
***@***.***
> wrote:
>
|
This comment has been minimized.
This comment has been minimized.
super, see you both then! Let's try for the Riot chatroom I linked to
above, it's open source and has an experimental video chat feature :-)
On Fri, Jun 2, 2017 at 11:03 AM, StellaMaris Njage <notifications@github.com
… wrote:
5 PM, my local time? It is fine .
On Fri, Jun 2, 2017 at 5:51 PM, Jeffrey Warren ***@***.***>
wrote:
> sorry Stella, we won't ask you to join a call right now, it's too late!
See
> you monday?
>
> On Fri, Jun 2, 2017 at 10:43 AM, StellaMaris Njage <
> ***@***.***
> > wrote:
>
> >
|
This comment has been minimized.
This comment has been minimized.
Is our meeting still on? It should be in about 30 minutes
On Fri, Jun 2, 2017 at 6:06 PM, Jeffrey Warren <notifications@github.com>
wrote:
… super, see you both then! Let's try for the Riot chatroom I linked to
above, it's open source and has an experimental video chat feature :-)
On Fri, Jun 2, 2017 at 11:03 AM, StellaMaris Njage <
***@***.***
> wrote:
> 5 PM, my local time? It is fine .
>
> On Fri, Jun 2, 2017 at 5:51 PM, Jeffrey Warren ***@***.***
>
> wrote:
>
> > sorry Stella, we won't ask you to join a call right now, it's too late!
> See
> > you monday?
> >
> > On Fri, Jun 2, 2017 at 10:43 AM, StellaMaris Njage <
> > ***@***.***
> > > wrote:
> >
> > >
|
This comment has been minimized.
This comment has been minimized.
hi @StlMaris123 , I'm available. |
This comment has been minimized.
This comment has been minimized.
We are coordinating in the chat room: https://riot.im/app/#/room/#publiclab:matrix.org |
This comment has been minimized.
This comment has been minimized.
… On Mon, Jun 5, 2017 at 4:35 PM, Ujitha Perera ***@***.***> wrote:
hi @StlMaris123 <https://github.com/stlmaris123> ,
I'm available.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2f7a3neh37NqeQ7No2lxKQpcm93Hks5sBAQZgaJpZM4NgiBn>
.
|
jywarren
added
the
summer-of-code
label
Jun 12, 2017
This comment has been minimized.
This comment has been minimized.
I adjusted the line:
adding the unit test idea. Model methods like the one you're working on should be unit testable. Thanks! |
jywarren
referenced this issue
Jun 19, 2017
Merged
Followers not following given tags fixes#1421 #1472
This comment has been minimized.
This comment has been minimized.
I made some updates to, and added detail to, Phase 2, and reviewed this with @ujithaperera -- as soon as #1481 and #1507 are complete, we can start on those! |
This comment has been minimized.
This comment has been minimized.
hi @StlMaris123 , unfortunately we were unable to windup the session properly. may be this update still in your local. Anyway I was talking about, @jywarren I have explained the requirement of a RSS feed and describe the way that RSS feed works for the mail notification for the subscriptions. But we have a doubt regarding the method Hope @StlMaris123 will catch the things up after she established her connection back. |
This comment has been minimized.
This comment has been minimized.
In Rails you can pass time as values such as https://github.com/publiclab/plots2/blob/master/app/controllers/stats_controller.rb#L14 However watch out because some models (from previous Drupal system) do not have native Rails-style timestamps. And the naming is a bit inconsistent. Check out the link above to see how you can use ranges of time for various models in the app. Start with smaller pieces and work out from there, and open a PR sooner rather than later so everyone can see your work! |
This comment has been minimized.
This comment has been minimized.
Hello Jeff, Ujitha,
@ujitha, Based on https://github.com/publiclab/
plots2/blob/master/app/models/node.rb, we are checking whether the
particular tag object has any subscriptions. This is the tag we are saving
on line:
https://github.com/publiclab/plots2/blob/master/app/models/node.rb#L662
…On Wed, Jul 19, 2017 at 1:08 AM, Jeffrey Warren ***@***.***> wrote:
In Rails you can pass time as values such as 1.weeks or 3.months -- weird
but true. And then you can make queries like in these methods:
https://github.com/publiclab/plots2/blob/master/app/
controllers/stats_controller.rb#L14
However watch out because some models (from previous Drupal system) do not
have native Rails-style timestamps. And the naming is a bit inconsistent.
Check out the link above to see how you can use ranges of time for various
models in the app. Start with smaller pieces and work out from there, and
open a PR sooner rather than later so everyone can see your work!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMdR2VUFfP7tfRqKExmrQrcx-ZkdWCMAks5sPSzkgaJpZM4NgiBn>
.
|
This comment has been minimized.
This comment has been minimized.
@StlMaris123 since your are getting test proven correct results then most of the time your implementation process doesn't matter actually. I just wanted to let you know about |
StlMaris123
referenced this issue
Aug 22, 2017
Closed
Active Scheduling of emails (pending Rails 4.2) #1584
This comment has been minimized.
This comment has been minimized.
Hi, all! I'm closing this up as it's now reflected in #1584 by @StlMaris123 and #2027 which I just created. Thanks everybody!!! |
This comment has been minimized.
This comment has been minimized.
And congrats to @StlMaris123 for completing a great deal of work on this -- just a few more parts to go! |
jywarren commentedMay 19, 2017
•
edited
This issue is to help plan out the stages of @StlMaris123's summer project on Email Notifications. Let's try to break this into phases so that Stella can tackle this project in self-contained sections that can come online one by one, starting with basic issues and moving on to more complex ones that build on earlier work.
Ideally we'll be able to see earlier phases come online at PublicLab.org, and see how they work in the real world before moving on to later phases.
Links
Here we'll organize the overall issue, but we can break out individual steps into their own issue as we go, so the comments section doesn't get overwhelming.
Phase 1: Email notifications without scheduling
#396 outlines a way to get emails sending to tag subscribers even if tags are added up to an hour after the post is published (currently a shortcoming of the tag notifications system). To break this up:
followers_who_dont_follow_tags
in/app/models/tag.rb
:followers_who_dont_follow_tags
followers_who_dont_follow_tags
to determine who to send emails to -- using thenode.tags
as a reference for who's already been notified., but after this line: https://github.com/publiclab/plots2/blob/master/app/models/node.rb#L668
notify_tag_added
Phase 2: what's happened in the past X time period?
user.content_followed_in_past_period(timePeriod)
oruser.followed_nodes_updated_since_time_ago(timePeriod)
that returns nodes which are: a) followed/liked or followed by tag, b) updated, commented upon, or posted within the pasttimePeriod
/profile/USERNAME/following
(maybe.rss
?) so we can visually confirm that it's working in production, and people can subscribe to an RSS feed of this.Phase 2.5: email templating
user.content_followed_in_past_period(timePeriod)
in an email with subject lineUpdates from PublicLab.org in the last TIME_PERIOD
(we could default to week, for now) and a note thatthis is based on content and topic tags you follow; manage your subscriptions here
-- complete inplots2/app/models/user.rb
Lines 313 to 315 in c6b2d34
/subscription/digest
, so we can test this without needing to commit to ActiveJob yet (moved to #2027)Phase 3: ActiveJob scheduling
This has been moved to #1584
This is just preliminary - but should be a good example of how these projects can be broken up, and although I know it is a different order from your proposal, I think it's a good place to start.
After this, we could work on Subscriptions as a phase, using the ActiveJob work to send a daily email as an alternative option to the current "as it happens" email notifications. Then we might consider the Reply by email which will be pretty amazing. What do you think? Do you have more steps to add above to break this into even smaller pieces, or want to try adding phases with individual steps for the Subscriptions or Replies phases? Thanks, Stella!!!