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 @@ ...@@ -8,9 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value> <int>0</int> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
...@@ -33,11 +31,15 @@ getMovedItemUidList</string> </value> ...@@ -33,11 +31,15 @@ getMovedItemUidList</string> </value>
</item> </item>
<item> <item>
<key> <string>class_file_</string> </key> <key> <string>class_file_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>class_name_</string> </key> <key> <string>class_name_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>connection_hook</string> </key> <key> <string>connection_hook</string> </key>
...@@ -51,7 +53,7 @@ getMovedItemUidList</string> </value> ...@@ -51,7 +53,7 @@ getMovedItemUidList</string> </value>
</item> </item>
<item> <item>
<key> <string>expression</string> </key> <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>
<item> <item>
<key> <string>expression_cache_key</string> </key> <key> <string>expression_cache_key</string> </key>
...@@ -89,7 +91,7 @@ getMovedItemUidList</string> </value> ...@@ -89,7 +91,7 @@ getMovedItemUidList</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>z_catalog_item_list</string> </value>
</item> </item>
<item> <item>
<key> <string>type</string> </key> <key> <string>type</string> </key>
......
...@@ -16,6 +16,7 @@ CREATE TABLE `item` ( ...@@ -16,6 +16,7 @@ CREATE TABLE `item` (
PRIMARY KEY (`uid`, `aggregate_uid`,`order_id`), PRIMARY KEY (`uid`, `aggregate_uid`,`order_id`),
KEY `section_uid` (`section_uid`), KEY `section_uid` (`section_uid`),
KEY `resource_uid` (`resource_uid`), KEY `resource_uid` (`resource_uid`),
KEY `project_uid` (`project_uid`),
KEY `variation_text` (`variation_text`), KEY `variation_text` (`variation_text`),
KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`), KEY `aggregate_simulation_state_date` (`aggregate_uid`,`simulation_state`,`date`),
KEY `node_simulation_state_date` (`node_uid`,`simulation_state`,`date`) KEY `node_simulation_state_date` (`node_uid`,`simulation_state`,`date`)
......
...@@ -6,17 +6,9 @@ ...@@ -6,17 +6,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_col</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value> <int>0</int> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
...@@ -28,11 +20,15 @@ ...@@ -28,11 +20,15 @@
</item> </item>
<item> <item>
<key> <string>class_file_</string> </key> <key> <string>class_file_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>class_name_</string> </key> <key> <string>class_name_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>connection_hook</string> </key> <key> <string>connection_hook</string> </key>
...@@ -62,7 +58,7 @@ ...@@ -62,7 +58,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>z_create_item</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </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