Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: appengine/chromium_rietveld/codereview/models.py

Issue 773083004: Rietveld: Display the remote tracked ref in both old and new UIs (Closed) Base URL: https://chromium.googlesource.com/infra/infra@master
Patch Set: remote_branch -> target_ref Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | appengine/chromium_rietveld/codereview/revert_patchset.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 Google Inc. 1 # Copyright 2008 Google Inc.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 """The major top-level entity. 70 """The major top-level entity.
71 71
72 It has one or more PatchSets as its descendants. 72 It has one or more PatchSets as its descendants.
73 """ 73 """
74 74
75 subject = ndb.StringProperty(required=True) 75 subject = ndb.StringProperty(required=True)
76 description = ndb.TextProperty() 76 description = ndb.TextProperty()
77 project = ndb.StringProperty() 77 project = ndb.StringProperty()
78 #: in Subversion - repository path (URL) for files in patch set 78 #: in Subversion - repository path (URL) for files in patch set
79 base = ndb.StringProperty() 79 base = ndb.StringProperty()
80 target_ref = ndb.StringProperty()
80 repo_guid = ndb.StringProperty() 81 repo_guid = ndb.StringProperty()
81 owner = auth_utils.AnyAuthUserProperty(auto_current_user_add=True, 82 owner = auth_utils.AnyAuthUserProperty(auto_current_user_add=True,
82 required=True) 83 required=True)
83 created = ndb.DateTimeProperty(auto_now_add=True) 84 created = ndb.DateTimeProperty(auto_now_add=True)
84 modified = ndb.DateTimeProperty(auto_now=True) 85 modified = ndb.DateTimeProperty(auto_now=True)
85 reviewers = ndb.StringProperty(repeated=True) 86 reviewers = ndb.StringProperty(repeated=True)
86 required_reviewers = ndb.StringProperty(repeated=True) 87 required_reviewers = ndb.StringProperty(repeated=True)
87 all_required_reviewers_approved = ndb.BooleanProperty(default=True) 88 all_required_reviewers_approved = ndb.BooleanProperty(default=True)
88 cc = ndb.StringProperty(repeated=True) 89 cc = ndb.StringProperty(repeated=True)
89 closed = ndb.BooleanProperty(default=False) 90 closed = ndb.BooleanProperty(default=False)
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 out.issues = sum((i.issues for i in items), []) 1776 out.issues = sum((i.issues for i in items), [])
1776 out.latencies = sum((i.latencies for i in items), []) 1777 out.latencies = sum((i.latencies for i in items), [])
1777 out.lgtms = sum((i.lgtms for i in items), []) 1778 out.lgtms = sum((i.lgtms for i in items), [])
1778 out.review_types = sum((i.review_types for i in items), []) 1779 out.review_types = sum((i.review_types for i in items), [])
1779 out.score = compute_score(out) 1780 out.score = compute_score(out)
1780 return ( 1781 return (
1781 prev_issues != out.issues or 1782 prev_issues != out.issues or
1782 prev_latencies != out.latencies or 1783 prev_latencies != out.latencies or
1783 prev_lgtms != out.lgtms or 1784 prev_lgtms != out.lgtms or
1784 prev_review_types != out.review_types) 1785 prev_review_types != out.review_types)
OLDNEW
« no previous file with comments | « no previous file | appengine/chromium_rietveld/codereview/revert_patchset.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698