mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot_merge: make feedback more deterministic
Before this change, the order of PRs to list in an "unready" feedback message was whatever the DB returned which could vary. This change fixes the order by applying model order.
This commit is contained in:
parent
a0dd87e45b
commit
e01ad86171
@ -763,7 +763,7 @@ class PullRequests(models.Model):
|
||||
for [ids] in self.env.cr.fetchall():
|
||||
prs = self.browse(ids)
|
||||
ready = prs.filtered(lambda p: p.state == 'ready')
|
||||
unready = prs - ready
|
||||
unready = (prs - ready).sorted()
|
||||
|
||||
for r in ready:
|
||||
self.env['runbot_merge.pull_requests.feedback'].create({
|
||||
|
Loading…
Reference in New Issue
Block a user