[ews-app] Allow certain fields to be empty
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jan 2019 19:54:48 +0000 (19:54 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jan 2019 19:54:48 +0000 (19:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193892

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-app/ews/models/build.py:
* BuildSlaveSupport/ews-app/ews/models/step.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240595 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews/models/build.py
Tools/BuildSlaveSupport/ews-app/ews/models/step.py
Tools/ChangeLog

index 46b4b27..a309671 100644 (file)
@@ -31,10 +31,10 @@ class Build(models.Model):
     buildid = models.IntegerField(primary_key=True)
     builderid = models.IntegerField()
     number = models.IntegerField()
-    result = models.IntegerField()
+    result = models.IntegerField(null=True, blank=True)
     state_string = models.TextField()
-    started_at = models.IntegerField()
-    complete_at = models.IntegerField()
+    started_at = models.IntegerField(null=True, blank=True)
+    complete_at = models.IntegerField(null=True, blank=True)
     created = models.DateTimeField(auto_now_add=True)
     modified = models.DateTimeField(auto_now=True)
 
index 634f370..b160af9 100644 (file)
@@ -29,10 +29,10 @@ from ews.models.build import Build
 class Step(models.Model):
     stepid = models.IntegerField(primary_key=True)
     build = models.ForeignKey(Build, on_delete=models.CASCADE)
-    result = models.IntegerField()
+    result = models.IntegerField(null=True, blank=True)
     state_string = models.TextField()
-    started_at = models.IntegerField()
-    complete_at = models.IntegerField()
+    started_at = models.IntegerField(null=True, blank=True)
+    complete_at = models.IntegerField(null=True, blank=True)
     created = models.DateTimeField(auto_now_add=True)
     modified = models.DateTimeField(auto_now=True)
 
index 9190b9e..fefd48d 100644 (file)
@@ -1,3 +1,13 @@
+2019-01-28  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] Allow certain fields to be empty
+        https://bugs.webkit.org/show_bug.cgi?id=193892
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/models/build.py:
+        * BuildSlaveSupport/ews-app/ews/models/step.py:
+
 2019-01-28  Rob Buis  <rbuis@igalia.com>
 
         Update MIME type parser