Skip to content
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

Change conditions for being indicated "new contributor" #3865

Closed
jywarren opened this issue Oct 31, 2018 · 9 comments
Closed

Change conditions for being indicated "new contributor" #3865

jywarren opened this issue Oct 31, 2018 · 9 comments
Labels
fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute Ruby

Comments

@jywarren
Copy link
Member

jywarren commented Oct 31, 2018

return "<span class = 'label label-success'><i>New Contributor</i></span>".html_safe if Node.where(:uid => @uid).length === 1

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):

def new_author_contributor
@uid = uid
return "<span class = 'label label-success'><i>New Contributor</i></span>".html_safe if Node.where(:uid => @uid).length === 1
end

def new_contributor
@uid = id
return "<span class = 'label label-success'><i>New Contributor</i></span>".html_safe if Node.where(:uid => @uid).length === 1
end

@jywarren jywarren added help wanted requires help by anyone willing to contribute Ruby fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet labels Oct 31, 2018
@narnt
Copy link
Contributor

narnt commented Nov 1, 2018

I want to work on this

@jywarren
Copy link
Member Author

jywarren commented Nov 1, 2018 via email

@quinn-codes-synthesis
Copy link
Contributor

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!

@coderjolly
Copy link
Member

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

@narnt
Copy link
Contributor

narnt commented Nov 7, 2018

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: #3707
Can you check it out and share your ideas? Thank you!

@narnt
Copy link
Contributor

narnt commented Nov 11, 2018

Hi @jywarren , I need help with my PR!

@coderjolly
Copy link
Member

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

@narnt
Copy link
Contributor

narnt commented Nov 11, 2018

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

@jywarren
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fto-candidate issues which are meant to be solved by first timers but aren't well-formatted yet help wanted requires help by anyone willing to contribute Ruby
Projects
None yet
Development

No branches or pull requests

4 participants