Fix group wiki inaccessible after deleting and creating group with the same name
What does this MR do and why?
This MR expires group wiki repository cache after getting Gitlab::Git::Repository::NoRepository in response to accessing the wiki repository through Gitaly.
This fixes a bug, where a group is deleted and then recreated with the same name, and the new wiki repository is inaccessible until the cache expires.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Create a group.
- Create a wiki page in that group's wiki to create a wiki repository.
- Permanently delete the group.
- Create a group with the same name, and access a new (now empty) wiki normally.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Piotr Skorupa