GitHub Import attachments issue
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
GitHub Import doesn't update attachment links until the description of the issue, merge request, or note are updated.
See video below
(this video is now obsolete - commented out)
Proposed solution
I believe it should be straightforward to fix the issue. The problem occurs because the markdown cache isn't refreshed.
We should refresh the markdown cache (object.refresh_markdown_cache!) after changing the attachment URL in the description column. So, it would be around these lines
Just make sure the updated_at column isn't updated.
We're no longer able to replicate the issue initially described. See !149233 (comment 1857573639)
We did note that after the attachment is updated, the data-canonical-src attribute of the url retains the github.com url and the src link points to a broken link:
