-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Planning issue for Email Notifications GSoC project #1421
Comments
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) |
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. |
@jywarren Is it possible to have a call? There are some things I would like to get clear before embarking on the issue |
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. |
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>
.
|
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! |
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>
.
|
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.
|
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>
.
|
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>
.
|
10am would be really great, i'll look for you then, @ujithaperera is that OK? |
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? |
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>
.
|
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.
|
hi, all, i'm in the chatroom now! |
https://riot.im/app/#/room/#publiclab:matrix.org or chat.publiclab.org |
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! |
Actually I am available now. I joined to the chat room. but still finding a way to connect to you |
ah ok, but is StellaMaris available? It's evening there now. |
she said that she is available. But it's looks like she is not in the chat room right now. |
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? |
yes :) . I'm available on Monday. |
😊, True that. I thought it was 10:00 AM my local time
…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>
.
|
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:
😊, True that. I thought it was 10:00 AM my local time
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>
> .
>
—
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/AABfJ2rkXR_c1qrRqnt-zAAhouN9r9LXks5sAB93gaJpZM4NgiBn>
.
|
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:
> 😊, True that. I thought it was 10:00 AM my local time
>
> 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#
issuecomment-305804572
> >,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
> AMdR2fz5qGH0Ydw3EHTUkS0Ze39YSTj_ks5sABwTgaJpZM4NgiBn>
>
> > .
> >
>
> —
> 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/AABfJ2rkXR_c1qrRqnt-
zAAhouN9r9LXks5sAB93gaJpZM4NgiBn>
> .
>
—
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/AMdR2SbEfGMowGzccdDjV0tg7zX7dxg3ks5sACFjgaJpZM4NgiBn>
.
|
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:
>
> > 😊, True that. I thought it was 10:00 AM my local time
> >
> > 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#
> issuecomment-305804572
> > >,
> > > or mute the thread
> > > <https://github.com/notifications/unsubscribe-auth/
> > AMdR2fz5qGH0Ydw3EHTUkS0Ze39YSTj_ks5sABwTgaJpZM4NgiBn>
> >
> > > .
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1421#
issuecomment-305808504
> >,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-
auth/AABfJ2rkXR_c1qrRqnt-
> zAAhouN9r9LXks5sAB93gaJpZM4NgiBn>
> > .
>
> >
>
> —
> 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/
AMdR2SbEfGMowGzccdDjV0tg7zX7dxg3ks5sACFjgaJpZM4NgiBn>
> .
>
—
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/AABfJxEQ8ilxkXYp0HyGKk0JILaYAqg-ks5sACRPgaJpZM4NgiBn>
.
|
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:
> >
> > > 😊, True that. I thought it was 10:00 AM my local time
> > >
> > > 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#
> > issuecomment-305804572
> > > >,
> > > > or mute the thread
> > > > <https://github.com/notifications/unsubscribe-auth/
> > > AMdR2fz5qGH0Ydw3EHTUkS0Ze39YSTj_ks5sABwTgaJpZM4NgiBn>
> > >
> > > > .
> > > >
> > >
> > > —
> > > You are receiving this because you were mentioned.
> > > Reply to this email directly, view it on GitHub
> > > <#1421#
> issuecomment-305808504
> > >,
> > > or mute the thread
> > > <https://github.com/notifications/unsubscribe-
> auth/AABfJ2rkXR_c1qrRqnt-
> > zAAhouN9r9LXks5sAB93gaJpZM4NgiBn>
> > > .
> >
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1421#
issuecomment-305810751
> >,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
> AMdR2SbEfGMowGzccdDjV0tg7zX7dxg3ks5sACFjgaJpZM4NgiBn>
>
> > .
> >
>
> —
> 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/
AABfJxEQ8ilxkXYp0HyGKk0JILaYAqg-ks5sACRPgaJpZM4NgiBn>
> .
>
—
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/AMdR2dXgJL4bFUxAt_LYjAYxkCtbdX2Hks5sACT2gaJpZM4NgiBn>
.
|
hi @StlMaris123 , I'm available. |
We are coordinating in the chat room: https://riot.im/app/#/room/#publiclab:matrix.org |
… 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>
.
|
I adjusted the line:
adding the unit test idea. Model methods like the one you're working on should be unit testable. Thanks! |
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! |
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. |
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! |
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>
.
|
@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 |
Hi, all! I'm closing this up as it's now reflected in #1584 by @StlMaris123 and #2027 which I just created. Thanks everybody!!! |
And congrats to @StlMaris123 for completing a great deal of work on this -- just a few more parts to go! |
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 Display "activity from past day" in a list at /subscriptions/digest #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!!!
The text was updated successfully, but these errors were encountered: