Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046490Retail ModulesWeb POSpublic2021-05-04 10:442021-05-05 08:02
immediatecriticalhave not tried
0046490: action preparation order is modified when the action fails
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] [^]
[2] [^]
[3] [^]
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
No tags attached.
blocks defect 0046479 closed caristu action preparation order is modified when the action fails 
Issue History
2021-05-04 17:06marvintmTypedefect => backport
2021-05-04 17:06marvintmTarget Version => RR21Q1.2
2021-05-04 18:36ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-05-05 07:43hgbotNote Added: 0127795
2021-05-05 08:02hgbotNote Added: 0127805
2021-05-05 08:02hgbotResolutionopen => fixed
2021-05-05 08:02hgbotStatusscheduled => closed
2021-05-05 08:02hgbotFixed in Version => RR21Q1.2
2021-05-05 08:02hgbotNote Added: 0127806

2021-05-05 07:43   
Merge Request created: [^]
2021-05-05 08:02   
Merge request merged: [^]
2021-05-05 08:02   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 9f1eabc807e239e7a8e600d1d59dc9e53dc10fa7
Author: Ranjith S R <>
Date: 2021-05-04T22:27:21+05:30
URL: [^]

Fixed ISSUE-46490: Action preparation order is modified when the action fails

M web-test/model/application-state/State.test.js
M web/