Commit cd74b7c4 authored by Roque's avatar Roque

erp5_web_monitoring: force_reconfig

parent dbd0b691
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
.declareAcquiredMethod("setSettingList", "setSettingList") .declareAcquiredMethod("setSettingList", "setSettingList")
.declareAcquiredMethod("setSetting", "setSetting") .declareAcquiredMethod("setSetting", "setSetting")
.declareMethod('updateConfiguration', function (appcache_storage, current_version, jio_storage, force_re_config) { .declareMethod('updateConfiguration', function (appcache_storage, current_version, jio_storage, force_reconfig) {
var gadget = this, setting_dict = {'migration_version': current_version}; var gadget = this, setting_dict = {'migration_version': current_version};
if (!appcache_storage) { return; } if (!appcache_storage) { return; }
return RSVP.Queue() return RSVP.Queue()
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
return jio_storage.repair(); return jio_storage.repair();
}) })
.push(function () { .push(function () {
if (force_re_config) { if (force_reconfig) {
setting_dict.master_url_list = undefined; setting_dict.master_url_list = undefined;
setting_dict.master_url_list_updated = false; setting_dict.master_url_list_updated = false;
} }
...@@ -240,8 +240,8 @@ ...@@ -240,8 +240,8 @@
if (migration_version !== current_version) { if (migration_version !== current_version) {
appcache_storage = jIO.createJIO(appcache_jio); appcache_storage = jIO.createJIO(appcache_jio);
//TODO make it true only if old config is present (e.g. 'promise' portal_type objects (instead of new 'Promise') //TODO make it true only if old config is present (e.g. 'promise' portal_type objects (instead of new 'Promise')
var force_re_config = true; var force_reconfig = true;
return gadget.updateConfiguration(appcache_storage, current_version, gadget.props.jio_storage, force_re_config); return gadget.updateConfiguration(appcache_storage, current_version, gadget.props.jio_storage, force_reconfig);
} }
}) })
.push(function () { .push(function () {
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1019.60311.3311.32136</string> </value> <value> <string>1019.60319.36764.46933</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1728666213.6</float> <float>1728666282.84</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