Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051467Retail ModulesWeb POSpublic2023-01-26 15:062023-02-26 21:47
AugustoMauch 
gdagnesses 
normalmajorhave not tried
scheduledopen 
5
 
 
No
0051467: We should prevent the concurrent execution of state actions
State actions are that actions that when executed, they update the state of the application. We never want to allow state actions to be executed in parallel, because the resulting state would not be deterministic and would depend on race conditions.

This [1] is the file in charge of managing state actions and this [2] is the action invoked when a state action is executed. When executing that function, we should first check if another state action is currently being executed and if so, cancel the incoming state action and write an error message in the log.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js [^]
[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js#L37 [^]
-
No tags attached.
Issue History
2023-01-26 15:06AugustoMauchNew Issue
2023-01-26 15:06AugustoMauchAssigned To => gdagnesses
2023-01-26 15:06AugustoMauchTriggers an Emergency Pack => No
2023-01-26 15:07AugustoMauchStatusnew => scheduled
2023-01-30 15:43hgbotNote Added: 0146037
2023-02-01 16:13hgbotNote Added: 0146132
2023-02-01 16:32hgbotNote Added: 0146135
2023-02-26 21:47hgbotNote Added: 0147000

Notes
(0146037)
hgbot   
2023-01-30 15:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/464 [^]
(0146132)
hgbot   
2023-02-01 16:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/973 [^]
(0146135)
hgbot   
2023-02-01 16:32   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/973 [^]
(0147000)
hgbot   
2023-02-26 21:47   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/464 [^]