Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
12 Feb 2016

To test search for "id:xxxxx" where xxxxx is the pull request id.

avatar andrepereiradasilva andrepereiradasilva - open - 12 Feb 2016
avatar andrepereiradasilva andrepereiradasilva - change - 12 Feb 2016
Title
Resolve issue when searching by id "id:xxxxx"
Resolve issue when searching by pull id "id:xxxxx"
avatar sovainfo
sovainfo - comment - 12 Feb 2016

To test:
Enter xxxx in search field and press search button, where xxxx is the PR. Either xxxx or id:xxxx. Expect the PR to be found. Use a high number like 9095. Currently found by id:9 and not by 9095.
Note that id (9) is depending on the fetch of the pulls from git, probably different in your environment.

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

id:9107 search works.

i have beta 4, not latest staging, in beta 4 the change works, i see now you can search just for xxxxx and that's where the problem remains.
I will check.

avatar sovainfo
sovainfo - comment - 12 Feb 2016

Used Patch Tester 2.0.0.beta4 where id:9095 didn't work!

So, I agree with your patch. It should use pull_id and NOT id in the where clause.
Tried to use patchtester to patch patchtester but failed. Manually using pull_id instead of id works.

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

Can you test now (patchtester latest staging + this PR).

avatar mbabker mbabker - change - 12 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-12 15:36:33
Closed_By mbabker
avatar mbabker mbabker - close - 12 Feb 2016
avatar mbabker mbabker - reference | 2ec503f - 12 Feb 16
avatar mbabker mbabker - merge - 12 Feb 2016
avatar mbabker mbabker - close - 12 Feb 2016
avatar andrepereiradasilva andrepereiradasilva - head_ref_deleted - 12 Feb 2016
avatar sovainfo
sovainfo - comment - 12 Feb 2016

Tested OK

Installed the b4, downloaded zip and overwrote com_patchtester. Applied PR manually.
Filtered on 9095, 909 and id:9095. All results were as expected.

Is it possible to use patchtester on patchtester?

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

i think so

avatar mbabker
mbabker - comment - 12 Feb 2016

If a repo is structured with Joomla's file structure, the patch tester can be used against it. Ironically, that means patch tester can test the patch tester, but not the weblinks component.

avatar sovainfo
sovainfo - comment - 12 Feb 2016

That is what I thought, but receiving : Error retrieving pull requests from GitHub: Not Found

Sounds like Owner and Repository are switched. Exchanging them works, unfortunately there are no PR's anymore, so you'll have no results.

avatar mbabker
mbabker - comment - 12 Feb 2016

Don't have the time at the moment to dig into that and not found is too generic of a message (not finding a repo, an issue...).

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

there are no open PR in this repository at the moment ...

avatar sovainfo
sovainfo - comment - 12 Feb 2016

Edited my previous comment. Everything is ok now when using joomla-extensions and patchtester.

Sorry for wasting your time.

avatar mbabker
mbabker - comment - 12 Feb 2016

Ahh, ya, that one condition you'd never think to check because 99.9% of people are using this on the CMS repo which will never have a 0 pull request state ?

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

ok so it's like this

image

@mbabker the problem was that i posted a wrong config. no problem in the patchtester

Although 0,01% is ok :)

BTW this is a cool funcionality of the patchtester i use it sometimes to test PR in my own joomla repository fork.

avatar sovainfo
sovainfo - comment - 12 Feb 2016

Indeed, that works. And yes, was surprised at first with an empty list, but figured it out myself. Then read the comments after mine.

Thanks for fixing and applying.

Add a Comment

Login with GitHub to post a comment