Example and display of the bug in question
When a file is deleted but later restored, the history is missing from the file, even though the history was displayed prior to the undeletion/restore. Deleteing the file again and undeleting seems to make the issue worse with the history totally missing.
It isn't isolated as it is happening to every file on Commons and seems to have been occuring for around a week.
See attachment for the example of the bug