Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035768Retail ModulesStoreServerpublic2017-04-12 12:262017-05-22 13:07
AugustoMauch 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR17Q3 
AugustoMauch
No
0035768: Review calls to MobileServerController.getThisServerDefinition
The MobileServerController.getThisServerDefinition executes a query to get the updated mobile server definition of the current server. There are many callers of this method that don't need an updated version, that only need to know if it is null, or the value of some properties that do not change.

For instance, [1] only checks the mobile server client, [2] only checks if it is null, [3] only checks the mobile server id and its server type, etc.

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/c0b32b2cd2e2/src/org/openbravo/mobile/core/listener/StatusBackgroundProcessScheduler.java#l44 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/c0b32b2cd2e2/src/org/openbravo/mobile/core/servercontroller/MobileServerController.java#l116 [^]
[3] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/c0b32b2cd2e2/src/org/openbravo/mobile/core/servercontroller/MobileServerController.java#l73 [^]
-
Store a cached object of the mobile server definition. Create a method that returns this cached server, that should be called by those caller that don't need to have access to the mobile server fields that change (i.e. status)
No tags attached.
related to defect 0035754 closed AugustoMauch MobileServerController.getThisServerDefinition creates contention 
Issue History
2017-04-12 12:26AugustoMauchNew Issue
2017-04-12 12:26AugustoMauchAssigned To => StoreServer
2017-04-12 12:26AugustoMauchTriggers an Emergency Pack => No
2017-04-12 12:26AugustoMauchRelationship addedrelated to 0035754
2017-05-01 17:19mtaalAssigned ToStoreServer => mtaal
2017-05-06 09:13hgbotCheckin
2017-05-06 09:13hgbotNote Added: 0096434
2017-05-06 09:13hgbotStatusnew => resolved
2017-05-06 09:13hgbotResolutionopen => fixed
2017-05-06 09:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4a7e85b6e9991bf50a6e5a7046642dc737312fd3 [^]
2017-05-07 21:30mtaalReview Assigned To => AugustoMauch
2017-05-22 13:06hgbotCheckin
2017-05-22 13:06hgbotNote Added: 0096709
2017-05-22 13:07AugustoMauchNote Added: 0096710
2017-05-22 13:07AugustoMauchStatusresolved => closed
2017-05-22 13:07AugustoMauchFixed in Version => RR17Q3

Notes
(0096434)
hgbot   
2017-05-06 09:13   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 4a7e85b6e9991bf50a6e5a7046642dc737312fd3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sat May 06 09:11:33 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4a7e85b6e9991bf50a6e5a7046642dc737312fd3 [^]

Fixes issue 35768: Review calls to MobileServerController.getThisServerDefinition
Added some convenience methods to the MobileServereController: getMobileServerKey, getServerClientId and made use of these methods in various
 locations in the code.

---
M src/org/openbravo/mobile/core/listener/StatusBackgroundProcessScheduler.java
M src/org/openbravo/mobile/core/servercontroller/ForceTransitionToOnline.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerJSONProcess.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerStatusInformation.java
M src/org/openbravo/mobile/core/servercontroller/RetrieveMobileServerStatus.java
---
(0096709)
hgbot   
2017-05-22 13:06   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2115e49f67fd955857fa129b57aac38343ccbc0f
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon May 22 13:06:25 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2115e49f67fd955857fa129b57aac38343ccbc0f [^]

Related with issue 35768: Fixes Java format

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
---
(0096710)
AugustoMauch   
2017-05-22 13:07   
Code reviewed and verified