Ensure Auxilary viewers work as expected
As part of the Repository blob refactor we need to ensure that the Auxilary viewers still work as expected.
For instance when viewing a package.json
file, the auxiliary viewer displays Analyzing file…
.
Before (incorrect) | After (correct) |
---|---|
Files with Auxilary viewers
Ref: https://gitlab.com/gitlab-org/gitlab/blob/master/app/models/blob.rb#L48
- GitlabCiYml,
- RouteMap,
- Readme,
- License,
- Contributing,
- Changelog,
- MetricsDashboardYml,
- CargoToml,
- Cartfile,
- ComposerJson,
- Gemfile,
- Gemspec,
- GodepsJson,
- GoMod,
- PackageJson,
- Podfile,
- Podspec,
- PodspecJson,
- RequirementsTxt,
- YarnLock
Possible fix
We need to ensure we init the Auxilary viewers when we load the blob app.