Commit 8480d7cf authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapos_cloud: Add jIO API Revision to Shared and Software Instance

parent d0569d3a
...@@ -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',
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
<value> <value>
<tuple> <tuple>
<string>SlapOSCacheMixin</string> <string>SlapOSCacheMixin</string>
<string>JIOAPIRevisionMixin</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -193,6 +193,11 @@ ...@@ -193,6 +193,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
...@@ -222,6 +227,7 @@ ...@@ -222,6 +227,7 @@
<value> <value>
<tuple> <tuple>
<string>SlapOSCacheMixin</string> <string>SlapOSCacheMixin</string>
<string>JIOAPIRevisionMixin</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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