-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] runbot: add kanban view and stages to build error page #1071
base: 18.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<odoo> | ||
<record model="runbot.build.error.stage" id="build_error_stage_new"> | ||
<field name="name">New/Unsolved</field> | ||
<field name="sequence">5</field> | ||
<field name="description">New build error detected by the runbot platform</field> | ||
</record> | ||
<record model="runbot.build.error.stage" id="build_error_stage_solved"> | ||
<field name="name">Solved</field> | ||
<field name="sequence">10</field> | ||
<field name="description">Issue should be solved. Will automatically move to the Done state after some time</field> | ||
</record> | ||
<record model="runbot.build.error.stage" id="build_error_stage_done"> | ||
<field name="name">Done</field> | ||
<field name="sequence">15</field> | ||
<field name="description">Issue is solved or dissapeared</field> | ||
<field name="fold">True</field> | ||
</record> | ||
</odoo> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,18 @@ def _search(self, operator, value): | |
return [(f'error_content_ids.{field_name}', operator, value)] | ||
return _search | ||
|
||
|
||
class BuildErrorStage(models.Model): | ||
_name = 'runbot.build.error.stage' | ||
_description = 'Build Error Stage' | ||
_order = 'sequence' | ||
|
||
name = fields.Char(string='Stage Name', required=True, translate=True) | ||
description = fields.Text(string='Stage description', translate=True) | ||
sequence = fields.Integer('Sequence', default=1) | ||
fold = fields.Boolean(string='Folded in Kanban', default=False) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it is to work, we will also need to change values of "active" and "tes_tags" every time stage changes to either solved/unsolved/ignored. And vice versa, if user decides to change te value of "active" or "test_tags" fields, we stage should also change based on that. |
||
|
||
class BuildError(models.Model): | ||
_name = "runbot.build.error" | ||
_description = "Build error" | ||
|
@@ -91,6 +103,7 @@ class BuildError(models.Model): | |
error_count = fields.Integer("Error count", store=True, compute='_compute_count') | ||
previous_error_id = fields.Many2one('runbot.build.error', string="Already seen error") | ||
|
||
stage_id = fields.Many2one('runbot.build.error.stage', required=True, tracking=True, group_expand='_read_group_expand_full', default=lambda self: self.env['runbot.build.error.stage'].search([], limit=1)) | ||
responsible = fields.Many2one('res.users', 'Assigned fixer', tracking=True) | ||
customer = fields.Many2one('res.users', 'Customer', tracking=True) | ||
team_id = fields.Many2one('runbot.team', 'Assigned team', tracking=True) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it would be also smart to have "ignored" or "test-tags" column, which would include tasks with test-tags?