• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

foodcoops / foodsoft / 21521827700

30 Jan 2026 03:53PM UTC coverage: 42.78% (-24.3%) from 67.127%
21521827700

Pull #1269

github

lentschi
Remove GitHub deploy workflow
Pull Request #1269: Remove GitHub deploy workflow

3087 of 7216 relevant lines covered (42.78%)

11.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.38
/app/controllers/finance/ordergroups_controller.rb
1
class Finance::OrdergroupsController < Finance::BaseController
1✔
2
  def index
1✔
3
    m = /^(?<col>name|sum_of_class_\d+)(?<reverse>_reverse)?$/.match params['sort']
×
4
    if m
×
5
      sort = m[:col]
×
6
      sort += ' DESC' if m[:reverse]
×
7
    else
8
      sort = 'name'
×
9
    end
10

11
    @ordergroups = Ordergroup.undeleted.order(sort)
×
12
    @ordergroups = @ordergroups.include_transaction_class_sum
×
13
    @ordergroups = @ordergroups.where('groups.name LIKE ?', "%#{params[:query]}%") unless params[:query].nil?
×
14
    @ordergroups = @ordergroups.page(params[:page]).per(@per_page)
×
15

16
    @total_balances = FinancialTransactionClass.sorted.each_with_object({}) do |transaction_class, total_balances|
×
17
      total_balances[transaction_class.id] = @ordergroups.reduce(0) { |sum, o| o["sum_of_class_#{transaction_class.id}"] + sum }
×
18
    end
19
  end
20
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc