plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Drafts should not trigger email notifications for mentioned @usernames

Open jywarren opened this issue 7 years ago • 5 comments

Link to #3845, but here's the code:

https://github.com/publiclab/plots2/blob/087d1df8968d58cae97d0d30d45847d55c9944d9/app/models/node.rb#L219-L225

I think probably this is the key section:

https://github.com/publiclab/plots2/blob/087d1df8968d58cae97d0d30d45847d55c9944d9/app/models/node.rb#L644-L646

We can probably use node.draft as a condition:

https://github.com/publiclab/plots2/blob/087d1df8968d58cae97d0d30d45847d55c9944d9/app/models/node.rb#L624

Love some help with this one!

jywarren avatar Jun 17 '19 22:06 jywarren

And as a follow-up, we /should/ send the notifications when it's finally published!

jywarren avatar Jun 17 '19 22:06 jywarren

Hi @jywarren on modifying the node model, do we have access to the params from the model?

StlMaris123 avatar Jun 18 '19 18:06 StlMaris123

I don't think so, but we can look at where .notify() is run from and make the modification there?

On Tue, Jun 18, 2019 at 2:40 PM StellaMaris Njage [email protected] wrote:

Hi @jywarren https://github.com/jywarren on modifying the node model, do we have access to the params from the model?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/5914?email_source=notifications&email_token=AAAF6JZU5IKKWOSOVH44NG3P3ETXVA5CNFSM4HY2XLJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7SMDA#issuecomment-503260684, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAF6J466PFXDOND2B5MN2TP3ETXVANCNFSM4HY2XLJA .

jywarren avatar Jun 18 '19 20:06 jywarren

@jywarren is help still needed here?

ericlarosa avatar Oct 13 '19 21:10 ericlarosa

hello, I would like to work on this issue can I?

swathi-0901 avatar Nov 07 '19 12:11 swathi-0901