Project

General

Profile

Development #7115

Updated by Kyle Chong 3 months ago

Refer to: docs/planning/modules/M02_Product_Data_Sync.md 

 Implement the initial master-data setup required when installing Product & Master Data Sync (M02) (docs/planning/modules/M02_Product_Data_Sync.md). Test: prepare snapshot at version N, make QubeBiz changes N+1 onward, install at a new Cashier POS. 

 A newly installed Cashier cannot depend store, then apply deltas. Also test invalid signature, incompatible schema and interrupted install. Done when only on new Kafka/LAN events because it does not yet contain the existing master data. 

 Scope: 

 * Obtain the current master-data snapshot from Backend. 
 * Install/import the snapshot into the Cashier local database. 
 * Validate snapshot integrity before activation. 
 * Establish the appropriate sync version/checkpoint. 
 * Start incremental/delta synchronization after bootstrap. 
 * Ensure changes occurring around the snapshot/bootstrap period are not lost. 
 * Support restart/recovery if bootstrap is interrupted. 
 * Avoid requiring a complete reinstallation when synchronization fails. 

 Expected flow: 

 New Cashier → Master Data Snapshot → Local DB → Establish Checkpoint → Start Delta Sync 

 Done when: A clean Cashier installation verified, fully caught-up store can obtain current master data and continue receiving subsequent incremental changes without data gaps. trade.

Back