Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045808Retail ModulesWeb POSpublic2020-12-22 15:422021-02-01 06:24
cberner 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
RR20Q3.4RR20Q3.4 
jarmendariz
No
0045808: Extend state actions and hooks to allow usage and return of Global State
Currently, model actions and hooks in mobile.core only support state at the model level(not counting Global Actions), and return a part of the State, the one regarding the model.

This is a limitation for other tasks, as such, an extension should be made on those hooks to accept and return the modified state, completely, that means, if a Global State is provided, it should apply the same changes as before, but return the modified Global State, not just the part regarding the model.

This should be done in the scope of org.openbravo.mobile.core module.
In description.
Add a third parameter to actions and hooks that also includes the Global State(options), if this parameter is present where needed, state returned will be the global state with the modified parts, instead of only the model with the modified parts.
No tags attached.
blocks feature request 0045638 closed cberner Extend state actions and hooks to allow usage and return of Global State 
Issue History
2021-01-29 07:23marvintmTypefeature request => backport
2021-01-29 07:23marvintmTarget Version => RR20Q3.4
2021-01-29 08:39ranjith_qualiantech_comAssigned Tocberner => ranjith_qualiantech_com
2021-02-01 06:24hgbotResolutionopen => fixed
2021-02-01 06:24hgbotStatusscheduled => closed
2021-02-01 06:24hgbotFixed in Version => RR20Q3.4
2021-02-01 06:24hgbotNote Added: 0125900

Notes
(0125900)
hgbot   
2021-02-01 06:24   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c4a7a7c3fd5e65e8060c7f633b99004c53e33fcb
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-02-01T10:54:42+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c4a7a7c3fd5e65e8060c7f633b99004c53e33fcb [^]

Fixed ISSUE-45808: Extends StateAPI to support model actions that returns the global state instead of only the model

---
M web-test/base/state-utils.js
M web-test/model/application-state/State.test.js
M web-test/model/application-state/StatePersistence.functional.test.js
M web/org.openbravo.mobile.core/app/model/application-state/State.js
M web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js
---