Plots2: Change conditions for being indicated "new contributor"

Created on 31 Oct 2018  Â·  9Comments  Â·  Source: publiclab/plots2

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

Ruby fto-candidate help wanted

Most helpful comment

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

All 9 comments

I want to work on this

oh that would be great!

On Thu, Nov 1, 2018 at 7:29 AM narnt notifications@github.com 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
.

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!

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

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!

Hi @jywarren , I need help with my PR!

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

@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?

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grvsachdeva picture grvsachdeva  Â·  3Comments

milaaraujo picture milaaraujo  Â·  3Comments

ebarry picture ebarry  Â·  3Comments

bronwen9 picture bronwen9  Â·  3Comments

grvsachdeva picture grvsachdeva  Â·  3Comments