[ews-app] Modified timestamp should be updated on updating data
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Feb 2019 20:19:05 +0000 (20:19 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Feb 2019 20:19:05 +0000 (20:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194295

Reviewed by Lucas Forschler.

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

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

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

index 5fdd0cf..65eea88 100644 (file)
@@ -80,7 +80,7 @@ class Build(models.Model):
         build.state_string = state_string
         build.started_at = started_at
         build.complete_at = complete_at
-        build.save(update_fields=['result', 'state_string', 'started_at', 'complete_at'])
+        build.save(update_fields=['result', 'state_string', 'started_at', 'complete_at', 'modified'])
         _log.info('Updated build {} in database for patch_id: {}'.format(build_id, patch_id))
         return SUCCESS
 
index dc61a27..84f32ff 100644 (file)
@@ -67,7 +67,7 @@ class BuilderMapping(models.Model):
 
         mapping.builder_name = builder_name
         mapping.display_name = display_name
-        mapping.save(update_fields=['builder_name', 'display_name'])
+        mapping.save(update_fields=['builder_name', 'display_name', 'modified'])
         _log.info('Updated mapping for builder_id: {}, name: {}, display_name: {}'.format(builder_id, builder_name, display_name))
         return SUCCESS
 
index c3018d7..0812fee 100644 (file)
@@ -72,7 +72,7 @@ class Step(models.Model):
         step.state_string = state_string
         step.started_at = started_at
         step.complete_at = complete_at
-        step.save(update_fields=['result', 'state_string', 'started_at', 'complete_at'])
+        step.save(update_fields=['result', 'state_string', 'started_at', 'complete_at', 'modified'])
         _log.info('Updated step {} in database for build: {}'.format(step_id, build_id))
         return SUCCESS
 
index 678fbbe..7f04341 100644 (file)
@@ -1,3 +1,14 @@
+2019-02-05  Aakash Jain  <aakash_jain@apple.com>
+
+        [ews-app] Modified timestamp should be updated on updating data
+        https://bugs.webkit.org/show_bug.cgi?id=194295
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-app/ews/models/build.py:
+        * BuildSlaveSupport/ews-app/ews/models/buildermapping.py:
+        * BuildSlaveSupport/ews-app/ews/models/step.py:
+
 2019-02-05  Ryan Haddad  <ryanhaddad@apple.com>
 
         Unreviewed, rolling out r240742.