-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Issue/Pull dependencies is inefficient #14560
Comments
If it affected v1.13.0, I think we should move milestone to v1.13.3 |
From gitea chat what I came to:
|
Tested (Linux + Firefox 86.0 (64-bit)):
Discover: |
OK I just tested on 1.13.0+30-g205be63bc On the issues page this works. On pulls page this works. (Chromium linux & firefox linux) |
There is a minimum number of letters required to make it do a search - perhaps this was the issue? |
As I cannot reproduce I'm gonna unmilestone and mark it as needs-feedback. |
@zeripath https://try.gitea.io/seigieu/test/issues/23 |
https://youtu.be/iJhSqSpA0X4 |
@seigieu witch browser & OS do you use? |
Could you add [email protected] to that repository as a writing collaborator so I can test. That the number of issues is >20 makes me suspicious it's a paging issue but I'm not certain. |
Ok your second video looks exactly like a paging issue, does typing the issue in to the search box reveal the issues? In your first video try.gitea.io looks like it's running very slow indeed and I suspect that the API call to list the issues hasn't returned by the time you're expecting it to have and our UI doesn't have any marker to show that it's doing a search. |
@6543 (after some testing...) But when I tested it more to look for issue. Search seems to work. But it searches ONLY for whole words. I'm not sure if I didn't get confused, since I was 100% sure I can search issues by And for pagination part. Pagination issue seems to be present only when I click and scroll down (not sure if its feature or issue now. May be feature to limit to latest entries). try.gitea.com - yes, its running very slow. checked in network tab and its a long loading issue. |
I meant on the try.gitea.io repository you'd uploaded. In regards to exact searching #14694 should help there. I'll look at the rest of your comments tomorrow. Sorry I didn't get to this today. |
I think in part some of this issue is related to #12827 |
/api/v1/repos/issues/search is a highly inefficient search which is unfortunately the basis for our dependency searching algorithm. In particular it currently loads all of the repositories and their owners and their primary coding language all of which is immediately thrown away. This PR makes one simple change - just get the IDs. Related #14560 Related #12827 Signed-off-by: Andrew Thornton <[email protected]>
…a#15179) Backport go-gitea#15179 /api/v1/repos/issues/search is a highly inefficient search which is unfortunately the basis for our dependency searching algorithm. In particular it currently loads all of the repositories and their owners and their primary coding language all of which is immediately thrown away. This PR makes one simple change - just get the IDs. Related go-gitea#14560 Related go-gitea#12827 Signed-off-by: Andrew Thornton <[email protected]>
Looking at try.gitea.io it appears that the improvement from #15179 could actually be sufficient to close this issue! Although I would still argue that the API is still too non-performant. |
|
close in favour of #12827 |
…#15192) Backport #15179 /api/v1/repos/issues/search is a highly inefficient search which is unfortunately the basis for our dependency searching algorithm. In particular it currently loads all of the repositories and their owners and their primary coding language all of which is immediately thrown away. This PR makes one simple change - just get the IDs. Related #14560 Related #12827 Signed-off-by: Andrew Thornton <[email protected]>
look like gitea >= 1.13.0; gitea < 1.14.0 is affected
-> if you type text into search field no issues/pulls are displayed to select
-> JS does not hit the API to get issues :/
The text was updated successfully, but these errors were encountered: