Changeset - 0c29e737db23
[Not reviewed]
default
0 1 0
Mads Kiilerich - 10 years ago 2016-03-14 16:17:46
madski@unity3d.com
pullrequests: explicitly sort statuses and comments by id - and thus presumably in the right order used for computation of latest status
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/model/db.py
Show inline comments
 
@@ -2317,8 +2317,8 @@ class PullRequest(Base, BaseModel):
 
                             cascade="all, delete-orphan")
 
    org_repo = relationship('Repository', primaryjoin='PullRequest.org_repo_id==Repository.repo_id')
 
    other_repo = relationship('Repository', primaryjoin='PullRequest.other_repo_id==Repository.repo_id')
 
    statuses = relationship('ChangesetStatus')
 
    comments = relationship('ChangesetComment',
 
    statuses = relationship('ChangesetStatus', order_by='ChangesetStatus.changeset_status_id')
 
    comments = relationship('ChangesetComment', order_by='ChangesetComment.comment_id',
 
                             cascade="all, delete-orphan")
 

	
 
    def is_closed(self):
0 comments (0 inline, 0 general)