• Pawel Chojnacki's avatar
    Fix circular dependency condition with `current_application_settings` · 68b946e3
    Pawel Chojnacki authored
    `current_application_settings` used by `influx_metrics_enabled`
    executed a markdown parsing code that was measured using `Gitlab::Metrics.measure`
    
    But since the Gitlab::Metrics::InfluxDb was not yet build so Gitlab::Metrics
    did not yet have `measure` method. Causing the NoMethodError.
    
    However If run was successful at least once then result was cached in a file and this code never executed again.
    Which caused this issue to only show up in CI preparation step.
    68b946e3
influx_db.rb 4.77 KB