forgejo/models/issues
Lunny Xiao d91839692f
Fix various problems around projects board view (#30696)
The previous implementation will start multiple POST requests from the
frontend when moving a column and another bug is moving the default
column will never be remembered in fact.

- [x] This PR will allow the default column to move to a non-first
position
- [x] And it also uses one request instead of multiple requests when
moving the columns
- [x] Use a star instead of a pin as the icon for setting the default
column action
- [x] Inserted new column will be append to the end
- [x] Fix #30701 the newly added issue will be append to the end of the
default column
- [x] Fix when deleting a column, all issues in it will be displayed
from UI but database records exist.
- [x] Add a limitation for columns in a project to 20. So the sorting
will not be overflow because it's int8.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit a303c973e0264dab45a787c4afa200e183e0d953)

Conflicts:
	routers/web/web.go
	e91733468ef726fc9365aa4820cdd5f2ddfdaa23 Add missing database transaction for new issue (#29490) was not cherry-picked
	services/issue/issue.go
	fe6792dff3 Enable/disable owner and repo projects independently (#28805) was not cherry-picked
(cherry picked from commit 7d3ca90dfe)

(cherry picked from commit 084bec89ed7ae0816fc2d8db6784ad22523d1fc4)
2024-05-14 15:51:15 +02:00
..
assignees.go
assignees_test.go
comment.go
comment_code.go Load attachments for code comments (#30124) 2024-03-30 07:17:31 +01:00
comment_list.go
comment_test.go
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go Do not update PRs based on events that happened before they existed 2024-04-12 10:41:19 +02:00
issue_index.go Do not update PRs based on events that happened before they existed 2024-04-12 10:41:19 +02:00
issue_index_test.go Do not update PRs based on events that happened before they existed 2024-04-12 10:41:19 +02:00
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
issue_search.go
issue_stats.go
issue_test.go
issue_update.go Fix no edit history after editing issue's title and content (#30814) 2024-05-07 08:21:38 +01:00
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go
issue_xref_test.go
label.go [GITEA] Apply changes to archived labels 2024-04-03 20:14:39 +00:00
label_test.go
main_test.go
milestone.go
milestone_list.go
milestone_test.go
pull.go
pull_list.go Do not update PRs based on events that happened before they existed 2024-04-12 10:41:19 +02:00
pull_test.go Do not update PRs based on events that happened before they existed 2024-04-12 10:41:19 +02:00
reaction.go
reaction_test.go
review.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-30 07:17:32 +01:00
review_list.go
review_test.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-30 07:17:32 +01:00
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go