mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add step description
This commit is contained in:
parent
3361e87988
commit
a6ce3dceb0
@ -138,6 +138,7 @@ class ConfigStep(models.Model):
|
||||
# general info
|
||||
name = fields.Char('Step name', required=True, tracking=True, help="Unique name for step please use trigram as postfix for custom step_ids")
|
||||
domain_filter = fields.Char('Domain filter', tracking=True)
|
||||
description = fields.Char('Config step description')
|
||||
|
||||
job_type = fields.Selection(TYPES, default='install_odoo', required=True, tracking=True, ondelete={t[0]: 'cascade' for t in [TYPES]})
|
||||
protected = fields.Boolean('Protected', default=False, tracking=True)
|
||||
|
@ -35,6 +35,7 @@ class runbot_event(models.Model):
|
||||
for build in builds:
|
||||
build_logs = logs_by_build_id[build.id]
|
||||
for ir_log in build_logs:
|
||||
ir_log['active_step_id'] = build.active_step.id
|
||||
if ir_log['level'].upper() == 'WARNING':
|
||||
build.triggered_result = 'warn'
|
||||
elif ir_log['level'].upper() == 'ERROR':
|
||||
|
@ -221,7 +221,6 @@ class Host(models.Model):
|
||||
build_logs = logs_by_build_id[build.id]
|
||||
for ir_log in build_logs:
|
||||
local_log_ids.append(ir_log['id'])
|
||||
ir_log['active_step_id'] = build.active_step.id
|
||||
ir_log['type'] = 'server'
|
||||
log_counter -= 1
|
||||
if log_counter == 0:
|
||||
|
@ -230,7 +230,7 @@
|
||||
<t t-foreach="build.sudo().log_ids" t-as="l">
|
||||
<t t-set="subbuild" t-value="(([child for child in build.children_ids if child.id == int(l.path)] if l.type == 'subbuild' else False) or [build.browse()])[0]"/>
|
||||
<t t-set="logclass" t-value="dict(CRITICAL='danger', ERROR='danger', WARNING='warning', OK='success', SEPARATOR='separator').get(l.level)"/>
|
||||
<tr t-att-class="'separator' if logclass == 'separator' else ''">
|
||||
<tr t-att-class="'separator' if logclass == 'separator' else ''" t-att-title="l.active_step_id.description or ''">
|
||||
<td style="white-space: nowrap; width:1%;">
|
||||
<t t-esc="l.create_date.strftime('%Y-%m-%d %H:%M:%S')"/>
|
||||
</td>
|
||||
|
@ -40,6 +40,7 @@
|
||||
</div>
|
||||
<group string="General settings">
|
||||
<field name="name"/>
|
||||
<field name="description"/>
|
||||
<field name="domain_filter"/>
|
||||
<field name="job_type"/>
|
||||
<field name="make_stats"/>
|
||||
|
Loading…
Reference in New Issue
Block a user