From 388eeb377a649270071e32d949911e60f21c574d Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 26 May 2023 15:09:25 +0200 Subject: [PATCH] [IMP] runbot: improve build errors views * add a link to the fixing PR on github * add a warning ribbon on test-tagged errors * show different colors in tree view to spot fixed PR's * add some search filters --- runbot/models/build_error.py | 2 ++ runbot/views/build_error_views.xml | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/runbot/models/build_error.py b/runbot/models/build_error.py index 35f65b5f..4cd5dc4c 100644 --- a/runbot/models/build_error.py +++ b/runbot/models/build_error.py @@ -33,6 +33,8 @@ class BuildError(models.Model): team_id = fields.Many2one('runbot.team', 'Assigned team', tracking=True) fixing_commit = fields.Char('Fixing commit', tracking=True) fixing_pr_id = fields.Many2one('runbot.branch', 'Fixing PR', tracking=True, domain=[('is_pr', '=', True)]) + fixing_pr_alive = fields.Boolean('Fixing PR alive', related='fixing_pr_id.alive') + fixing_pr_url = fields.Char('Fixing PR url', related='fixing_pr_id.branch_url') build_ids = fields.Many2many('runbot.build', 'runbot_build_error_ids_runbot_build_rel', string='Affected builds') bundle_ids = fields.One2many('runbot.bundle', compute='_compute_bundle_ids') version_ids = fields.One2many('runbot.version', compute='_compute_version_ids', string='Versions', search='_search_version') diff --git a/runbot/views/build_error_views.xml b/runbot/views/build_error_views.xml index f851946e..2c107621 100644 --- a/runbot/views/build_error_views.xml +++ b/runbot/views/build_error_views.xml @@ -5,6 +5,7 @@ runbot.build.error
+
@@ -20,6 +21,7 @@ + @@ -110,7 +112,11 @@ runbot.build.error.tree runbot.build.error - + @@ -119,6 +125,9 @@ + + + @@ -135,6 +144,8 @@ + + @@ -144,6 +155,10 @@ + + + +