-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 dependencies ui kind of broken #4479
Comments
Ping @kolaente |
This is something which should be fixed directly in the issue search, as I'm only using that (via the api). The results are the same as when you search on I agree the issue search is not very good implemented. |
I'd rather have the search return issues by their index instead of frankensteining this into the dependencies. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Just noticed that direct mention of the issue id is still not working as of 7d973ed. |
@stevegt could you give a quick example of what you mean. Preferably with a try.gitea.io link? It might be best to open another issue since this one is closed. |
@zeripath A 'try' link won't help -- go to any issue you can edit and enter an issue number into the 'dependencies' field, either with or without a leading '#'. You'll see that you get an error response of 'Dependent issue does not exist.' This issue was recently closed by stale bot due to lack of activity, not because it's been addressed. There has been no merge referencing it. Re-opening would be the normal thing to do, rather than fragment the conversation. I'll let it sit for a while to see if anyone with access re-opens. I may get to this with a fix myself at some point as well. |
For me is happening something similar, but it seems to be a cache problem, because if I create a sequence of issues, only old ones once shown are listed on new issues to be included as dependency. Also, it seems to show only the first page of opened issues (typing '#' would help). A workaround: change browser or clear cache history. |
@nascimentolwtn i think is is caused by service worker and caching the result |
I think the dependency drop down is only showing the first page of issues. Changing the ISSUE_PAGING_NUM in app.ini to a larger number showed more issues in the drop down (and on the issues page of course). The drop down should not be affected by "pages", should be all issues, filtered as you type. |
Tested on version 1.11.6 :
|
@samaust sorry, we dont support anymore v1.11.6 & you should upgrade for security reasons |
I installed from snap yesterday and ran into this same issue. gitea 1.16.5 Not sure if bugbounties are welcome but I'd tip $50 in BTC for this to be fixed. |
The relevant template is gitea/templates/repo/issue/view_content/sidebar.tmpl Lines 517 to 534 in 73382d2
The associated JavaScript gitea/web_src/js/features/repo-issue.js Lines 89 to 123 in 73382d2
A few questions come to my mind:
gitea/routers/web/repo/search.go Lines 19 to 58 in 7b089c4
|
I got an explanation on routers in the chat. The router in Line 320 in d9b50e4
passes the request to gitea/routers/web/repo/issue.go Lines 2144 to 2317 in 744e452
That makes gitea/modules/indexer/issues/indexer.go Lines 385 to 401 in 744e452
the code that searches the issues. Therefore, this issue is likely not of |
I can answer some of your questions.
There are a lot of legacy frontend code (as old as years ago). The rule for using
The easiest way is just to run the code, and watch the output log. You will see the called router function in logs (zeripath and I added this feature in 1.17, to make develop & debug more easily)
Yup, it's better to make the |
Having (still) the same issue. Is someone working on that? Or are there any workarounds in the meantime? |
Partial matching of words is possible but might be expensive. BlevePartial matching with bleve is a no brainer if you use camel case in your wording, which, of course, will not always work. So, searching for 'iss' will never find 'issue'. |
I propose> create a popup template that based on usage has preset filters. (e.g. only issues/pulls of repo X) and let issues search via keyword or number have it live updated... use that:
|
I strongly believe that this is an altogether different feature request. Personally, I have a different approach in mind. |
What is required here as a solution, is search by
|
- Use backticks instead of double quotes Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Description
In the dependencies list it only lists the last 8 issues relative to that one. For example issue #12 can only see issues #11 to #3. Also manual mention (for example of #1) doesn’t work.
Thanks to @Morlinest we already know more details:
Current work around is to search the exact issue name to add another.
Direct mention of the issue id is not working (but this should a thing).
Screenshots
Try to select #1 on issue #12
The text was updated successfully, but these errors were encountered: