Commit f519a63d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

slapos_cloud: Add jIO API Revision to Shared and Software Instance

parent 0b9c74c8
...@@ -387,6 +387,7 @@ class SoftwareInstance(Item, JSONType): ...@@ -387,6 +387,7 @@ class SoftwareInstance(Item, JSONType):
"compute_partition_id": parameter_dict.get("slap_computer_partition_id"), "compute_partition_id": parameter_dict.get("slap_computer_partition_id"),
"processing_timestamp": self.getSlapTimestamp(), "processing_timestamp": self.getSlapTimestamp(),
"access_status_message": self.getTextAccessStatus(), "access_status_message": self.getTextAccessStatus(),
"api_revision": self.getJIOAPIRevision(),
"portal_type": self.getPortalType(), "portal_type": self.getPortalType(),
} }
self.REQUEST.response.setHeader('Cache-Control', self.REQUEST.response.setHeader('Cache-Control',
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<key> <string>type_mixin</string> </key> <key> <string>type_mixin</string> </key>
<value> <value>
<tuple> <tuple>
<string>JIOAPIRevisionMixin</string>
<string>SlapOSCacheMixin</string> <string>SlapOSCacheMixin</string>
</tuple> </tuple>
</value> </value>
......
...@@ -191,6 +191,11 @@ ...@@ -191,6 +191,11 @@
"type": "number",\n "type": "number",\n
"description": "Timestamp set by the master node to mark when it was last processed in the master node. If it has been processed on master, it needs reprocessiing on the compute node."\n "description": "Timestamp set by the master node to mark when it was last processed in the master node. If it has been processed on master, it needs reprocessiing on the compute node."\n
},\n },\n
"api_revision": {\n
"title": "API Revision",\n
"type": "string",\n
"description": "The API Revision is set by the master node to mark when the element was last processed. It is incremental. If revision has changed, critical data has been updated"\n
},\n
"access_status_message": {\n "access_status_message": {\n
"title": "Access Status",\n "title": "Access Status",\n
"type": "string",\n "type": "string",\n
...@@ -219,6 +224,7 @@ ...@@ -219,6 +224,7 @@
<key> <string>type_mixin</string> </key> <key> <string>type_mixin</string> </key>
<value> <value>
<tuple> <tuple>
<string>JIOAPIRevisionMixin</string>
<string>SlapOSCacheMixin</string> <string>SlapOSCacheMixin</string>
</tuple> </tuple>
</value> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment