Module: Gitlab::PerformanceBar::WithTopLevelWarnings
- Defined in:
- lib/gitlab/performance_bar/with_top_level_warnings.rb
Instance Method Summary collapse
Instance Method Details
#has_warnings?(results) ⇒ Boolean
12 13 14 15 16 |
# File 'lib/gitlab/performance_bar/with_top_level_warnings.rb', line 12 def has_warnings?(results) results[:data].any? do |_, value| value[:warnings].present? end end |
#results ⇒ Object
6 7 8 9 10 |
# File 'lib/gitlab/performance_bar/with_top_level_warnings.rb', line 6 def results results = super results.merge(has_warnings: has_warnings?(results)) end |