Commit info not loading when navigating from file list to blob
Summary
When navigating from the file list to a blob, the commit info is not loaded.
Steps to reproduce
- Navigate to a project where the refactor FF is enabled.
- Click on a file.
- Notice the commit info is not loaded.
Example Project
https://gitlab.com/jerasmus/test-project-blob-refactor-enabled
What is the current bug behavior?
When navigating from the file list to a blob, the commit info is not loaded.
What is the expected correct behavior?
When navigating from the file list to a blob, the commit info should load.
Relevant logs and/or screenshots
incorrect (current) | correct |
---|---|
Possible fixes
It is likely caused by the following Apollo error:
The addition of id
in blob_info.query.graphql (added here) might be the cause.
We need to be careful when removing the id
because we need it for the cache to auto-update the Lock button state when a file is Locked/Ulocked.