You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/doctor
zeripath e8574f2f7d
Nicely handle missing user in collaborations (#17049)
* Nicely handle missing user in collaborations

It is possible to have a collaboration in a repository which refers to a no-longer
existing user. This causes the repository transfer to fail with an unusual error.

This PR makes `repo.getCollaborators()` nicely handle the missing user by ghosting
the collaboration but also adds consistency check. It also adds an
Access consistency check.

Fix #17044

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
3 years ago
..
authorizedkeys.go Refactor doctor (#12264) 4 years ago
checkOldArchives.go Rework repository archive (#14723) 3 years ago
dbconsistency.go Nicely handle missing user in collaborations (#17049) 3 years ago
dbversion.go Move db related basic functions to models/db (#17075) 3 years ago
doctor.go Move db related basic functions to models/db (#17075) 3 years ago
fix16961.go Create doctor command to fix repo_units broken by dumps from 1.14.3-1.14.6 (#17136) 3 years ago
fix16961_test.go Create doctor command to fix repo_units broken by dumps from 1.14.3-1.14.6 (#17136) 3 years ago
mergebase.go DBContext is just a Context (#17100) 3 years ago
misc.go DBContext is just a Context (#17100) 3 years ago
paths.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago
storage.go Fix storage Iterate bug and Add storage doctor to delete garbage attachments (#16971) 3 years ago
usertype.go Add Doctor FixWrongUserType (#14522) 3 years ago