Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027362 | Retail Modules | Web POS | public | 2014-08-18 18:43 | 2014-09-17 01:50 |
|
Reporter | Orekaria | |
Assigned To | Orekaria | |
Priority | normal | Severity | major | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR14Q4 | Fixed in Version | RR14Q4 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0027362: Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production |
Description | Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production. |
Steps To Reproduce | There are some checks in the core/WebPOS that are intented to raise errors only while development
e.g: Verify that in the ob-terminal-model.js file this lines are intended to help only while developing:
renderTerminalMain: function () {
if (this.renderMain) {
this.loadTerminalInfo();
} else {
OB.error('There is no renderMain method in Terminal Model');
}
}, |
Proposed Solution | A new class has been added: OB.UTIL.Debug
To use it, call the OB.UTIL.Debug.execute with the callback that must be called and with the optional 'this' parameter
The code will only be executed is a module is in development or the application is running in an openbravo test job
An example of use has been added to ob-terminal-model.js; renderTerminalMain method
Documentation from the ob-debug.js file
/**
* This class activates when StaticResourceComponentJava add the 'isDebug' variable to the javascript generated file
*
* If a module is in development or the application is running the tests, add the 'isDebug' variable will be set to true
*
* This option is intended to run additional code (checks, etc) that will not be run while in production
*
* This improves performance at the same time that the developer have a tool to improve stability.
*/
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0027187 | RR14Q4 | closed | Orekaria | The flow to manage data from other sources than the server or the local database, should not raise an exception | blocks | feature request | 0027329 | | new | Retail | Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) | blocks | defect | 0027365 | RR14Q4 | closed | Orekaria | Stabilization: The ob-i18n.js file contains unuseful code | blocks | feature request | 0027400 | RR14Q4 | closed | Orekaria | Stabilization: Overhaul Version management | blocks | feature request | 0027430 | | new | Retail | Stabilization: Add debug logic to test the different online and caching states |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2014-08-18 18:43 | Orekaria | New Issue | |
2014-08-18 18:43 | Orekaria | Assigned To | => marvintm |
2014-08-18 18:43 | Orekaria | Triggers an Emergency Pack | => No |
2014-08-18 18:43 | Orekaria | Relationship added | blocks 0027329 |
2014-08-18 18:50 | hgbot | Checkin | |
2014-08-18 18:50 | hgbot | Note Added: 0069468 | |
2014-08-18 18:50 | hgbot | Status | new => resolved |
2014-08-18 18:50 | hgbot | Resolution | open => fixed |
2014-08-18 18:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/8b3dea147b15605b4a4e9d2cf4faa8f781686414 [^] |
2014-08-18 18:53 | Orekaria | Status | resolved => new |
2014-08-18 18:53 | Orekaria | Resolution | fixed => open |
2014-08-18 18:55 | Orekaria | Description Updated | bug_revision_view_page.php?rev_id=6334#r6334 |
2014-08-18 18:55 | Orekaria | Proposed Solution updated | |
2014-08-18 18:57 | Orekaria | Proposed Solution updated | |
2014-08-18 19:07 | hgbot | Checkin | |
2014-08-18 19:07 | hgbot | Note Added: 0069469 | |
2014-08-18 19:07 | hgbot | Status | new => resolved |
2014-08-18 19:07 | hgbot | Resolution | open => fixed |
2014-08-18 19:07 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/8b3dea147b15605b4a4e9d2cf4faa8f781686414 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8f6c95fce41e85ae8b912a4a40d7961a156ecfbf [^] |
2014-08-18 20:15 | hgbot | Checkin | |
2014-08-18 20:15 | hgbot | Note Added: 0069470 | |
2014-08-18 20:25 | Orekaria | Status | resolved => new |
2014-08-18 20:25 | Orekaria | Resolution | fixed => open |
2014-08-18 20:25 | Orekaria | Assigned To | marvintm => Orekaria |
2014-08-18 20:26 | Orekaria | Note Deleted: 0069469 | |
2014-08-18 20:26 | Orekaria | Note Deleted: 0069470 | |
2014-08-18 20:26 | hgbot | Checkin | |
2014-08-18 20:26 | hgbot | Note Added: 0069471 | |
2014-08-18 20:26 | hgbot | Status | new => resolved |
2014-08-18 20:26 | hgbot | Resolution | open => fixed |
2014-08-18 20:26 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8f6c95fce41e85ae8b912a4a40d7961a156ecfbf [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a8c5e5baca930cce04a7d7c388fc58dfca4dad26 [^] |
2014-08-18 20:33 | hgbot | Checkin | |
2014-08-18 20:33 | hgbot | Note Added: 0069472 | |
2014-08-18 21:25 | Orekaria | Relationship added | blocks 0027365 |
2014-08-19 19:44 | hudsonbot | Checkin | |
2014-08-19 19:44 | hudsonbot | Note Added: 0069523 | |
2014-08-21 12:38 | Orekaria | Status | resolved => new |
2014-08-21 12:38 | Orekaria | Resolution | fixed => open |
2014-08-21 12:39 | Orekaria | Status | new => scheduled |
2014-08-21 12:39 | Orekaria | fix_in_branch | => pi |
2014-08-21 12:46 | hgbot | Checkin | |
2014-08-21 12:46 | hgbot | Note Added: 0069570 | |
2014-08-21 12:46 | hgbot | Checkin | |
2014-08-21 12:46 | hgbot | Note Added: 0069571 | |
2014-08-21 21:06 | Orekaria | Relationship added | blocks 0027400 |
2014-08-21 21:33 | hgbot | Checkin | |
2014-08-21 21:33 | hgbot | Note Added: 0069581 | |
2014-08-24 18:27 | Orekaria | Relationship added | related to 0027187 |
2014-08-24 18:31 | hgbot | Checkin | |
2014-08-24 18:31 | hgbot | Note Added: 0069681 | |
2014-08-25 13:11 | Orekaria | Status | scheduled => acknowledged |
2014-08-25 13:13 | Orekaria | Status | acknowledged => scheduled |
2014-08-25 13:15 | Orekaria | Status | scheduled => acknowledged |
2014-08-26 11:51 | hgbot | Checkin | |
2014-08-26 11:51 | hgbot | Note Added: 0069748 | |
2014-09-02 20:18 | hgbot | Checkin | |
2014-09-02 20:18 | hgbot | Note Added: 0069922 | |
2014-09-02 22:15 | Orekaria | Status | acknowledged => scheduled |
2014-09-02 22:15 | Orekaria | Status | scheduled => resolved |
2014-09-02 22:15 | Orekaria | Fixed in Version | => RR14Q4 |
2014-09-02 22:15 | Orekaria | Resolution | open => fixed |
2014-09-03 04:16 | hudsonbot | Checkin | |
2014-09-03 04:16 | hudsonbot | Note Added: 0069926 | |
2014-09-14 14:27 | Orekaria | Relationship added | blocks 0027430 |
2014-09-15 15:14 | marvintm | Review Assigned To | => marvintm |
2014-09-15 15:14 | marvintm | Status | resolved => closed |
2014-09-16 12:23 | hgbot | Checkin | |
2014-09-16 12:23 | hgbot | Note Added: 0070138 | |
2014-09-17 01:50 | hudsonbot | Checkin | |
2014-09-17 01:50 | hudsonbot | Note Added: 0070161 | |
Notes |
|
(0069468)
|
hgbot
|
2014-08-18 18:50
|
|
Repository: erp/devel/pi
Changeset: 8b3dea147b15605b4a4e9d2cf4faa8f781686414
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Aug 18 18:49:47 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8b3dea147b15605b4a4e9d2cf4faa8f781686414 [^]
Fixes issue 27362: The new variable 'isDebug' will be inserted at the beginning of the generated javascript file
- this variable will be inserted and set to true, if any module is in development or the application is running a test job
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StaticResourceComponent.java
---
|
|
|
(0069471)
|
hgbot
|
2014-08-18 20:26
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a8c5e5baca930cce04a7d7c388fc58dfca4dad26
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Aug 18 20:26:37 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a8c5e5baca930cce04a7d7c388fc58dfca4dad26 [^]
Fixes issue 27362: the class OB.UTIL.Debug has been added
This class is intended to help while developing apps and to improve performance
- to call this class, use OB.UTIL.Debug.execute with the callback to be executed
- the optional parameter 'this' will pass the calling object
- an example of use is provided in the change to ob-terminal-model.js
---
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
A web/org.openbravo.mobile.core/source/utils/ob-debug.js
---
|
|
|
(0069472)
|
hgbot
|
2014-08-18 20:33
|
|
|
|
|
|
|
(0069570)
|
hgbot
|
2014-08-21 12:46
|
|
|
|
(0069571)
|
hgbot
|
2014-08-21 12:46
|
|
|
|
(0069581)
|
hgbot
|
2014-08-21 21:33
|
|
|
|
(0069681)
|
hgbot
|
2014-08-24 18:31
|
|
|
|
(0069748)
|
hgbot
|
2014-08-26 11:51
|
|
|
|
(0069922)
|
hgbot
|
2014-09-02 20:18
|
|
Repository: erp/devel/pi
Changeset: f9f85e0ce62c98cef49cb5e1379cf3133828fc66
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 02 20:17:41 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f9f85e0ce62c98cef49cb5e1379cf3133828fc66 [^]
Related to issue 27362: If in development or the Openbravo.property's 'test.environment' property is true...
- the debug flag is set to true
- the generated javascript will not be compressed (to help debugging in test environments)
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StaticResourceComponent.java
---
|
|
|
|
|
|
(0070138)
|
hgbot
|
2014-09-16 12:23
|
|
|
|
|
|