Skip to content

Commit

Permalink
Sort known issues by priority
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
  • Loading branch information
Crola1702 committed Oct 18, 2024
1 parent 1c703bf commit cc6922b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion database/scripts/lib/buildfarm_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def self.jobs_last_success_date(older_than_days: 0)
out
end

def self.test_regressions_known
def self.test_regressions_known(sort_by: 'priority')
out = known_issues(status: 'open')
out.concat known_issues(status: 'disabled')
out = out.group_by { |e| e["github_issue"] }.to_a.map { |e| e[1] }
Expand All @@ -141,6 +141,10 @@ def self.test_regressions_known
error["priority"] = priority
end
end

unless sort_by.nil?
out.sort_by! { |r| -r.first['priority'] }
end
out
end

Expand Down

0 comments on commit cc6922b

Please sign in to comment.