Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||||||||||||||||||
| View Issue Details | |||||||||||||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||||||||||
| 0046479 | Retail Modules | Web POS | public | 2021-05-04 10:44 | 2021-05-04 17:07 | ||||||||||||||||||||||||||||||||
| Reporter | caristu | ||||||||||||||||||||||||||||||||||||
| Assigned To | caristu | ||||||||||||||||||||||||||||||||||||
| Priority | immediate | Severity | critical | Reproducibility | have not tried | ||||||||||||||||||||||||||||||||
| Status | closed | Resolution | fixed | ||||||||||||||||||||||||||||||||||
| Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||||||||||
| Product Version | |||||||||||||||||||||||||||||||||||||
| Target Version | Fixed in Version | RR21Q3 | |||||||||||||||||||||||||||||||||||
| Merge Request Status | approved | ||||||||||||||||||||||||||||||||||||
| Review Assigned To | |||||||||||||||||||||||||||||||||||||
| OBNetwork customer | No | ||||||||||||||||||||||||||||||||||||
| Support ticket | |||||||||||||||||||||||||||||||||||||
| Regression level | |||||||||||||||||||||||||||||||||||||
| Regression date | |||||||||||||||||||||||||||||||||||||
| Regression introduced in release | |||||||||||||||||||||||||||||||||||||
| Regression introduced by commit | |||||||||||||||||||||||||||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||||||||||
| Summary | 0046479: action preparation order is modified when the action fails | ||||||||||||||||||||||||||||||||||||
| Description | When an action fails, the action preparation rollback mechanism is executed[1]. This mechanism executes all the rollback functions of each action preparation in reverse order. In order to retrieve the reversed order of rollback functions we are using the reverse function[2]. Note that reverse function mutates the original array[3]. In practice, this means that if an action fails, the next time it is executed the action preparations are executed in reversed order. [1] http://wiki.openbravo.com/wiki/StateController#Action_Preparations [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/State.js#L60 [^] [3] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse [^] | ||||||||||||||||||||||||||||||||||||
| Steps To Reproduce | 1) Put mobile.core in this branch: 2) Execute the State.test.js which contains a reproducer for the situation described in Description 3) Note that the test fails | ||||||||||||||||||||||||||||||||||||
| Proposed Solution | |||||||||||||||||||||||||||||||||||||
| Additional Information | |||||||||||||||||||||||||||||||||||||
| Tags | No tags attached. | ||||||||||||||||||||||||||||||||||||
| Relationships |
| ||||||||||||||||||||||||||||||||||||
| Attached Files | |||||||||||||||||||||||||||||||||||||
| Issue History | |||||||||||||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:44 | caristu | New Issue | |||||||||||||||||||||||||||||||||||
| 2021-05-04 10:44 | caristu | Assigned To | => Retail | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:44 | caristu | OBNetwork customer | => No | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:44 | caristu | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:46 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22436#r22436 | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:50 | caristu | Description Updated | bug_revision_view_page.php?rev_id=22438#r22438 | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:50 | hgbot | Merge Request Status | => open | ||||||||||||||||||||||||||||||||||
| 2021-05-04 10:50 | hgbot | Note Added: 0127765 | |||||||||||||||||||||||||||||||||||
| 2021-05-04 11:23 | caristu | Priority | urgent => immediate | ||||||||||||||||||||||||||||||||||
| 2021-05-04 11:23 | caristu | Severity | major => critical | ||||||||||||||||||||||||||||||||||
| 2021-05-04 15:40 | hgbot | Merge Request Status | open => approved | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:06 | marvintm | Status | new => scheduled | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:06 | marvintm | Assigned To | Retail => caristu | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:07 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:07 | hgbot | Status | scheduled => closed | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:07 | hgbot | Fixed in Version | => RR21Q3 | ||||||||||||||||||||||||||||||||||
| 2021-05-04 17:07 | hgbot | Note Added: 0127776 | |||||||||||||||||||||||||||||||||||
| 2021-05-04 17:07 | hgbot | Note Added: 0127777 | |||||||||||||||||||||||||||||||||||
| 2021-05-05 09:33 | guilleaer | Relationship added | related to 0046505 | ||||||||||||||||||||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||