forgejo/models
Denys Konovalov 8ffb9c6fb1
Add default board to new projects, remove uncategorized pseudo-board ()
On creation of an empty project (no template) a default board will be
created instead of falling back to the uneditable pseudo-board.

Every project now has to have exactly one default boards. As a
consequence, you cannot unset a board as default, instead you have to
set another board as default. Existing projects will be modified using a
cron job, additionally this check will run every midnight by default.

Deleting the default board is not allowed, you have to set another board
as default to do it.

Fixes 
Fixes  along the way
Fixes 

Co-authored-by: delvh <dev.lh@web.de>
(cherry picked from commit e5160185ed65fd1c2bcb2fc7dc7e0b5514ddb299)

Conflicts:
	options/locale/locale_en-US.ini
	trivial conflict because Forgejo strings do not have
	surrounding double quotes
2024-03-30 07:17:31 +01:00
..
actions Cancel previous runs of the same PR automatically () 2024-03-26 16:51:56 +01:00
activities [Port] gitea#29930: Move notifications to a standalone file 2024-03-28 14:21:42 +01:00
admin Next round of db.DefaultContext refactor () 2023-09-16 14:39:12 +00:00
asymkey Fix some pending problems () 2024-03-26 19:04:26 +01:00
auth remove util.OptionalBool and related functions () 2024-03-06 12:10:46 +08:00
avatars Replace 10 more gt- classes with tw- () 2024-03-26 19:04:27 +01:00
db Fix misuse of TxContext () 2024-03-30 07:17:29 +01:00
dbfs make writing main test easier () 2023-09-28 01:38:53 +00:00
fixtures Add default board to new projects, remove uncategorized pseudo-board () 2024-03-30 07:17:31 +01:00
forgejo/semver [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2024-02-05 14:44:33 +01:00
forgejo_migrations [COSMETIC] unify the wording of the Forgejo migration comments 2024-03-28 12:08:43 +01:00
git Fix schedule tasks bugs () 2024-03-25 16:25:02 +01:00
issues Add default board to new projects, remove uncategorized pseudo-board () 2024-03-30 07:17:31 +01:00
migrations Add default board to new projects, remove uncategorized pseudo-board () 2024-03-30 07:17:31 +01:00
organization Respect DEFAULT_ORG_MEMBER_VISIBLE setting when adding creator to org () 2024-03-26 19:04:28 +01:00
packages Fix incorrect relative/absolute URL usages () 2024-03-06 12:10:46 +08:00
perm Users with read permission of pull requests can be assigned too () 2024-02-26 22:30:27 +01:00
project Add default board to new projects, remove uncategorized pseudo-board () 2024-03-30 07:17:31 +01:00
pull [GITEA] GetScheduledMergeByPullID may involve a system user 2024-02-05 16:09:41 +01:00
repo Fix schedule tasks bugs () 2024-03-25 16:25:02 +01:00
secret Make runs-on support variable expression () 2024-03-11 23:36:59 +07:00
shared/types Refactor locale&string&template related code () 2024-02-16 15:20:52 +01:00
system Refactor deletion () 2023-12-25 21:25:29 +01:00
unit Add a direct link from repo header to unit settings 2024-02-13 22:42:09 +01:00
unittest [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
user [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
webhook Merge pull request '[TESTS] fail when log.Error is called' () from oliverpool/forgejo:fail_test_on_log_error into forgejo 2024-03-24 07:28:31 +00:00
error.go Add merge style fast-forward-only () 2024-02-14 17:19:19 +01:00
fixture_generation.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
fixture_test.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
main_test.go make writing main test easier () 2023-09-28 01:38:53 +00:00
org.go Refactor deletion () 2023-12-25 21:25:29 +01:00
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods () 2023-12-07 15:27:36 +08:00
org_team_test.go Reduce usage of db.DefaultContext () 2023-09-14 17:09:32 +00:00
org_test.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
repo.go Refactor deletion () 2023-12-25 21:25:29 +01:00
repo_test.go Penultimate round of db.DefaultContext refactor () 2023-10-11 04:24:07 +00:00
repo_transfer.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
repo_transfer_test.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00