This was reported to me by users wanting to test a PR I made against staging. I confirmed it today.
Follow the steps to install patch tester, then press Fetch Data to obtain available PRs from Github.
A list of all PR.
A small number of PRs are shown. For Joomla 3 ("staging"), I see 8 PRs. For 4 and 4.1, there's about 15 of them only.
(My PR is not in the list, that's how users reported it to me)
N/A
I tested initially without being logged in to Github. I then fetched data again after adding a Personal token. The fetch succeeded in both cases, returning the exact same list of PRs.
Same thing happens with PatchTester 4 running on Joomla 4. Exact same PRs are pulled.
Something I'm missing?
Hi
I believe this is because it's using an older Github API that fetches Issues and then extract PR from the list of issues. It has a batch size of 100 issues, so the 100 more recent issues are read, and then only maybe 20 or 30 of those issues have PR and are displayed.
Github let's you now read directly the PR and I only had to change a few lines to make the tester work again - in my limiting testing.
I'll do a PR.
In trying to fix this, I saw that the PullsModel that fetches the list of Pulls uses the issues github API endpoint (which leads to the problem at hand), while the PullModel, that reads the detail of a single PR uses the pulls endpoint.
From whar I know, both should be using the pulls endpoint. Is there a specific reason for using issues instead of pulls when reading the full list? rate limiting? performance?
I don't know. Maybe historic reasons.
@richard67 I have made two PRs, one for J3 and one for J4.
I have tested the J3 version fully, not the version 4.
Hello @weeblr I would think this is because it is historic as @richard67 said. This code hasn't been touched for a long time. I will have a look at the PRs in the next few days.
Thank you for the PRs.
Hi
That'd be cool, it was pretty disconcerting for these users trying out to help for the 1st time at my demand and not being able to find the PR I was asking them to test.
If possible, can you post back here if/when you make a new release, I'd like to mention it on the French FB group when solved.
Hello, once I have done the fixes and release is ready I will ping you.
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-04 19:40:23 |
| Closed_By | ⇒ | roland-d |
I can confirm this issue, but I have no idea what could be the cause.