Notes |
|
(0096229)
|
hgbot
|
2017-04-27 13:06
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 65fe7b1a18937924f8d468ac20f51d6a353647bc
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Apr 27 13:05:56 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/65fe7b1a18937924f8d468ac20f51d6a353647bc [^]
related to issue 35819: Support alignment and handling of software versions between store and central servers
Also handle server response status in the ping message
---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
|
|
|
(0096232)
|
hgbot
|
2017-04-27 13:51
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: f2e43344540d7fd627d53277285289cf0151e12c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Apr 27 13:51:08 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/f2e43344540d7fd627d53277285289cf0151e12c [^]
Fixes issue 35819: Support alignment and handling of software versions between store and central servers
- added new custom datasource to retrieve version details from store servers
- added table and window to use for this new datasource
- RetailSynchronizationRequestAllowedHandler: added checking of requests in case of version differences, use referer of webpage to base logic on correct
originating server of the webpage
- new table, window to show modules by server
- StoreSynchronizationComponentProvider.java/incompatibleVersionHandler.js: client side handling of when a store server is in a different version than t
he central servrer
- STRSYNC_SYNCHRONIZEDTABLE.xml: define replication of modules by server, changed OBMOBC_SERVER_SERVICES to use mobile server channel
- PreferenceWriterFilterAdapter.java: recompute cached info if the ignore-version-check preference is send from central to store
- StoreServerContextListener.java: when the system starts then recompute the module and version information
- StoreServerIncomingSynchronizationPreventer.java: prevent data to be replicated from the store if the central and store server are in different versio
ns
- StoreServerVersionHandler.java: main class which recomputes/recreates the modules by server for a specific server and also computes the incompatibilit
y status of a store server
- RetrieveServerVersionStatus: webservice which returns the version status information of a server and any differences with the central server
- VersionCacheResetWriterFilterAdapter: will trigger reset of cached information on the store server if the modules of the central server change and are
replicated
- StoreServerVersionOverviewDatasource: the data source which delivers the content of the Store Server Version Overview window
---
M src-db/database/model/modifiedTables/OBMOBC_SERVER_DEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TREENODE.xml
M src-db/database/sourcedata/AD_WINDOW.xml
M src-db/database/sourcedata/OBSERDS_DATASOURCE.xml
M src-db/database/sourcedata/STRSYNC_SYNCHRONIZEDTABLE.xml
M src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
M src/org/openbravo/retail/storeserver/synchronization/StoreSynchronizationComponentProvider.java
A src-db/database/model/tables/OBSTSYN_SERVER_MODULE.xml
A src/org/openbravo/retail/storeserver/synchronization/PreferenceWriterFilterAdapter.java
A src/org/openbravo/retail/storeserver/synchronization/RetrieveServerVersionStatus.java
A src/org/openbravo/retail/storeserver/synchronization/StoreServerContextListener.java
A src/org/openbravo/retail/storeserver/synchronization/StoreServerIncomingSynchronizationPreventer.java
A src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
A src/org/openbravo/retail/storeserver/synchronization/VersionCacheResetWriterFilterAdapter.java
A src/org/openbravo/retail/storeserver/synchronization/datasource/StoreServerVersionOverviewDatasource.java
A web/org.openbravo.retail.storeserver.synchronization/js/incompatibleVersionHandler.js
---
|
|
|
(0096273)
|
hgbot
|
2017-04-30 11:13
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 3b36be3f88745b8eccdd978b846e07b08bd9346d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Apr 30 11:13:02 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/3b36be3f88745b8eccdd978b846e07b08bd9346d [^]
Related to issue 35819: Support alignment and handling of software versions between store and central servers
- PreferenceWriterFilterAdapter, VersionCacheResetWriterFilterAdapter: Also reset the thread local when a batch is rolled back
changed method name to call
- StoreServerVersionHandler: read the preference irrespective of organization, change method name, solve two bugs in other code
- RetailSynchronizationRequestAllowedHandler: updated comment
---
M src/org/openbravo/retail/storeserver/synchronization/PreferenceWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/VersionCacheResetWriterFilterAdapter.java
---
|
|
|
(0096274)
|
mtaal
|
2017-04-30 11:13
|
|
|
|
(0096275)
|
mtaal
|
2017-04-30 11:14
|
|
|
|
(0096278)
|
hgbot
|
2017-05-01 11:46
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 43f4ac677b5228b848e1d8d5bd5e7f2598ad7125
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 01 11:46:41 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/43f4ac677b5228b848e1d8d5bd5e7f2598ad7125 [^]
Related to issue 35819: Support alignment and handling of software versions between store and central servers
Add check that ignore-version-check preference is set correctly
---
M src-db/database/sourcedata/AD_MESSAGE.xml
A src/org/openbravo/retail/storeserver/synchronization/IgnoreVersionCheckPreferenceEventHandler.java
---
|
|
|
(0096279)
|
hgbot
|
2017-05-01 16:23
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 5887659955e44bb29bc3f8aad9f6a8f6b8e1ec27
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 01 16:23:39 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/5887659955e44bb29bc3f8aad9f6a8f6b8e1ec27 [^]
Related to issue 35819: Support alignment and handling of software versions between store and central servers
- IgnoreVersionCheckPreferenceEventHandler: reset the cached version information if the ignore-version-check preference is set
- RetrieveServerVersionStatus: handle the case that the store server is not defined properly, set error message in differences field
- StoreServerVersionHandler: updated comments, handle mobile server not set
- StoreServerVersionOverviewDatasource: set any error in the differences field of the store-server-version-overview window
---
M src/org/openbravo/retail/storeserver/synchronization/IgnoreVersionCheckPreferenceEventHandler.java
M src/org/openbravo/retail/storeserver/synchronization/RetrieveServerVersionStatus.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/datasource/StoreServerVersionOverviewDatasource.java
---
|
|
|
(0096291)
|
hgbot
|
2017-05-01 17:34
|
|
|
|
(0096420)
|
hgbot
|
2017-05-05 14:10
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: efdb3497153b3bb1ad080937163bac8b1f3f62db
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri May 05 14:09:01 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/efdb3497153b3bb1ad080937163bac8b1f3f62db [^]
Related with issue 35819: Fixes code format in java classes
---
M src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
M src/org/openbravo/retail/storeserver/synchronization/RetrieveServerVersionStatus.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerIncomingSynchronizationPreventer.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/VersionCacheResetWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/datasource/StoreServerVersionOverviewDatasource.java
---
|
|
|
(0096421)
|
hgbot
|
2017-05-05 14:20
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: c704be3fb0d2a456dead88ebbd1be368bbc375f5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri May 05 14:20:24 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/c704be3fb0d2a456dead88ebbd1be368bbc375f5 [^]
Related with issue 35819: Adds missing admin mode block
Without that block, the following exception could happen is some structures were not cached:
java.lang.NullPointerException
at org.openbravo.mobile.core.servercontroller.MobileServerUtils.isMultiServerEnabled(MobileServerUtils.java:140)
at org.openbravo.retail.storeserver.synchronization.StoreServerVersionHandler.initCachedInfoUpdateVersionStatus(StoreServerVersionHandler.java:130)
at org.openbravo.retail.storeserver.synchronization.StoreServerVersionHandler.doVersionCheck(StoreServerVersionHandler.java:117)
at org.openbravo.retail.storeserver.synchronization.StoreServerIncomingSynchronizationPreventer.beforeWrite(StoreServerIncomingSynchronizationPreventer.java:50)
---
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
---
|
|
|
|
|
|
|
Reopened until code review changes are implemented |
|
|
(0096687)
|
hgbot
|
2017-05-21 21:15
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: cb02b639965f955b5699e5ca62fd9a538521e6c4
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun May 21 21:15:03 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/cb02b639965f955b5699e5ca62fd9a538521e6c4 [^]
Fixes issue 35819: Support alignment and handling of software versions between store and central servers
Implemented code review comments
---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src/org/openbravo/retail/storeserver/synchronization/PreferenceWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
M src/org/openbravo/retail/storeserver/synchronization/RetrieveServerVersionStatus.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerIncomingSynchronizationPreventer.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/VersionCacheResetWriterFilterAdapter.java
M src/org/openbravo/retail/storeserver/synchronization/datasource/StoreServerVersionOverviewDatasource.java
---
|
|
|
(0097149)
|
hgbot
|
2017-06-05 19:18
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: fb7132ea82d9ab05acab189ccd076eb83cd3e091
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 05 19:17:51 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/fb7132ea82d9ab05acab189ccd076eb83cd3e091 [^]
Fixes issue 35819: Support alignment and handling of software versions between store and central servers
Adapt module server version dataset to export for the store server itself and central server.
Let the store server version handler not do the separate thread for computing module versions in case
it is the central server.
---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
---
|
|
|
(0097598)
|
AugustoMauch
|
2017-06-23 08:55
(edited on: 2017-06-23 09:12) |
|
|
|
(0097633)
|
hgbot
|
2017-06-26 09:27
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: daa24c1c3509c7084927c498f5f22d42d8adaf46
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 26 09:25:40 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/daa24c1c3509c7084927c498f5f22d42d8adaf46 [^]
Related to issue 35819: Support alignment and handling of software versions between store and central servers
Allow subclasses of JSONProcessSimple to skip default store transitioning behavior
---
M src/org/openbravo/mobile/core/process/JSONProcessSimple.java
---
|
|
|
(0097635)
|
hgbot
|
2017-06-26 09:27
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: fbd5483349394082fa8a91b97a64c07f9a16d1b4
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 26 09:26:17 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fbd5483349394082fa8a91b97a64c07f9a16d1b4 [^]
Related to issue 35819: Support alignment and handling of software versions between store and central servers
Allow requests to the central server from the central server.
---
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
---
|
|
|
(0097638)
|
hgbot
|
2017-06-26 09:35
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 13cefa1b03eab4ce28a7eeaa496a2813e9f3cd84
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 26 09:34:59 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/13cefa1b03eab4ce28a7eeaa496a2813e9f3cd84 [^]
Fixes issue 35819: Support alignment and handling of software versions between store and central servers
Added process to force recomputation of version handling on a server
In RetrieveServerVersionStatus use the new method from the superclass to go past transitioning logic
Added javadoc
In StoreServerVersionHandler always recompute/generate the server version module table, only for the
changed records.
---
M src-db/database/model/modifiedTables/OBMOBC_SERVER_DEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
M src/org/openbravo/retail/storeserver/synchronization/RetrieveServerVersionStatus.java
M src/org/openbravo/retail/storeserver/synchronization/StoreServerVersionHandler.java
A src/org/openbravo/retail/storeserver/synchronization/RecomputeVersionModuleHandler.java
A src/org/openbravo/retail/storeserver/synchronization/RecomputeVersionModuleProcess.java
---
|
|
|
|
|
|
(0097660)
|
hgbot
|
2017-06-26 15:38
|
|
|
|
(0097661)
|
hgbot
|
2017-06-26 15:38
|
|
|
|
(0097665)
|
hgbot
|
2017-06-26 15:41
|
|
|
|
|
Code reviewed and verified |
|