Closed Aragur closed 4 months ago
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 {projecturl}/issues
.
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 7d973edf65c664ea4bdb0efe455f03c486727fa2.
@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
@6543 The fact that @samaust is running an old version is orthogonal to this issue -- the bug still exists in 1.14.0+dev-874-ge8ad6c1ff.
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
The associated JavaScript
A few questions come to my mind:
.data()
here? (see https://docs.gitea.io/en-us/guidelines-frontend/#html-attributes-and-dataset )/issues/search?q=some&priority_repo_id=2&type=all&_=1654452403354
Where is the associated router? (formerly using /api/v1/repos/issues/search
. Changed in https://github.com/go-gitea/gitea/commit/783a02188970ba5800514f7c64f6a818f65c04a1#diff-d39a63ccfd5f0fe703f74ce48a3624ba59a856317b0d236d7eae87dfcf6c1c20 ) The one below?I got an explanation on routers in the chat.
The router in
passes the request to SearchIssues
:
That makes
the code that searches the issues.
Therefore, this issue is likely not of kind/ui
.
I can answer some of your questions.
There are a lot of legacy frontend code (as old as years ago). The rule for using attr
instead of data
was suggested by silverwind a few months ago and I wrote it into the guideline. For me, I am doing my best to make sure ever line of JS I touched follows the guideline.
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 Issue Index
can be searched or just loaded by hard-code (indeed, the number of the issue is called index
internally, not id
)
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.
Partial 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'. Yet, searching for 'foo' will find 'FooBar' or 'fooBar'. The same goes for 't2', which can be found by a search for either 't' or '2'.
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... ... multiselect would be nice ... filter for closed and open
use that:
mockup:
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... ... multiselect would be nice ... filter for closed and open
use that:
- for adding issues/pulls in project board view to add to the project
- adding dependencys
mockup:
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... ... multiselect would be nice ... filter for closed and open
use that:
- for adding issues/pulls in project board view to add to the project
- adding dependencys
mockup:
I strongly believe that this is an altogether different feature request. Please make this a different issue. The issue at hand is already complex and does not require any additional complexity.
Personally, I have a different approach in mind. One. which will move the dependency management to below the original issue/pr "description" and right before the follow-up comments, similar to for example *ira.
What is required here as a solution, is search by
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