-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Contributors Page with Powertag searches #2029
Comments
I'll give it a shot! |
awesome, thank you!
…On Thu, Jan 18, 2018 at 5:04 PM, kellyjacksonio ***@***.***> wrote:
I'll give it a shot!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2029 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ_J1VVk9PTzGDCTej8TDuwZR-Gt3ks5tL7_sgaJpZM4RhczV>
.
|
one question: are you wanting the code in lines 60-62 to be replaced with the wildcard conditional, or do i create another if / else statement prior to lines 60-62? |
Alright, gave it my best shot! Please review and let me know what I could have done better |
@kellyjacksonio You need to create an if statement before lines 60-62. |
Thanks for reaching out to first-timers. I would like to resolve this issue. It's not clear to me whether or not @kellyjacksonio is still working on it. If so maybe I could help? |
Hi, @ina-mastabba -- maybe you could try picking up where @kellyjacksonio left off, in #2048? Otherwise there are plenty of issues to go around! https://publiclab.github.io/community-toolbox/#r=all Thanks!! |
I tried a couple of permutations of the conditional in _contributer.html.erb
and...
but this test fails:
test_validate_unused_tag#Minitest::Result (83.86s) Otherwise the app seems to work as requested. Any suggestions? |
Seems like I can either re-write the test or do something like:
|
Try out this
Thanks!!! |
That results in the same failure. |
Oh Sorry I didn't read the test....You need to change the tests too... |
No worries,..will do. |
Great, thank you! Indeed, the test formerly "asserted" that there be no contributors listed on this page. Now that test can change! Thanks!!! |
I actually ended up not changing the test but changing the wildcard warning message to include the text "No contributors for that tag" so that it also meets the requirement of the assert_tag test. So the message reads: "No contributors for that tag. Wildcard tag search detected. Wildcard tag searches use the * asterisk in their URLs, and will not show contributor listings." |
Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
🤔 What you will need to know.
Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.
Please describe the problem
Contributors page available at www.publiclab.org/contributors/tagname works fine when tagname is a normal tag like balloon but when it is a powertag having wildcard character asterisk, eg tagname is balloon* then it shows no contributors.
We supply tagname as balloon* to get all the tags starting by balloon eg balloon-mapping ,balloon etc in the url at Public Labs
Solution
A message to indicate the users that for a wildcard search, contributors cannot be listed. So, requesting users to not enter wildcards.
Message like
📋 Step by Step
🙋♀️ Claim this issue: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!
Add
@wildcard = true if params[:id][-1..-1] == '*'
inplots2/app/controllers/tag_controller.rb
Line 294 in e606fc2
Also add the custom message in the if-else statement in the view. Make the
if @wildcard
as the first condition of the if-else loop inplots2/app/views/tag/contributors.html.erb
Lines 60 to 62 in e606fc2
💾 Commit your changes
🔀 Start a Pull Request.
🏁 Done Ask in comments for a review :)
🤔❓ Questions?
Leave a comment below!
We encourage you to link to this issue by mentioning the issue # in your pull request, so we can see if someone's already started on it. If someone seem stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!
Thank you!
Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.
The text was updated successfully, but these errors were encountered: