forgejo/models/issues
wxiaoguang 6f48a36227
Refactor GetNextResourceIndex to make it work properly with transaction (#21469)
Related:
* #21362

This PR uses a general and stable method to generate resource index (eg:
Issue Index, PR Index)

If the code looks good, I can add more tests

ps: please skip the diff, only have a look at the new code. It's
entirely re-written.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-10-16 18:44:16 +08:00
..
assignees.go
assignees_test.go
comment.go
comment_list.go
comment_test.go
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2022-10-16 18:44:16 +08:00
issue_index.go Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2022-10-16 18:44:16 +08:00
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go
issue_test.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go
issue_xref_test.go Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2022-10-16 18:44:16 +08:00
label.go
label_test.go
main_test.go
milestone.go
milestone_test.go
pull.go Refactor GetNextResourceIndex to make it work properly with transaction (#21469) 2022-10-16 18:44:16 +08:00
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go
review_test.go
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go