plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Change conditions for being indicated "new contributor"

Open jywarren opened this issue 8 years ago • 9 comments

https://github.com/publiclab/plots2/blob/c7f2ce8a7ac9428bd32dc978213f3cbe08ad317e/app/models/node_tag.rb#L24

Here, if Node.where(:uid => @uid).length === 1 determines if you're a new contributor, which is not quite right -- someone may have contributed only one node, but they might've done it two years ago, and so new contributor perhaps needs an additional condition.

What about if it's their first post, AND the post is less than 1 month old? @publiclab/community-reps ?

This code appears in 2 places (and in #3864 we may be trying to consolidate these):

https://github.com/publiclab/plots2/blob/af295d7637420c65990c7ae7ce2eca17a5f569dc/app/models/node_tag.rb#L22-L25

https://github.com/publiclab/plots2/blob/4f028aad99913a8e995246d890228cc6478497f1/app/models/user.rb#L53-L56

jywarren avatar Oct 31 '18 13:10 jywarren

I want to work on this

narnt avatar Nov 01 '18 11:11 narnt

oh that would be great!

On Thu, Nov 1, 2018 at 7:29 AM narnt [email protected] wrote:

I want to work on this

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/3865#issuecomment-435012601, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ4Lr5hr6tWgCLPs5IEG_p6jOPqq9ks5uqtr0gaJpZM4YEHYR .

jywarren avatar Nov 01 '18 19:11 jywarren

Hi @narnt -- have you had any luck with this so far? If you want a partner or have moved on, I'd love to step in and assist you/take the reins, as appropriate. Or if the issue is solved and ready to be closed, that's helpful information, too!

Thanks!

quinn-codes-synthesis avatar Nov 07 '18 12:11 quinn-codes-synthesis

Surely would want to work, if any problems are faced, I would love to help @narnt...Thanks!

coderjolly avatar Nov 07 '18 19:11 coderjolly

hi @quinn-codes-synthesis and @CoderJolly ! thank you for your offers of assistance! I just have had a break, but I have struggled with anoter issue: https://github.com/publiclab/plots2/issues/3707 Can you check it out and share your ideas? Thank you!

narnt avatar Nov 07 '18 20:11 narnt

Hi @jywarren , I need help with my PR!

narnt avatar Nov 11 '18 09:11 narnt

Pls tell @narnt, I will try to help u out

coderjolly avatar Nov 11 '18 12:11 coderjolly

@CoderJolly thank you! Link to my PR is above. There are some issues: https://codeclimate.com/github/publiclab/plots2/pull/3928 How can I resolve it?

narnt avatar Nov 11 '18 13:11 narnt

Hi! OK, i'll reply back in the PR!

jywarren avatar Nov 11 '18 19:11 jywarren