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