0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00
forgejo/routers/web/repo
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
..
actions Fix nil dereference on error (#30740) (#30746) 2024-05-01 08:14:16 +02:00
badges
flags
setting Fix wrong transfer hint (#30889) (#30900) 2024-05-14 15:45:03 +02:00
activity.go Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:50:45 +00:00
attachment.go
blame.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
branch.go
cherry_pick.go
code_frequency.go
commit.go
compare.go [v7.0/forgejo] Fix "view file" button in diff compare view (#3077) 2024-04-06 13:24:55 +00:00
contributors.go
download.go
editor.go [BUG] Use correct template for commitmail error 2024-04-02 14:59:34 +00:00
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
issue_content_history.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
issue_dependency.go
issue_label.go [GITEA] Apply changes to archived labels 2024-04-03 20:14:39 +00:00
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Fix Issue watching / unwatching on the web ui 2024-05-01 13:32:39 +02:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
projects_test.go
pull.go Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
pull_review.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-30 07:17:32 +01:00
pull_review_test.go [TESTS] pull review deleted from gitea#29888 2024-04-03 08:13:14 +00:00
recent_commits.go
release.go Fix release published actions not triggering for releases created from existing tags 2024-04-16 18:28:53 +00:00
release_test.go
render.go Refactor render (#30136) 2024-03-30 07:17:31 +01:00
repo.go
search.go [v7.0/forgejo] [BUG] Fix code search in explore reporting as git grep even with indexer enabled (#3204) 2024-04-14 14:21:31 +00:00
topic.go
treelist.go
view.go s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00
view_test.go
wiki.go
wiki_test.go