plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Suggestion: Follow people on Public Lab

Open SidharthBansal opened this issue 7 years ago • 17 comments

Many websites allow users to follow each other and form web. By this people will be able to know what their friends are doing. @ebarry @jywarren @publiclab/mentors what do you suggest?

SidharthBansal avatar Dec 07 '18 01:12 SidharthBansal

Yes, I think that's a great idea.. We've follow for tags and that is used widely... I think we should implement follow for people too..

oorjitchowdhary avatar Dec 07 '18 10:12 oorjitchowdhary

@oorjitchowdhary This issue need not be implemented until @jywarren @ebarry agrees upon it.

SidharthBansal avatar Dec 07 '18 11:12 SidharthBansal

@gauravano @jywarren is this functionality already made? I could not find it.

SidharthBansal avatar Dec 20 '18 08:12 SidharthBansal

I would like to work on this issue. I have a rough idea of how this can be implemented! We can discuss this further! Thank you!

shubhscoder avatar Dec 22 '18 10:12 shubhscoder

Hi @shubhscoder we need to first take input from @jywarren whether this issue needs to be further explored or not. He is right now busy, you can work on other issues if you want. Thanks @shubhscoder

SidharthBansal avatar Dec 22 '18 10:12 SidharthBansal

Much of the following code is named ----Selection - like NodeSelection for liking nodes, TagSelection for following tags. We have a UserSelection area but I don't know if it's hooked up to work!

https://github.com/publiclab/plots2/search?q=UserSelection

Looks like not! Most of the code is here:

https://github.com/publiclab/plots2/blob/5c0d96274bd0be15feba69d8f30093082402ace5/app/models/user_selection.rb

It doesn't really look like it was ever built out: https://github.com/publiclab/plots2/commits/5c0d96274bd0be15feba69d8f30093082402ace5/app/models/user_selection.rb

But if you search for the TagSelection and NodeSelection code, you can see how they are set up. I hope that helps! We'd have to modify the notify methods to ensure we are notifying everyone, but not more than once. That code is pretty thoroughly tested so we should be able to monitor carefully what new code does to change the behavior.

jywarren avatar Dec 22 '18 12:12 jywarren

Much of the following code is named ----Selection - like NodeSelection for liking nodes, TagSelection for following tags. We have a UserSelection area but I don't know if it's hooked up to work!

https://github.com/publiclab/plots2/search?q=UserSelection

Looks like not! Most of the code is here:

https://github.com/publiclab/plots2/blob/5c0d96274bd0be15feba69d8f30093082402ace5/app/models/user_selection.rb

It doesn't really look like it was ever built out: https://github.com/publiclab/plots2/commits/5c0d96274bd0be15feba69d8f30093082402ace5/app/models/user_selection.rb

But if you search for the TagSelection and NodeSelection code, you can see how they are set up. I hope that helps! We'd have to modify the notify methods to ensure we are notifying everyone, but not more than once. That code is pretty thoroughly tested so we should be able to monitor carefully what new code does to change the behavior.

jywarren avatar Dec 22 '18 12:12 jywarren

Oh this is really cool. We have another project to work upon. Let's start this up. @shubhscoder as per https://github.com/publiclab/plots2/issues/4164#issuecomment-449560828 please go ahead. Thanks everyone!!!

SidharthBansal avatar Dec 22 '18 12:12 SidharthBansal

Thank you so much! I am starting now !

On Sat, Dec 22, 2018, 5:43 PM Sidharth Bansal [email protected] wrote:

Oh this is really cool. We have another project to work upon. Let's start this up. @shubhscoder https://github.com/shubhscoder as per #4164 (comment) https://github.com/publiclab/plots2/issues/4164#issuecomment-449560828 please go ahead. Thanks everyone!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4164#issuecomment-449565972, or mute the thread https://github.com/notifications/unsubscribe-auth/ARofxYzuM5qAMpkVFYryWeW7G98nktiUks5u7iH3gaJpZM4ZHmZw .

shubhscoder avatar Dec 22 '18 12:12 shubhscoder

@SidharthBansal I think this feature is already implemented. I have attached some screenshots regarding the same! people_who_follow_user unfollow_feature people_i_follow follow_feature

shubhscoder avatar Dec 23 '18 09:12 shubhscoder

So, users can follow each other. Are they getting any notifications regarding their followers? If a person is following someone then they must get the notifications. Can you please check this? We are currently having email notification system at PL.

SidharthBansal avatar Dec 23 '18 10:12 SidharthBansal

Ok I will check that out !

On Sun, Dec 23, 2018, 4:20 PM Sidharth Bansal [email protected] wrote:

So, users can follow each other. Are they getting any notifications regarding their followers? If a person is following someone then they must get the notifications. Can you please check this? We are currently having email notification system at PL.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4164#issuecomment-449628289, or mute the thread https://github.com/notifications/unsubscribe-auth/ARofxR5e0K9O_GdpaEr_w0Ap0p929mpHks5u71_agaJpZM4ZHmZw .

shubhscoder avatar Dec 23 '18 14:12 shubhscoder

@SidharthBansal The notification system has not been implemented. I will start working on that now. Thank you!

shubhscoder avatar Dec 24 '18 07:12 shubhscoder

Great!!!

On Mon, Dec 24, 2018, 1:10 PM Shubham Sangamnerkar <[email protected] wrote:

@SidharthBansal https://github.com/SidharthBansal The notification system has not been implemented. I will start working on that now. Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/4164#issuecomment-449697856, or mute the thread https://github.com/notifications/unsubscribe-auth/AUACQ5KNF0ixK-48mbBmVfM7Gmqi0818ks5u8ITrgaJpZM4ZHmZw .

SidharthBansal avatar Dec 24 '18 11:12 SidharthBansal

This one is interesting. @shubhscoder let me know if you need any help. Thanks!

grvsachdeva avatar Dec 26 '18 13:12 grvsachdeva

@gauravano I have made a PR for this. Can you please check if everything is good or we need some more additions? Thank you so much!

shubhscoder avatar Dec 27 '18 09:12 shubhscoder

I believe this is now implemented, and am closing, but if folks could test it out that would be great! #6190

jywarren avatar Sep 27 '19 15:09 jywarren