mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[REF] runbot: add descriptions
This commit is contained in:
parent
2b53c7cfd0
commit
df157f7742
@ -12,6 +12,7 @@ _re_patch = re.compile(r'.*patch-\d+$')
|
||||
class runbot_branch(models.Model):
|
||||
|
||||
_name = "runbot.branch"
|
||||
_description = "Branch"
|
||||
_order = 'name'
|
||||
_sql_constraints = [('branch_repo_uniq', 'unique (name,repo_id)', 'The branch must be unique per repository !')]
|
||||
|
||||
|
@ -32,6 +32,8 @@ def make_selection(array):
|
||||
|
||||
class runbot_build(models.Model):
|
||||
_name = "runbot.build"
|
||||
_description = "Build"
|
||||
|
||||
_order = 'id desc'
|
||||
_rec_name = 'id'
|
||||
|
||||
|
@ -21,6 +21,7 @@ PYTHON_DEFAULT = "# type python code here\n\n\n\n\n\n"
|
||||
|
||||
class Config(models.Model):
|
||||
_name = "runbot.build.config"
|
||||
_description = "Build config"
|
||||
_inherit = "mail.thread"
|
||||
|
||||
name = fields.Char('Config name', required=True, unique=True, track_visibility='onchange', help="Unique name for config please use trigram as postfix for custom configs")
|
||||
@ -84,6 +85,7 @@ class Config(models.Model):
|
||||
|
||||
class ConfigStep(models.Model):
|
||||
_name = 'runbot.build.config.step'
|
||||
_description = "Config step"
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
# general info
|
||||
@ -560,6 +562,7 @@ class ConfigStep(models.Model):
|
||||
|
||||
class ConfigStepOrder(models.Model):
|
||||
_name = 'runbot.build.config.step.order'
|
||||
_description = "Config step order"
|
||||
_order = 'sequence, id'
|
||||
# a kind of many2many rel with sequence
|
||||
|
||||
|
@ -3,6 +3,7 @@ from odoo import models, fields
|
||||
|
||||
class RunbotBuildDependency(models.Model):
|
||||
_name = "runbot.build.dependency"
|
||||
_description = "Build dependency"
|
||||
|
||||
build_id = fields.Many2one('runbot.build', 'Build', required=True, ondelete='cascade', index=True)
|
||||
dependecy_repo_id = fields.Many2one('runbot.repo', 'Dependency repo', required=True, ondelete='cascade')
|
||||
|
@ -13,6 +13,8 @@ _logger = logging.getLogger(__name__)
|
||||
class RunbotBuildError(models.Model):
|
||||
|
||||
_name = "runbot.build.error"
|
||||
_description = "Build error"
|
||||
|
||||
_inherit = "mail.thread"
|
||||
_rec_name = "id"
|
||||
|
||||
@ -171,6 +173,7 @@ class RunbotBuildError(models.Model):
|
||||
class RunbotBuildErrorTag(models.Model):
|
||||
|
||||
_name = "runbot.build.error.tag"
|
||||
_description = "Build error tag"
|
||||
|
||||
name = fields.Char('Tag')
|
||||
error_ids = fields.Many2many('runbot.build.error', string='Errors')
|
||||
@ -179,6 +182,7 @@ class RunbotBuildErrorTag(models.Model):
|
||||
class RunbotErrorRegex(models.Model):
|
||||
|
||||
_name = "runbot.error.regex"
|
||||
_description = "Build error regex"
|
||||
_inherit = "mail.thread"
|
||||
_rec_name = 'id'
|
||||
_order = 'sequence, id'
|
||||
|
@ -74,6 +74,7 @@ FOR EACH ROW EXECUTE PROCEDURE runbot_set_logging_build();
|
||||
|
||||
class RunbotErrorLog(models.Model):
|
||||
_name = "runbot.error.log"
|
||||
_description = "Error log"
|
||||
_auto = False
|
||||
_order = 'id desc'
|
||||
|
||||
|
@ -6,6 +6,7 @@ _logger = logging.getLogger(__name__)
|
||||
|
||||
class RunboHost(models.Model):
|
||||
_name = "runbot.host"
|
||||
_description = "Host"
|
||||
_order = 'id'
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
|
@ -30,6 +30,7 @@ class RunbotException(Exception):
|
||||
class runbot_repo(models.Model):
|
||||
|
||||
_name = "runbot.repo"
|
||||
_description = "Repo"
|
||||
_order = 'sequence, id'
|
||||
|
||||
name = fields.Char('Repository', required=True)
|
||||
@ -763,6 +764,7 @@ class runbot_repo(models.Model):
|
||||
|
||||
class RefTime(models.Model):
|
||||
_name = "runbot.repo.reftime"
|
||||
_description = "Repo reftime"
|
||||
_log_access = False
|
||||
|
||||
time = fields.Float('Time', index=True, required=True)
|
||||
@ -771,6 +773,7 @@ class RefTime(models.Model):
|
||||
|
||||
class HookTime(models.Model):
|
||||
_name = "runbot.repo.hooktime"
|
||||
_description = "Repo hooktime"
|
||||
_log_access = False
|
||||
|
||||
time = fields.Float('Time')
|
||||
|
@ -6,6 +6,7 @@ from odoo import fields, models, api
|
||||
class MultiBuildWizard(models.TransientModel):
|
||||
|
||||
_name = 'runbot.build.config.multi.wizard'
|
||||
_description = "Multi wizard"
|
||||
|
||||
base_name = fields.Char('Generic name', required=True)
|
||||
prefix = fields.Char('Prefix', help="Leave blank to use login.")
|
||||
|
Loading…
Reference in New Issue
Block a user