| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from google.appengine.ext import ndb | 5 from google.appengine.ext import ndb |
| 6 | 6 |
| 7 from common import appengine_util | 7 from common import appengine_util |
| 8 from lib import time_util | 8 from libs import time_util |
| 9 from model import triage_status | 9 from model import triage_status |
| 10 | 10 |
| 11 | 11 |
| 12 class TriageResult(ndb.Model): | 12 class TriageResult(ndb.Model): |
| 13 # The user who updated this result. | 13 # The user who updated this result. |
| 14 user_name = ndb.StringProperty(default=None, indexed=False) | 14 user_name = ndb.StringProperty(default=None, indexed=False) |
| 15 | 15 |
| 16 # The time this triage result was determined. | 16 # The time this triage result was determined. |
| 17 triaged_time = ndb.DateTimeProperty(indexed=False, auto_now=True) | 17 triaged_time = ndb.DateTimeProperty(indexed=False, auto_now=True) |
| 18 | 18 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 triage_record.triage_result)), | 60 triage_record.triage_result)), |
| 61 'findit_version': triage_record.findit_version, | 61 'findit_version': triage_record.findit_version, |
| 62 'version_number': triage_record.version_number | 62 'version_number': triage_record.version_number |
| 63 }) | 63 }) |
| 64 | 64 |
| 65 return triage_history | 65 return triage_history |
| 66 | 66 |
| 67 # Record the triage result history. | 67 # Record the triage result history. |
| 68 triage_history = ndb.LocalStructuredProperty( | 68 triage_history = ndb.LocalStructuredProperty( |
| 69 TriageResult, repeated=True, indexed=False, compressed=True) | 69 TriageResult, repeated=True, indexed=False, compressed=True) |
| OLD | NEW |