Commit 7a04c780 authored by Boris Kocherov's avatar Boris Kocherov

erp5_officejs: OnlyOffice gadget repair bulk replication thx @vincentB

parent 04a96d9b
...@@ -20,8 +20,11 @@ ...@@ -20,8 +20,11 @@
return { return {
type: "query", type: "query",
sub_storage: { sub_storage: {
type: "indexeddb", type: "uuid",
database: 'officejs_' + name + '_cache_erp5' sub_storage: {
type: "indexeddb",
database: 'officejs_' + name + '_cache_erp5'
}
} }
}; };
} }
...@@ -145,6 +148,7 @@ ...@@ -145,6 +148,7 @@
query: { query: {
query: 'reference: "%" AND (portal_type: ("Web Style", "Web Page", "Web Script")) AND ' + query: 'reference: "%" AND (portal_type: ("Web Style", "Web Page", "Web Script")) AND ' +
erp5_query + modification_date, erp5_query + modification_date,
select_list: ["url_string"],
limit: [0, 1234567890] limit: [0, 1234567890]
}, },
use_remote_post: true, use_remote_post: true,
...@@ -155,22 +159,23 @@ ...@@ -155,22 +159,23 @@
check_remote_modification: true, check_remote_modification: true,
check_remote_creation: true, check_remote_creation: true,
check_remote_deletion: true, check_remote_deletion: true,
//use_bulk_get: true, use_bulk_get: true,
use_bulk: false, use_bulk: true,
local_sub_storage: get_jio_cache_storage(name), attachment_list: [],
remote_sub_storage: { local_sub_storage: {
type: "mapping", type: "mapping",
sub_storage: { sub_storage: get_jio_cache_storage(name),
type: "erp5", mapping_dict: {
url: (new URI("hateoasnoauth")) "id": {"equal": "relative_url"},
.absoluteTo(location.href) "url_string": {"equal": "id"}
.toString(), }
default_view_reference: "jio_view" },
}, remote_sub_storage: {
mapping_dict: {"id": { type: "erp5",
"equal": "url_string", url: (new URI("hateoasnoauth"))
"default_property": "reference" .absoluteTo(location.href)
}} .toString(),
default_view_reference: "jio_view"
} }
}); });
} }
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.20973.48171.43827</string> </value> <value> <string>955.61588.62123.53248</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1480578496.19</float> <float>1481796866.22</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
return { return {
type: "query", type: "query",
sub_storage: { sub_storage: {
type: "indexeddb", type: "uuid",
database: 'officejs_' + name + '_cache_erp5' sub_storage: {
type: "indexeddb",
database: 'officejs_' + name + '_cache_erp5'
}
} }
}; };
} }
...@@ -138,6 +141,7 @@ ...@@ -138,6 +141,7 @@
query: { query: {
query: 'reference: "%" AND (portal_type: ("Web Style", "Web Page", "Web Script")) AND ' + query: 'reference: "%" AND (portal_type: ("Web Style", "Web Page", "Web Script")) AND ' +
erp5_query + modification_date, erp5_query + modification_date,
select_list: ["url_string"],
limit: [0, 1234567890] limit: [0, 1234567890]
}, },
use_remote_post: true, use_remote_post: true,
...@@ -148,22 +152,23 @@ ...@@ -148,22 +152,23 @@
check_remote_modification: true, check_remote_modification: true,
check_remote_creation: true, check_remote_creation: true,
check_remote_deletion: true, check_remote_deletion: true,
//use_bulk_get: true, use_bulk_get: true,
use_bulk: false, use_bulk: true,
local_sub_storage: get_jio_cache_storage(name), attachment_list: [],
remote_sub_storage: { local_sub_storage: {
type: "mapping", type: "mapping",
sub_storage: { sub_storage: get_jio_cache_storage(name),
type: "erp5", mapping_dict: {
url: (new URI("hateoasnoauth")) "id": {"equal": "relative_url"},
.absoluteTo(location.href) "url_string": {"equal": "id"}
.toString(), }
default_view_reference: "jio_view" },
}, remote_sub_storage: {
mapping_dict: {"id": { type: "erp5",
"equal": "url_string", url: (new URI("hateoasnoauth"))
"default_property": "reference" .absoluteTo(location.href)
}} .toString(),
default_view_reference: "jio_view"
} }
}); });
} }
......
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.40145.23133.18397</string> </value> <value> <string>955.63758.17874.13260</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1480578663.21</float> <float>1481796844.01</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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