Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048847 | Retail Modules | Web POS | public | 2022-03-21 10:40 | 2022-06-22 16:57 |
|
Reporter | aferraz | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR22Q3 | |
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 | 0048847: JIRA 2948: SynchronizationBuffer loads messages in a random order |
Description | When adding more than one message into Messages state model inside the same state action, sometimes the import entry for the second added message is created before the import entry of the first added message.
The problem seems to be that the "time" property of the messages is being considered to sort them, and the time of the OBPOS_Order message is the same one as the time of the messages generated on the backend (see attached screenshot), and as a consequence their order will not be deterministic. |
Steps To Reproduce | Add following postHook to completeTicket action:
OB.App.StateAPI.Global.completeTicket.addPostHook(globalState => ({
...globalState,
Messages: [
...globalState.Messages,
OB.App.State.Messages.Utils.createNewMessage(
'MyModel',
'MyModelEndpoint',
{}
)
]
}));
Add log into findAll function in MessageModelController.js and check sometimes OBPOS_Order message is retrieved first (the one added inside the state action) and other times MyModel message is retrieved first (the one added inside the post hook).
The same happens in ImportEntryBuilder.createImportEntry. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0048865 | | closed | Retail | POS2 | Proof of Payment are not always created through Split Payment functionality |
|
Attached Files | MessageOrder.png (182,485) 2022-06-04 11:03 https://issues.openbravo.com/file_download.php?file_id=17118&type=bug

|
|
Issue History |
Date Modified | Username | Field | Change |
2022-03-21 10:40 | aferraz | New Issue | |
2022-03-21 10:40 | aferraz | Assigned To | => Triage Platform Base |
2022-03-21 10:40 | aferraz | OBNetwork customer | => No |
2022-03-21 10:40 | aferraz | Triggers an Emergency Pack | => No |
2022-03-21 10:48 | aferraz | Description Updated | bug_revision_view_page.php?rev_id=23787#r23787 |
2022-03-21 10:49 | aferraz | Summary | SynchronizationBuffer synchronizes messages in a random order => SynchronizationBuffer loads messages in a random order |
2022-03-21 10:54 | aferraz | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=23789#r23789 |
2022-03-23 08:05 | andre_montenegro | Relationship added | related to 0048865 |
2022-05-26 13:23 | guilleaer | Summary | SynchronizationBuffer loads messages in a random order => JIRA 2948: SynchronizationBuffer loads messages in a random order |
2022-05-26 13:23 | guilleaer | Assigned To | Triage Platform Base => jarmendariz |
2022-05-26 13:23 | guilleaer | Status | new => acknowledged |
2022-06-04 11:03 | AugustoMauch | File Added: MessageOrder.png | |
2022-06-04 11:05 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=24230#r24230 |
2022-06-04 12:19 | hgbot | Merge Request Status | => open |
2022-06-04 12:19 | hgbot | Note Added: 0138036 | |
2022-06-04 12:21 | AugustoMauch | Assigned To | jarmendariz => AugustoMauch |
2022-06-04 12:21 | AugustoMauch | Status | acknowledged => scheduled |
2022-06-04 20:47 | hgbot | Note Added: 0138039 | |
2022-06-10 11:08 | hgbot | Merge Request Status | open => approved |
2022-06-10 11:13 | hgbot | Note Added: 0138247 | |
2022-06-10 11:14 | hgbot | Resolution | open => fixed |
2022-06-10 11:14 | hgbot | Status | scheduled => closed |
2022-06-10 11:14 | hgbot | Fixed in Version | => RR22Q3 |
2022-06-10 11:14 | hgbot | Note Added: 0138248 | |
2022-06-13 10:55 | hgbot | Note Added: 0138297 | |
2022-06-13 17:01 | hgbot | Note Added: 0138317 | |
2022-06-22 16:57 | hgbot | Note Added: 0138639 | |
Notes |
|
(0138036)
|
hgbot
|
2022-06-04 12:19
|
|
|
|
(0138039)
|
hgbot
|
2022-06-04 20:47
|
|
|
|
(0138247)
|
hgbot
|
2022-06-10 11:13
|
|
|
|
(0138248)
|
hgbot
|
2022-06-10 11:14
|
|
|
|
(0138297)
|
hgbot
|
2022-06-13 10:55
|
|
|
|
(0138317)
|
hgbot
|
2022-06-13 17:01
|
|
|
|
(0138639)
|
hgbot
|
2022-06-22 16:57
|
|
|