-
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
Add more functional tests to each method in Search API #1418
Comments
Hi, |
Yes please, and we're happy to help you out with it!
…On May 25, 2017 11:28 AM, "mlendale" ***@***.***> wrote:
Hi,
Is it ok if I take this one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ35WhQCdUU1q-7_RpXC0jEze31d2ks5r9Z4NgaJpZM4NabjY>
.
|
I'd also like to help unless you're almost finished |
You are welcome to help as I will be out for a couple of days.
2017-06-01 0:48 GMT+02:00 Anton Pugach <[email protected]>:
… I'd also like to help unless you're almost finished
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ_54Baai3l-xLkBBbPo8spgQAqi3--vks5r_e5agaJpZM4NabjY>
.
|
Yes, I've made a couple suggestions and I think it's possible to open a
pull request against the existing pull request. Happy to help you do this!
…On May 31, 2017 7:10 PM, "mlendale" ***@***.***> wrote:
You are welcome to help as I will be out for a couple of days.
2017-06-01 0:48 GMT+02:00 Anton Pugach ***@***.***>:
> I'd also like to help unless you're almost finished
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1418 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AJ_54Baai3l-
xLkBBbPo8spgQAqi3--vks5r_e5agaJpZM4NabjY>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7Ls8r4kyphhvcQLkEcc7sGxgRJ6ks5r_fNcgaJpZM4NabjY>
.
|
Hello: Seems all the search endpoints [:all, :profiles, :notes, :questions, :tags] have been tested. Is there any new functionality in the pipeline or anything else to do here? Thanks |
I am interested in helping as it still seems open but I see no activity. Still anything I can do? ta |
Hi! Well, the PR in #1437 is not quite there, and we could definitely use help getting it finalized. If you could work starting from the commits in that PR, and follow some of the suggestions I've left in that file, you could open a new PR based on that commit and we can move forward with it. https://github.com/publiclab/plots2/pull/1437/files#diff-ae2647e0aa24f1474d9192f6cedc811eR10 If you need assistance with any of these steps, we can help! Thank you! |
Also I was hoping @ananyo2012 and @ryzokuken might be able to assist while I'm less available this week; if so, thank you! |
Yes please! We're happy to help you along too.
…On Sep 8, 2017 10:10 PM, "majdeddine" ***@***.***> wrote:
Hi,
I am interested in helping also, can i give it a try ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ0ZR-cjY8rrHAJv6AH2ArR_ZTbOzks5sgfOBgaJpZM4NabjY>
.
|
yes please! there's quite a bit of progress in an existing PR that i think
is linked to from here, see https://github.com/publiclab/plots2/pulls if
not. It'd be great to build on this!
…On Thu, Dec 14, 2017 at 5:20 AM, Sidharth Bansal ***@***.***> wrote:
Hi @jywarren <https://github.com/jywarren> can I try this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwaknBnoEwH0XevCGPxbWCeZEmNgks5tAPZ9gaJpZM4NabjY>
.
|
OK I will try to add |
Hey, @jywarren I can open new first-timers from this or I can solve this too.What you say? |
That sounds super!
…On Mon, Jan 22, 2018 at 2:02 PM, Gaurav Sachdeva ***@***.***> wrote:
Hey, @jywarren <https://github.com/jywarren> I can open new first-timers
from this or I can solve this too.What you say?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ_csWSSweRNU2w9SBbIKSqFbneWjks5tNNthgaJpZM4NabjY>
.
|
ah, i mean super to open a first-timers issue. Thanks!
…On Mon, Jan 22, 2018 at 3:44 PM, Jeffrey Warren ***@***.***> wrote:
That sounds super!
On Mon, Jan 22, 2018 at 2:02 PM, Gaurav Sachdeva ***@***.***
> wrote:
> Hey, @jywarren <https://github.com/jywarren> I can open new first-timers
> from this or I can solve this too.What you say?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1418 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABfJ_csWSSweRNU2w9SBbIKSqFbneWjks5tNNthgaJpZM4NabjY>
> .
>
|
Moved to #2072 for first-timers |
:-) |
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!
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
The problem
We have good tests written for the typeahead API, here: https://github.com/publiclab/plots2/blob/master/test/functional/typeahead_api_test.rb
This tests each method in: https://github.com/publiclab/plots2/blob/master/app/api/srch/typeahead.rb
But we should have similar ones for the search API, for each of the methods in: https://github.com/publiclab/plots2/blob/master/app/api/srch/search.rb
(Note that these draw heavily on this file, in turn -- in case you want to know how they're generated: https://github.com/publiclab/plots2/blob/master/app/services/search_service.rb)
Solution
In #1409, a first-time contributor recently created a new test file, and a single test, which you can find at
test/functional/search_api_test.rb
:This is a basic test that the response is "ok" and then it goes on to test what's in the response. See how it uses a URL to access the
notes
method on this line:So, copy it, and follow the provided URL examples in
search.rb
to create a new test for a different method. For example,profiles
: https://github.com/publiclab/plots2/blob/master/app/api/srch/search.rb#L30Start by just asserting
last_response.ok?
as above; we can add more substantive tests later.You can try running this with
rake test
or (just to run the functional tests only)rake test TEST=test/functional/search_api_test.rb
-- hopefully it will pass!But you can also just open a pull request (see below) and our automated test system will run it, and you'll be able to see the output there.
If you can help with this, please open a pull request with this test added, and let's see how it goes -- even if it doesn't pass, we can help you with the next steps.
Steps to Fix
Please email the developers list (see https://publiclab.org/wiki/developers) or go to the chatroom if you have questions, and take a look at our first-timers landing page for more information!
The text was updated successfully, but these errors were encountered: