Changeset 238532 in webkit
- Timestamp:
- Nov 26, 2018, 4:48:51 PM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
BuildSlaveSupport/ews-app/ews/models/patch.py (modified) (4 diffs)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-app/ews/models/patch.py
r238529 r238532 36 36 bug_id = models.IntegerField() 37 37 obsolete = models.BooleanField(default=False) 38 sent_to_buildbot = models.BooleanField(default=False) 38 39 created = models.DateTimeField(auto_now_add=True) 39 40 modified = models.DateTimeField(auto_now=True) … … 43 44 44 45 @classmethod 45 def save_patch(cls, patch_id, bug_id=-1, obsolete=False ):46 def save_patch(cls, patch_id, bug_id=-1, obsolete=False, sent_to_buildbot=False): 46 47 if not Patch.is_valid_patch_id(patch_id): 47 48 return ERR_INVALID_PATCH_ID … … 50 51 _log.info("Patch id {} already exists in database. Skipped saving.".format(patch_id)) 51 52 return ERR_EXISTING_PATCH 52 Patch(patch_id, bug_id, obsolete ).save()53 Patch(patch_id, bug_id, obsolete, sent_to_buildbot).save() 53 54 _log.info('Saved patch in database, id: {}'.format(patch_id)) 54 55 return SUCCESS … … 69 70 def is_existing_patch_id(cls, patch_id): 70 71 return bool(Patch.objects.filter(patch_id=patch_id)) 72 73 @classmethod 74 def is_patch_sent_to_buildbot(cls, patch_id): 75 return Patch.is_existing_patch_id(patch_id) and Patch.objects.get(pk=patch_id).sent_to_buildbot -
trunk/Tools/ChangeLog
r238530 r238532 1 2018-11-26 Aakash Jain <aakash_jain@apple.com> 2 3 [ews-app] Add field in Patch object to indicate if it has been sent to Buildbot 4 https://bugs.webkit.org/show_bug.cgi?id=191929 5 6 Reviewed by Lucas Forschler. 7 8 * BuildSlaveSupport/ews-app/ews/models/patch.py: 9 (Patch): Added sent_to_buildbot field. 10 (Patch.is_patch_sent_to_buildbot): Checks if the patch has been sent to Buildbot. 11 1 12 2018-11-26 Aakash Jain <aakash_jain@apple.com> 2 13
Note:
See TracChangeset
for help on using the changeset viewer.