Openbravo Issue Tracking System - POS2
View Issue Details
0057964POS2Corepublic2024-09-05 11:562025-02-13 10:16
AugustoMauch 
AugustoMauch 
normalcriticalhave not tried
closedfixed 
5
 
24Q4.1 
approved
No
No
0057964: Management of inconsistent application state should be properly addressed in core2 applications
From time to time, the application state gets inconsistent, apparently not reflecting the current state of the application but a previous one.

We looking for those inconsistencies on a case-to-case basis, and introducing mitigation measures on a case-to-case basis as well.

This mechanism should be improved, so that if any inconsistency is found, all the application state modules should be re-initialized properly.
-
No tags attached.
blocks feature request 0056377 closed AugustoMauch Management of inconsistent application state should be properly addressed in core2 applications 
Issue History
2025-02-12 23:25AugustoMauchTypefeature request => backport
2025-02-12 23:25AugustoMauchTarget Version => 24Q4.1
2025-02-12 23:56hgbotNote Added: 0175558
2025-02-12 23:58hgbotNote Added: 0175559
2025-02-13 00:00hgbotNote Added: 0175560
2025-02-13 00:00hgbotNote Added: 0175561
2025-02-13 10:16hgbotResolutionopen => fixed
2025-02-13 10:16hgbotStatusscheduled => closed
2025-02-13 10:16hgbotFixed in Version => 24Q4.1
2025-02-13 10:16hgbotNote Added: 0175579
2025-02-13 10:16hgbotNote Added: 0175580
2025-02-13 10:16hgbotNote Added: 0175581
2025-02-13 10:16hgbotFixed in Version24Q4.1 => RR24Q4.1
2025-02-13 10:16hgbotNote Added: 0175582
2025-02-13 10:16hgbotFixed in Version24Q4.1 => RR24Q4.1
2025-02-13 10:16hgbotNote Added: 0175583
2025-02-13 10:16hgbotNote Added: 0175584
2025-02-13 10:16hgbotNote Added: 0175585
2025-02-13 10:16hgbotNote Added: 0175586

Notes
(0175558)
hgbot   
2025-02-12 23:56   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1765 [^]
(0175559)
hgbot   
2025-02-12 23:58   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/830 [^]
(0175560)
hgbot   
2025-02-13 00:00   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1916 [^]
(0175561)
hgbot   
2025-02-13 00:00   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3496 [^]
(0175579)
hgbot   
2025-02-13 10:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 080742ca28ab3729f3b990b2c9ff558cdfe2d9d3
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 13-02-2025 10:11:21
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/080742ca28ab3729f3b990b2c9ff558cdfe2d9d3 [^]

Fixes ISSUE-57964: Global state mitigation - 24Q4

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.core2/src/authentication/loginInitActions.js
---
(0175580)
hgbot   
2025-02-13 10:16   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1765 [^]
(0175581)
hgbot   
2025-02-13 10:16   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1916 [^]
(0175582)
hgbot   
2025-02-13 10:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4caee9f6865650d702a3ec251c100285e6ff136d
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 12-02-2025 23:59:29
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4caee9f6865650d702a3ec251c100285e6ff136d [^]

Fixes ISSUE-57964: Global state mitigation - retail.posterminal

---
A src/org/openbravo/retail/posterminal/statechecker/CashupStateChecker.java
A src/org/openbravo/retail/posterminal/statechecker/TicketStateChecker.java
---
(0175583)
hgbot   
2025-02-13 10:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 711cdd232a8855f36597b5b8ba1b4fb0fd9beb54
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 12-02-2025 23:57:42
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/711cdd232a8855f36597b5b8ba1b4fb0fd9beb54 [^]

Fixes ISSUE-57964: Global state mitigation - mobile.core

---
A src/org/openbravo/mobile/core/process/ApplicationStateCheck.java
A src/org/openbravo/mobile/core/process/ApplicationStateChecker.java
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js
---
(0175584)
hgbot   
2025-02-13 10:16   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/830 [^]
(0175585)
hgbot   
2025-02-13 10:16   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 492b335d3dfd99da79f1e52859e802afc966a71b
Author: André Montenegro <a.montenegro@orisha.com>
Date: 13-02-2025 10:15:26
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/492b335d3dfd99da79f1e52859e802afc966a71b [^]

Related to ISSUE-57964: created intercept in logInProcess to avoid backOffice checks for ticket and cashup ID

The state persistence check cannot be done when running CI, because in the cypress tests there is a
mechanism that reuses previous states in order to skip having to login very often

---
M web-jspack/org.openbravo.pos2/src-test/cypress/support/logIn.js
---
(0175586)
hgbot   
2025-02-13 10:16   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3496 [^]