Skip to content

Commit

Permalink
[IMP] runbot: limit trigger to same category
Browse files Browse the repository at this point in the history
Since only reference_batch from the same category are stored, it makes
senses to limit the complement trigger to the same category.
  • Loading branch information
Xavier-Do committed Feb 26, 2025
1 parent fb7b848 commit f5a56f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runbot/models/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Trigger(models.Model):
manual = fields.Boolean('Only start trigger manually', default=False)
restore_trigger_id = fields.Many2one('runbot.trigger', string='Restore Trigger ID for custom triggers', help="Mainly usefull to automatically define where to find a reference database when creating a custom trigger", tracking=True)

upgrade_dumps_trigger_id = fields.Many2one('runbot.trigger', string='Template/complement trigger', tracking=True)
upgrade_dumps_trigger_id = fields.Many2one('runbot.trigger', string='Template/complement trigger', tracking=True, domain="[('category_id', '=', category_id), ('project_id', '=', project_id)]")
upgrade_step_id = fields.Many2one('runbot.build.config.step', compute="_compute_upgrade_step_id", store=True)
ci_url = fields.Char("CI url")
ci_description = fields.Char("CI description")
Expand Down

0 comments on commit f5a56f5

Please sign in to comment.