PolymerLabs / arcs

Arcs
BSD 3-Clause "New" or "Revised" License
56 stars 35 forks source link

Reorganise how an Operation proxy message or a ModelUpdate proxy message is handled by the reference mode store. Specifically, upon receiving one of these proxy messages, update the backing store _before_ creating the BridgingOps or BridgingData. This means that when `itemVersionGetter` is invoked, it will not need to call `updateBackingStore` as it would have already been updated. This ensures that the initial version number for entities stored in the backing store will be 1 instead of 2. #7049

Closed copybara-service[bot] closed 3 years ago

copybara-service[bot] commented 3 years ago

Reorganise how an Operation proxy message or a ModelUpdate proxy message is handled by the reference mode store. Specifically, upon receiving one of these proxy messages, update the backing store before creating the BridgingOps or BridgingData. This means that when itemVersionGetter is invoked, it will not need to call updateBackingStore as it would have already been updated. This ensures that the initial version number for entities stored in the backing store will be 1 instead of 2.