Stale markdown cache when renaming namespaces.
Summary
When renaming a namespace, the uploads used in several markdown fields won't be visible.
This is because the description_html
field still contains the links to the upload with the old namespace name.
We need to clear the cached HTML fields so the markup can be re-rendered.
Result visible here: https://gitlab.com/reprazents-test-space/group-renamed/project-1/issues/1
Steps to reproduce
- Create a group
group
- Create a project in this group,
project
- Create an issue in this project, and upload some files to it.
- Rename the
group
togroup-renamed
- Visit the issue again, the images are 404-ing
What is the current bug behavior?
The links in the cached markdown fields still point to the files in the old namespace name.
What is the expected correct behavior?
The markdown cache should be cleared so it can be regenerated.