Plots2: Improve in questions page when search questions by topic

Created on 21 Sep 2018  ·  25Comments  ·  Source: publiclab/plots2

We are preparing to participate in Google Code-in, and have reserved this issue for participants in GCI - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.

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.

Problem

In Questions page when i search nothing means when search input box is blank and then click search button It's giving this error page and and when I type space in search input box it's also search for ' ' (space) tag
public

📋Solution

  • [ ] 🙋 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!

  • [ ] 📝 UpdateImprove tags and search .Here should be messege when we didn't type anything and then message show ' required filed '

re

Code links….
https://github.com/publiclab/plots2/blob/5c0d96274bd0be15feba69d8f30093082402ace5/app/views/tag/_sorting.html.erb#L4

  • [ ] 💾 Commit your changes
  • [ ] 🔀 Start a Pull Request. There are two ways how you can start a pull request:
  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • [ ] 🏁 Done Ask in comments for a review :)

🤔❓ Questions?

Leave a comment below!

Is someone else already working on this?

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!

(This issue was created by First-Timers-Bot.)

gci-candidate help wanted

Most helpful comment

I believe (@)thesparks already claimed and completed the task before in #4006 , even though for some reason that PR was not merged. Also, @gauravano told me to claim a task before working on it as per GCI policy and not to submit a PR without claiming while another task is active, though all is up to all the mentors to decide.

All 25 comments

Ah - interesting! We just published some big search changes. Can you try again?

@jywarren No it's showing same error

Ah, I see -- can you reformat this issue to be like this one? https://github.com/publiclab/plots2/issues/3409

The title especially can help! Thanks!

@avsingh999 please do the changes according to jeff so that we can publish it.

@SidharthBansal @jywarren please check, If need more changes
thank you :)

This task is published on GCI dashboard. Thanks all.

Looks good to me now

So we basically want to show that this is required field error when we press the search button with a blank search bar.. right?

Hi can I claim this issue for CodeIn?

@JonathanXu1 This is a first timers only issue... so if you haven't contributed to public lab, you can go ahead

Alright thanks. I've found the line of code to be changed, but I've never used plots2 before and don't know how to navigate to the questions page in the UI.
image
Could I get a pointer?

So you're a first timer.. No need to worry.. I can assume that you're running public lab from localhost... you just have to go to localhost:3000/questions

Thanks, I figured it out. Is it too late to do a pull request?

Absolutely not. You can push your changes to all the issues which are not worked upon.

You can send a PR.

Hi, I've made pull request #4015

@avsingh999 @SidharthBansal Is it satisfactory? For some reason I'm unable to locate the task in gci anymore.

I believe the issue was first resolved in #4006. The task was likely completed too.

Also @jonathanxu1 keep in mind that you can claim and work on only one task at a time according to GCI rules.

I thought #3490 had to deal with adding links to boolean searches, not this one? I might be wrong.

My bad, I thought I was on the thread for issue #3490.

Since my solution to this has been merged, can I get a credit for this task? I can't seem to find it anywhere on GCI..

I believe (@)thesparks already claimed and completed the task before in #4006 , even though for some reason that PR was not merged. Also, @gauravano told me to claim a task before working on it as per GCI policy and not to submit a PR without claiming while another task is active, though all is up to all the mentors to decide.

Hi @JonathanXu1, we really appreciate your work but credit for this task was already given to @thesparks as she claimed and performed it earlier.

Whenever you do the task without claiming, you do it at your own risk. That's why we advice to follow the rule of "One task at a time which you have claimed". Thanks!

Hi, thanks for letting me know. I'll be aware of this for the future. :)

Was this page helpful?
0 / 5 - 0 ratings