Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035587Retail ModulesStoreServerpublic2017-03-21 17:412017-03-29 13:16
kchoperena 
AugustoMauch 
highmajoralways
closedfixed 
5
 
RR17Q2 
mtaal
No
0035587: [STORE SERVER 2653] When a business partner is added to a store, synchronize it as soon as possible
When a business partner is added to a store, (either the store is set as the default store of the business partner or the secondary store), some records related with that business partner (i.e. its contact and location) are updated so that SymmetricDS captures the changes and sends those records to the new store.

The moment those changes are routed and pushed depend currently on when the scheduled Route and Push jobs are invoked. This can be improved, and we can force the invocation of the Route and Push jobs whenever a business partner is added to a store.
N/A
Add priority control in BusinessPartnerPerStoreEventHandler class
No tags attached.
Issue History
2017-03-21 17:41kchoperenaNew Issue
2017-03-21 17:41kchoperenaAssigned To => AugustoMauch
2017-03-21 17:41kchoperenaResolution time => 1491256800
2017-03-21 17:41kchoperenaTriggers an Emergency Pack => No
2017-03-22 13:01AugustoMauchSummary[STORE SERVER 2653] Force business partners synchronization from Central server to Store server => [STORE SERVER 2653] When a business partner is added to a store, synchronize it as soon as possible
2017-03-22 13:01AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=14862#r14862
2017-03-22 18:24AugustoMauchReview Assigned To => mtaal
2017-03-22 18:24hgbotCheckin
2017-03-22 18:24hgbotNote Added: 0095513
2017-03-22 18:24hgbotCheckin
2017-03-22 18:24hgbotNote Added: 0095514
2017-03-22 18:24hgbotStatusnew => resolved
2017-03-22 18:24hgbotResolutionopen => fixed
2017-03-22 18:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b40ab9e033f751322a908c7da51603f1bcf876cf [^]
2017-03-29 13:16mtaalNote Added: 0095641
2017-03-29 13:16mtaalStatusresolved => closed
2017-03-29 13:16mtaalFixed in Version => RR17Q2

Notes
(0095513)
hgbot   
2017-03-22 18:24   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 1309bf3435638b329e472076e88ef8cb5bf971be
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 22 18:17:22 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/1309bf3435638b329e472076e88ef8cb5bf971be [^]

Related with issue 35587: Extract class RouteAndPushStarterRunnable

The class RouteAndPushStarterRunnable has been extracted from MultiServerJSONSymmetricDSStarter so that other classes can use it.

---
M src/org/openbravo/retail/storeserver/synchronization/MultiServerJSONSymmetricDSStarter.java
A src/org/openbravo/retail/storeserver/synchronization/RouteAndPushStarterRunnable.java
---
(0095514)
hgbot   
2017-03-22 18:24   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: b40ab9e033f751322a908c7da51603f1bcf876cf
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 22 18:22:11 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b40ab9e033f751322a908c7da51603f1bcf876cf [^]

Fixes issue 35587: Some event handler now route and push data on completion

The BusinessPartnerEventHandlerForStandardCustomerFlag and BusinessPartnerPerStoreEventHandler eventhandlers now force the execution of the route and push jobs then their transaction is completed. To do that, a new abstract eventhandler has been created, named AutoRouteAndPushGenericEventHandler. The event handlers that extend it can define the mobile server key of the server that be sent the data in the push run being started.

---
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/BusinessPartnerEventHandlerForStandardCustomerFlag.java
M src/org/openbravo/retail/storeserver/synchronization/eventhandler/BusinessPartnerPerStoreEventHandler.java
A src/org/openbravo/retail/storeserver/synchronization/eventhandler/AutoRouteAndPushGenericEventHandler.java
---
(0095641)
mtaal   
2017-03-29 13:16   
Reviewed and tested