Commit 44940682 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Catalog only Internal Packing List [Line|Cell] on item table

On slapos master, the TrackingAPI is only used for determinate location/project to for computers and/or Instances via Internal Packing Lists only.

The goal of this change is not allow others movements "change" location of the item and speed up by simple reducing table size to optimal point.
parent 42cb1feb
......@@ -8,9 +8,7 @@
<dictionary>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
......@@ -33,11 +31,15 @@ getMovedItemUidList</string> </value>
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_hook</string> </key>
......@@ -51,7 +53,7 @@ getMovedItemUidList</string> </value>
</item>
<item>
<key> <string>expression</string> </key>
<value> <string>python: context.providesIMovement()</string> </value>
<value> <string>python: context.getPortalType() in ["Internal Packing List Line", "Internal Packing List Cell"]</string> </value>
</item>
<item>
<key> <string>expression_cache_key</string> </key>
......@@ -89,7 +91,7 @@ getMovedItemUidList</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_catalog_item_list</string> </value>
</item>
<item>
<key> <string>type</string> </key>
......
......@@ -16,6 +16,7 @@ CREATE TABLE `item` (
PRIMARY KEY (`uid`, `aggregate_uid`,`order_id`),
KEY `section_uid` (`section_uid`),
KEY `resource_uid` (`resource_uid`),
KEY `project_uid` (`project_uid`),
KEY `variation_text` (`variation_text`),
KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`),
KEY `node_simulation_state_date` (`node_uid`,`simulation_state`,`date`)
......
......@@ -6,17 +6,9 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_col</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
......@@ -28,11 +20,15 @@
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_hook</string> </key>
......@@ -62,7 +58,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_create_item</string> </value>
</item>
</dictionary>
</pickle>
......
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