Nicely handle missing user in collaborations (#17049) #17166

Merged
lunny merged 1 commits from backport-17049-v1.15 into release/v1.15 2021-09-28 06:41:12 +00:00
Contributor

Backport #17049

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

Backport #17049 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>
6543 (Migrated from github.com) approved these changes 2021-09-27 22:37:51 +00:00
wxiaoguang approved these changes 2021-09-28 01:54:37 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17166
No description provided.