Notes |
|
(0102966)
|
mtaal
|
2018-03-05 06:20
|
|
Note: the resolution of this issue depends on 37851 because 37851 moves the request getreader/getcontent to after the calls to MobileServiceRequestAllowedHandlers |
|
|
(0103004)
|
hgbot
|
2018-03-06 08:25
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: e8697b438f443e662b07da6f67535d2d41cbf47e
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Mar 06 08:25:16 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/e8697b438f443e662b07da6f67535d2d41cbf47e [^]
Fixes issue 38036: SS in online mode always forward all requests to the CS
Code to forward to CS in online mode, handle invalid offline case and allow going online in more cases.
- AD_Message: added new text/title for popup in case of an invalid offline
- RetailSynchronizationRequestAllowedHandler: several changes:
> for reload: only stop webpos in case of mandatory reload
> send invalid-offline code if the SS is offline with sync errors when going offline
> forward requests to the CS, added new methods to do that, also handling error cases
- StoreServerVersionHandler: remove code which prevents working of CS and SS are in different versions, in online mode this is allowed
- added new javascript to show invalid offline mode popup
- SyncStatusOnlineTransitionHandler: allow going online also if there are things pending from CS, now only things pending from SS block online
- MobileServerEventHandler: when a mobile server definition is saved then also update the incoming error flag when state of the server is changed to offline
---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
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/StoreSynchronizationComponentProvider.java
M src/org/openbravo/retail/storeserver/synchronization/SyncStatusOnlineTransitionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/MobileServerEventHandler.java
A web/org.openbravo.retail.storeserver.synchronization/js/responseCallbackHandler.js
---
|
|
|
(0103005)
|
mtaal
|
2018-03-06 08:27
|
|
Tests done:
- basic online --> search product, cash man, create BP create ticket, cashup, checked also syncing back to SS
- going offline without sync errors --> offline mode with search product, create ticket, cashup, check sync back to CS
- going offline with sync errors from CS to SS from the start
- going offline with sync errors from CS to SS occurring after going offline
- going offline and then see if transition to online happens in case CS has sync errors
- going offline and then see if transition to online does not happen in case SS has sync errors
- check that non-mandatory reloading does not block WP in online mode
- check that mandatory reloading does block WP in online mode
- check that version differences does not block WP in online mode
- check that version differences do block WP in offline mode |
|
|
(0103006)
|
mtaal
|
2018-03-06 08:28
|
|
Mobile core push:
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d880fc5e1aea [^]
Related to issue: 38036: SS in online mode always forward all requests to the CS
Changes to server controller package of mobile core to facilitate forwarding calls from SS to CS in online mode.
- new column added to mobile server definition table to keep track if there were incoming sync errors when going offline
- added comment to mobileservice for change of related issue which moves the getRequestContent to after the calls to MobileServiceRequestHandler
- moved constants from the MultiServerJSONProcess to the MobileServerRequestExecutor
- In MultiServerJSONProcess: corrected a call to OBMOBCUtils.createSimpleErrorJson to send the message code instead of the text
- SynchronizedServerProcessCaller: use new constants |
|
|
(0103192)
|
hgbot
|
2018-03-13 15:38
|
|
|
|
(0103193)
|
hgbot
|
2018-03-13 15:38
|
|
|
|
(0103194)
|
hgbot
|
2018-03-13 15:39
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 941e0b9681656fb24def0f215c6a2712edfbad58
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Mar 13 15:39:39 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/941e0b9681656fb24def0f215c6a2712edfbad58 [^]
Related to issue 38036: SS in online mode always forward all requests to the CS
Synchronized Cashup is not needed anymore as in online mode all calls are done
to CS through SS.
---
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
R src/org/openbravo/retail/posterminal/master/CashupSynchronized.java
---
|
|
|
(0103195)
|
hgbot
|
2018-03-13 15:44
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b0120b99cc374e522c0bd067e89fec1d4362bea0
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Mar 13 15:44:19 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b0120b99cc374e522c0bd067e89fec1d4362bea0 [^]
Related to issue 38036: SS in online mode always forward all requests to the CS
- Added description to new element record
- JSONProcessSimple: transition code has been moved to the RetailSynchronizedRequestHandler
- MobileService: change the request allowed handler concept to a more general MobileServiceRequestHandler
- MobileServerRequestExecutor: formatting changes
- MultiServerJSONProcess: large clean up as the handling of online/offline calls are now done through the
MobileServiceRequestHandler. Only the code related to creating import entries and handling duplicate requests remains.
Removed code which is not used anymore.
- SynchronizedServerProcessCaller: formatting changes
---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src/org/openbravo/mobile/core/process/JSONProcessSimple.java
M src/org/openbravo/mobile/core/process/MobileService.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
M src/org/openbravo/mobile/core/servercontroller/SynchronizedServerProcessCaller.java
---
|
|
|
(0103196)
|
hgbot
|
2018-03-13 15:50
|
|
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 6885b3bb0eebe473d7f44e868c7fdc7b091ba1cc
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Mar 13 15:50:00 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/6885b3bb0eebe473d7f44e868c7fdc7b091ba1cc [^]
Related to issue 38036: SS in online mode always forward all requests to the CS
- RecomputeVersionModuleHandler: removed non used method
- RetailSynchronizationRequestAllowedHandler renamed to RetailSynchronizationRequestHandler
- added handling of transitioning and other states in RetailSynchronizationRequestHandler
- RetrieveServerVersionStatus, StoreSynchronizationComponentProvider: formatting changes
- SyncStatusOnlineTransitionHandler: check for importentries sync back from CS-->SS before going online
- MobileServerEventHandler: updated sql and formatting changes, only set offline-error-flag when it needs to be changed
---
M src/org/openbravo/retail/storeserver/synchronization/RecomputeVersionModuleHandler.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/StoreSynchronizationComponentProvider.java
M src/org/openbravo/retail/storeserver/synchronization/SyncStatusOnlineTransitionHandler.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/MobileServerEventHandler.java
A src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestHandler.java
R src/org/openbravo/retail/storeserver/synchronization/RetailSynchronizationRequestAllowedHandler.java
---
|
|
|
|
Code reviewed and verified |
|
|
(0103217)
|
mtaal
|
2018-03-13 17:44
|
|
|