Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yp05327
8b89563bf1
Fix empty project displayed in issue sidebar ( #25802 )
...
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/1ab476dc-2f9b-4c85-9e87-105fc73af1ee )
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/786f984d-5c27-4eff-b3d9-159f68034ce4 )
This issue comes from the change in #25468 .
`LoadProject` will always return at least one record, so we use
`ProjectID` to check whether an issue is linked to a project in the old
code.
As other `issue.LoadXXX` functions, we need to check the return value
from `xorm.Session.Get`.
In recent unit tests, we only test `issueList.LoadAttributes()` but
don't test `issue.LoadAttributes()`. So I added a new test for
`issue.LoadAttributes()` in this PR.
---------
Co-authored-by: Denys Konovalov <privat@denyskon.de>
1 year ago
..
assignees.go
Make more functions use ctx instead of db.DefaultContext ( #24068 )
2 years ago
assignees_test.go
Make more functions use ctx instead of db.DefaultContext ( #24068 )
2 years ago
comment.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
comment_code.go
Show outdated comments in files changed tab ( #24936 )
1 year ago
comment_list.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
comment_test.go
Show outdated comments in files changed tab ( #24936 )
1 year ago
content_history.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
content_history_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
dependency.go
Add API to manage issue dependencies ( #17935 )
2 years ago
dependency_test.go
refactor some functions to support ctx as first parameter ( #21878 )
2 years ago
issue.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
issue_index.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_label.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
issue_list.go
Improve loadprojects for issue list ( #25468 )
1 year ago
issue_list_test.go
Fix empty project displayed in issue sidebar ( #25802 )
1 year ago
issue_lock.go
Rename almost all Ctx functions ( #22071 )
2 years ago
issue_project.go
Fix empty project displayed in issue sidebar ( #25802 )
1 year ago
issue_search.go
Some refactors for issues stats ( #24793 )
2 years ago
issue_stats.go
Fix 500 error when select `No assignee` filter in issue list page ( #24854 )
2 years ago
issue_test.go
Fix empty project displayed in issue sidebar ( #25802 )
1 year ago
issue_update.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
issue_user.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_user_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_watch.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_watch_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
issue_xref.go
Fix more HTMLURL in templates ( #22831 )
2 years ago
issue_xref_test.go
Make more functions use ctx instead of db.DefaultContext ( #24068 )
2 years ago
label.go
Some refactors for issues stats ( #24793 )
2 years ago
label_test.go
Modify luminance calculation and extract related functions into single files ( #24586 )
2 years ago
main_test.go
Merge setting.InitXXX into one function with options ( #24389 )
2 years ago
milestone.go
Localize milestone related time strings ( #24051 )
2 years ago
milestone_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
pull.go
Fix profile render when the README.md size is larger than 1024 bytes ( #25131 )
1 year ago
pull_list.go
Remove duplicated issues options and some more refactors ( #24787 )
2 years ago
pull_test.go
Fix duplicate Reviewed-by trailers ( #24796 )
1 year ago
reaction.go
refactor some functions to support ctx as first parameter ( #21878 )
2 years ago
reaction_test.go
Implement FSFE REUSE for golang files ( #21840 )
2 years ago
review.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
review_test.go
Fix duplicate Reviewed-by trailers ( #24796 )
1 year ago
stopwatch.go
Speed up HasUserStopwatch & GetActiveStopwatch ( #23051 )
2 years ago
stopwatch_test.go
Speed up HasUserStopwatch & GetActiveStopwatch ( #23051 )
2 years ago
tracked_time.go
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
1 year ago
tracked_time_test.go
Store and use seconds for timeline time comments ( #25392 )
1 year ago