1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-10 19:32:02 +00:00
forgejo/routers/api/v1/repo
oliverpool 094eb89b5e [v11.0/forgejo] fix: corrupted wiki unit default permission (#8234 follow-up) (#8258) (#8445)
**Backport of** https://codeberg.org/forgejo/forgejo/pulls/8258, cherry picked from commit cee2aae4ca

Manual adjustments:
- rename the migration file from `v36` to `v29`
- added the `//nolint:revive`

---

Closes #8119, follow-up of #8234 (**backported in #8237**)

## Testing

- go to a commit before #8234 (e.g.
285f66b782)
- create 3 repositories
  - save the wiki settings of the second, without any change
  - set the wiki of the third to be globally writable
- verify the `default_permissions` column in the database, of the unit
`5`: 0, 2, 3
- stop Forgejo, switch to this PR and start Forgejo
- verify that the logs writes `Migration[35]: Fix wiki unit default
permission`
- verify the `default_permissions` column in the database, of the unit
`5`: 0, 0, 3

Before:

![2025-06-23-150055.png](/attachments/1eb92507-b8b4-422c-921c-4296a91172e7)

After:

![2025-06-23-150853.png](/attachments/c7b53397-54fe-487d-89da-e10b26538cde)

- [x] I did not document these changes and I do not expect someone else
to do it.
- [x] I do not want this change to show in the release notes.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8445
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: oliverpool <git@olivier.pfad.fr>
Co-committed-by: oliverpool <git@olivier.pfad.fr>
2025-07-08 18:52:59 +02:00
..
action.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
avatar.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
blob.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
branch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
collaborators.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
commits.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
compare.go [v11.0/forgejo] fix: make API /repos/{owner}/{repo}/compare/{basehead} work with forks (#8333) 2025-06-29 07:33:03 +02:00
download.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
file.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
flags.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
fork.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
git_hook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
git_ref.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
hook.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
hook_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_attachment.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_comment.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_comment_attachment.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_dependency.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_label.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_pin.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_reaction.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_stopwatch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_subscription.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
issue_tracked_time.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
key.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
label.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
language.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
migrate.go [v11.0/forgejo] fix: do not fail when release or wiki is set in /repos/migrate API (#8167) 2025-06-12 13:07:54 +02:00
milestone.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
mirror.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
notes.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
patch.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
pull.go [v11.0/forgejo] fix: make API /repos/{owner}/{repo}/compare/{basehead} work with forks (#8333) 2025-06-29 07:33:03 +02:00
pull_review.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
release.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
release_attachment.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
release_tags.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
repo.go [v11.0/forgejo] fix: corrupted wiki unit default permission (#8234 follow-up) (#8258) (#8445) 2025-07-08 18:52:59 +02:00
repo_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
star.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
status.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
subscriber.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
tag.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
teams.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
topic.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
transfer.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
tree.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
wiki.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00