mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 10:39:38 -05:00
Issue dependencies ui kind of broken #2076
Closed
opened 2025-11-02 04:23:22 -06:00 by GiteaMirror
·
22 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
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c1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#2076
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Aragur on GitHub (Jul 20, 2018).
cc9fa06Description
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

@jonasfranz commented on GitHub (Jul 20, 2018):
Ping @kolaente
@kolaente commented on GitHub (Jul 20, 2018):
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.
@kolaente commented on GitHub (Jul 20, 2018):
I'd rather have the search return issues by their index instead of frankensteining this into the dependencies.
@stale[bot] commented on GitHub (Jan 17, 2019):
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.
@stevegt commented on GitHub (Mar 5, 2019):
Just noticed that direct mention of the issue id is still not working as of
7d973edf65.@zeripath commented on GitHub (Mar 6, 2019):
@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.
@stevegt commented on GitHub (Mar 6, 2019):
@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.
@nascimentolwtn commented on GitHub (Mar 26, 2019):
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.
@xf- commented on GitHub (May 11, 2019):
@nascimentolwtn i think is is caused by service worker and caching the result
@lesh59 commented on GitHub (Dec 4, 2020):
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.
@samaust commented on GitHub (Mar 8, 2021):
Tested on version 1.11.6 :
@6543 commented on GitHub (Mar 8, 2021):
@samaust sorry, we dont support anymore v1.11.6 & you should upgrade for security reasons
@stevegt commented on GitHub (Mar 18, 2021):
@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.
@Giszmo commented on GitHub (Apr 14, 2022):
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.
@Ryuno-Ki commented on GitHub (Jun 5, 2022):
The relevant template is
73382d2132/templates/repo/issue/view_content/sidebar.tmpl (L517-L534)The associated JavaScript
73382d2132/web_src/js/features/repo-issue.js (L89-L123)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&_=1654452403354Where is the associated router? (formerly using/api/v1/repos/issues/search. Changed in783a021889 (diff-d39a63ccfd5f0fe703f74ce48a3624ba59a856317b0d236d7eae87dfcf6c1c20)) The one below?7b089c465d/routers/web/repo/search.go (L19-L58)@Ryuno-Ki commented on GitHub (Jun 5, 2022):
I got an explanation on routers in the chat.
The router in
d9b50e4fd1/routers/web/web.go (L320)passes the request to
SearchIssues:744e452185/routers/web/repo/issue.go (L2144-L2317)That makes
744e452185/modules/indexer/issues/indexer.go (L385-L401)the code that searches the issues.
Therefore, this issue is likely not of
kind/ui.@wxiaoguang commented on GitHub (Jun 6, 2022):
I can answer some of your questions.
There are a lot of legacy frontend code (as old as years ago). The rule for using
attrinstead ofdatawas 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 Indexcan be searched or just loaded by hard-code (indeed, the number of the issue is calledindexinternally, notid)@d33pjs commented on GitHub (Aug 10, 2022):
Having (still) the same issue. Is someone working on that? Or are there any workarounds in the meantime?
@silkentrance commented on GitHub (Jun 25, 2024):
Partial matching of words is possible but might be expensive.
Bleve
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'.
@6543 commented on GitHub (Jun 26, 2024):
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:

@silkentrance commented on GitHub (Jun 26, 2024):
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.
@silkentrance commented on GitHub (Jun 26, 2024):
What is required here as a solution, is search by