Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027329Retail ModulesWeb POSpublic2014-08-13 19:482016-11-10 18:16
Orekaria 
Retail 
highmajorN/A
newopen 
5
 
 
No
0027329: Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded)
The loading process is vital to get a stable app
Making it easier to debug and easier to know where to add that new code helps stabilization and lowers the risk of new issues
In addition in can be more easily profiled and can provide performance improvements
Insert a console.debug in the initialization of every object (including backbone and enyo objects)
Open a new browser tab
Open the console
Insert the WebPOS url
Login
Wait until the WebPOS has loaded

- Verify that generic initializations, backbone initializations, enyo initializations, events processing and asynchronous calls are more mixed than desirable
- Verify that the application is started to load before the javascript file has been processed
- Verify that, sometimes, there are errors and its hard to see what caused them

Insert a random fail in an asynchronous response
- Verify that there is code depending on the successful result of that asynchronous call, that is still trying to be executed

Tests
- Verify that there are login errors
- Verify that tomcat and javascript errors populate the logs

No tags attached.
depends on defect 0027328RR14Q4 closed Orekaria Retail Modules Stabilization: The OfflinePrinter model can follow the same initialization as the other models 
depends on defect 0027332RR14Q4 closed Orekaria Retail Modules [API Deprecation] OB.UTILS is no longer a valid namespace and OB.UTIL is missing 2 files 
depends on defect 0027341RR14Q4 closed Orekaria Retail Modules Stabilization: org.openbravo.retail.discounts should depend on org.openbravo.mobile.core 
depends on defect 0027342RR14Q4 closed Orekaria Retail Modules Stabilization: Unuseful code in ob-terminal-model.js - setUserModelOnline 
depends on defect 0027343RR14Q4 closed Orekaria Retail Modules Stabilization: Do not initialize backbone objects in the defaults declaration 
depends on defect 0027345RR14Q4 closed Orekaria Retail Modules Stabilization: backbone models should not be instanciated in the variables definition 
depends on defect 0027348RR14Q4 closed Orekaria Retail Modules Stabilization: Refactor the MobileCoreComponentProvider for better readability and more atomic commits 
depends on defect 0027350RR14Q4 closed Orekaria Retail Modules Stabilization: Checking if the HookManager is available is not necessary 
depends on defect 0027349RR14Q4 closed Orekaria Retail Modules [API Deprecation] The HookManager does not have to depend on the OB.MobileApp.model object 
depends on defect 0027351RR14Q4 closed Orekaria Retail Modules Stabilization: The globalResources in the Component Providers are being created hundreds of times and the code is thread unsafe 
depends on defect 0027352RR14Q4 closed Orekaria Retail Modules Stabilization: The main.js file is containing code that should be in the login-model.js file 
depends on defect 0027353RR14Q4 closed Orekaria Retail Modules Stabilization: The route in the initialization of the terminal model is no longer needed 
depends on defect 0027354RR14Q4 closed Orekaria Retail Modules Stabilization: The 'initializedCommonComponents' event is being attached after the 'initializeCommonComponents' is executed 
depends on defect 0026589 closed Orekaria Retail Modules Stabilization: When the backend generates a new uuid.js, chrome does not update/delete the Web SQL database 
depends on feature request 0027362RR14Q4 closed Orekaria Retail Modules Stabilization, performance, developer tools: it would be nice to add checks, etc while not in production 
depends on defect 0027366RR14Q4 closed Orekaria Retail Modules Stabilization: OB.POS.terminal is being called instead of OB.MobileApp.view 
depends on defect 0027367RR14Q4 closed Orekaria Retail Modules Stabilization: OB.POS.terminal.terminal is used instead of OB.MobileApp.model 
depends on defect 0027371 closed Orekaria Retail Modules Stabilization: The WebPOS manifest does not have the correct data 
depends on defect 0027380 closed Orekaria Retail Modules Stabilization: After log in, sometimes, the server is returning a 401: non authorized code 
depends on defect 0027386RR14Q4 closed Orekaria Retail Modules Stabilization: Some models are making aync requests to the server before they are of any use 
depends on defect 0027389 new Retail Retail Modules Stabilization: Remove unused external javascript libraries 
depends on defect 0027399 closed mario_castello Retail Modules Stabilization: Raname the HookManager references in the LevelPricing and ScalableLevelPricing retail modules 
depends on feature request 0027400RR14Q4 closed Orekaria Retail Modules Stabilization: Overhaul Version management 
depends on defect 0027403 acknowledged Retail Retail Modules Stabilization: Discounts should not execute actions until the javascript generated file has been processed 
depends on defect 0027404 closed Orekaria Retail Modules Stabilization: Revisit global namespace references 
depends on defect 0026919 closed Orekaria Retail Modules Stabilization: SQLTransaction errors shown on login 
depends on defect 0027408RR14Q4 closed Orekaria Retail Modules Stabilization: The localDB database version should be set in a better place 
depends on defect 0027415RR15Q2 closed aaroncalero Retail Modules Stabilization: alert("") should never be used 
depends on feature request 0027417 closed Orekaria Retail Modules Stabilization: add a main.js file to any module in which centralize versions, deprecations, etc 
depends on design defect 0027426 closed Orekaria Retail Modules Stabilization: The Business layer should not contain Interface objects 
depends on design defect 0027427RR14Q4 closed Orekaria Retail Modules Stabilization: OB.DAL should not be an enyo component 
depends on design defect 0027428RR14Q4 closed Orekaria Retail Modules Stabilization: OB.Data.Registry should not be an enyo object 
depends on defect 0027429RR14Q4 closed Orekaria Retail Modules Stabilization: Revisit the aync timeouts 
depends on feature request 0027430 new Retail Retail Modules Stabilization: Add debug logic to test the different online and caching states 
depends on defect 0027446RR14Q4 closed Orekaria Retail Modules Stabilization: When the termInfo is invalid the page will not properly load 
depends on feature request 0027447RR14Q4 closed Orekaria Retail Modules Stabilization: Add a new method to clean the local storage and reload the web page 
depends on defect 0027448RR14Q4 closed Orekaria Retail Modules Stabilization: When the response is null an uncaught exception is thrown 
depends on defect 0027451RR14Q4 closed Orekaria Retail Modules Stabilization: When the database is locked an uncaught exception is shown 
depends on feature request 0026894RR14Q4 closed Orekaria Retail Modules Stabilization: Improve the synchronization management 
depends on defect 0027456 closed Orekaria Retail Modules Stabilization: In ob-terminal-model, the calls are overlapping 
depends on defect 0027464RR14Q4 closed Orekaria Retail Modules Stabilization: When the local database is corrupted, the loginUsingCache method will fail to find the current user 
depends on defect 0027465RR14Q4 closed Orekaria Retail Modules Stabilization: When 'setUserModelOnline' fails to save the current user info, the loading process fails 
depends on design defect 0027466RR14Q4 closed Orekaria Retail Modules Stabilization: The route (OBRoute) object should be use to redirect to the proper webpage 
depends on defect 0027506RR14Q4 closed Orekaria Retail Modules Stabilization: The 'pay' button should not be enabled if the order can't be payed 
depends on defect 0027287RR14Q4 closed Orekaria Retail Modules Stabilization: The 'pay' button should not be enabled by default on WebPOS load 
depends on defect 0027292RR14Q4 closed Orekaria Retail Modules Hide unexpected error message: Uncaught Application server is not available 
depends on defect 0027167RR14Q4 closed Orekaria Retail Modules When the javascript files contain an error, the WebPOS fails to load showing an uncaught error 
depends on defect 0027559RR14Q4 closed Orekaria Retail Modules Stabilization: 'saveLogClient' should not try to save if the local database is not ready 
depends on defect 0027554 closed Orekaria Retail Modules When switching from backend to WebPOS first an error is shown and then the login page is shown 
depends on feature request 0027569RR14Q4 closed Orekaria Retail Modules Stabilization: get better log output from ob-datasource.js 
depends on defect 0027555RR14Q4 closed mtaal Retail Modules With slow system generated js file is not there when already requested, wrong filename 
depends on defect 0027606RR15Q4 closed Orekaria Retail Modules Stabilization: When the terminal in use is changed, the locaStorage should be cleared 
depends on defect 0027646 closed Orekaria Retail Modules Stabilization: Revisit the use of OB.POS.modelterminal 
depends on design defect 0027672RR14Q4 closed Orekaria Retail Modules Stabilization: The SynchronizationHelper should be inside the OB.UTIL namespace 
depends on defect 0027661RR14Q4 closed mtaal Retail Modules Stabilization: Index.jsp is not expiring so updates do not show up in the browser without clearing the cache 
depends on design defect 0027682 closed Orekaria Retail Modules Stabilization: Setting 'loginUtilsParams' should be with the other model initializations 
depends on defect 0027676RR14Q4 closed mtaal Retail Modules Starting for the first time, visiting first webpos, error is shown in the console and the webpos UI won't load 
depends on defect 0028030RR14Q4 closed migueldejuana Retail Modules Stabilization: the 'ad_user' table model is defining a source that is unused and in a wrong namespace 
depends on defect 0027986RR14Q4 closed Orekaria Retail Modules Stabilization: Revisit log levels after the introduction of the Debug mode 
depends on feature request 0028159 new AugustoMauch Openbravo ERP Stabilization: smartbuild could delete the contents of the WebContent/js/gen directory 
depends on feature request 0028217 new Retail Retail Modules Stabilization: Create a basic API for the asynchronous calls 
depends on feature request 0029377RR15Q3 closed Orekaria Retail Modules Stabilization: RR15Q2 related 
depends on defect 0029396RR15Q3 closed Retail Retail Modules Stabilization: RR15Q3 related 
depends on defect 0028428RR15Q3 closed aaroncalero Retail Modules Improve master data loading of WebPOS 
related to defect 0027339RR14Q4 closed Orekaria Retail Modules Stabilization: When the server is not available and there is not enough cache data, the app should wait until available 
related to defect 0027365RR14Q4 closed Orekaria Retail Modules Stabilization: The ob-i18n.js file contains unuseful code 
blocks design defect 0027216 new marvintm Retail Modules Stabilization: Web POS should not login if the database is not consistent or a table is empty 
blocks design defect 0027228 new marvintm Retail Modules Stabilization: Web POS should validate that models have been imported properly to Web POS 
blocks defect 0027337 acknowledged Retail Retail Modules Stabilization: No tomcat errors while running the WebPOS 
blocks feature request 0027409RR14Q4 closed Orekaria Retail Modules Stabilization: Add more and better log to help developers and support 
blocks defect 0027413 new Retail Retail Modules Stabilization: It should never ever be necessary to clear cache. 
blocks feature request 0027171 new Retail Retail Modules Stabilization: Be able to gather and receive the exceptions raised in any WebPOS all over the world 
blocks defect 0027449RR14Q4 closed Orekaria Retail Modules Stabilization: When some errors are shown to the user, the loading picture is still there 
Not all the children of this issue are yet resolved or closed.
Issue History
2014-08-13 19:48OrekariaNew Issue
2014-08-13 19:48OrekariaAssigned To => Orekaria
2014-08-13 19:48OrekariaTriggers an Emergency Pack => No
2014-08-13 19:49OrekariaRelationship addeddepends on 0027328
2014-08-13 19:50OrekariaRelationship addedblocks 0027216
2014-08-13 19:50OrekariaRelationship addedblocks 0027228
2014-08-13 23:00OrekariaRelationship addeddepends on 0027332
2014-08-14 13:19OrekariaRelationship addedblocks 0027337
2014-08-14 18:06OrekariaRelationship addedrelated to 0027339
2014-08-14 19:21OrekariaRelationship addedrelated to 0027340
2014-08-14 23:06OrekariaRelationship addeddepends on 0027341
2014-08-15 01:46OrekariaRelationship addeddepends on 0027342
2014-08-15 11:30OrekariaRelationship addeddepends on 0027343
2014-08-15 22:51OrekariaRelationship addeddepends on 0027345
2014-08-16 12:04OrekariaRelationship addeddepends on 0027348
2014-08-16 12:10OrekariaSummaryStabilization: The loading process (since the url is open until the webpos has loaded) would please organization => Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded)
2014-08-16 12:10OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6292#r6292
2014-08-16 14:08OrekariaRelationship addeddepends on 0027350
2014-08-16 14:09OrekariaRelationship addeddepends on 0027349
2014-08-16 15:33OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6308#r6308
2014-08-16 15:35OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6309#r6309
2014-08-17 00:16OrekariaRelationship addeddepends on 0027351
2014-08-17 01:19OrekariaRelationship addeddepends on 0027352
2014-08-17 01:58OrekariaRelationship addeddepends on 0027353
2014-08-17 03:20OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6312#r6312
2014-08-17 03:22OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6313#r6313
2014-08-17 16:41OrekariaRelationship addeddepends on 0027354
2014-08-17 18:08OrekariaRelationship addeddepends on 0026589
2014-08-18 15:10OrekariaRelationship replacedblocks 0026589
2014-08-18 18:43OrekariaRelationship addeddepends on 0027362
2014-08-18 21:25OrekariaRelationship addedrelated to 0027365
2014-08-18 22:13OrekariaRelationship addeddepends on 0027366
2014-08-18 22:17OrekariaRelationship addeddepends on 0027367
2014-08-19 13:01OrekariaRelationship addeddepends on 0027371
2014-08-19 21:34OrekariaRelationship addeddepends on 0027380
2014-08-20 12:58OrekariaRelationship addeddepends on 0027386
2014-08-20 13:40OrekariaRelationship addeddepends on 0027389
2014-08-21 09:58OrekariaRelationship addeddepends on 0027399
2014-08-21 10:45OrekariaRelationship addeddepends on 0027400
2014-08-21 11:44OrekariaRelationship addeddepends on 0027403
2014-08-21 11:51OrekariaRelationship addeddepends on 0027404
2014-08-21 23:17OrekariaRelationship addeddepends on 0026919
2014-08-22 00:04OrekariaRelationship addeddepends on 0027408
2014-08-22 00:21OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6404#r6404
2014-08-22 00:25OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6405#r6405
2014-08-22 00:26OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6406#r6406
2014-08-22 02:46OrekariaRelationship addeddepends on 0027409
2014-08-22 09:17OrekariaRelationship addeddepends on 0027413
2014-08-22 09:27OrekariaRelationship addeddepends on 0027414
2014-08-22 09:47OrekariaRelationship replacedblocks 0027413
2014-08-22 09:49OrekariaRelationship replacedblocks 0027414
2014-08-22 09:51OrekariaRelationship replaceddepends on 0026589
2014-08-22 09:55OrekariaRelationship addeddepends on 0027171
2014-08-22 09:55OrekariaRelationship replacedblocks 0027171
2014-08-22 10:19OrekariaRelationship addeddepends on 0027415
2014-08-22 10:59OrekariaRelationship replacedblocks 0027409
2014-08-22 11:05OrekariaRelationship addeddepends on 0027417
2014-08-22 11:51OrekariaRelationship addeddepends on 0027419
2014-08-22 11:51OrekariaRelationship deleteddepends on 0027419
2014-08-22 22:42OrekariaRelationship addeddepends on 0027426
2014-08-22 22:54OrekariaRelationship addeddepends on 0027427
2014-08-22 22:57OrekariaRelationship addeddepends on 0027428
2014-08-23 01:47OrekariaRelationship addeddepends on 0027429
2014-08-23 01:49OrekariaRelationship addeddepends on 0027430
2014-08-23 12:40OrekariaRelationship addeddepends on 0027431
2014-08-23 15:25OrekariaRelationship deleteddepends on 0027431
2014-08-24 00:47OrekariaRelationship addeddepends on 0027446
2014-08-24 00:54OrekariaRelationship addeddepends on 0027447
2014-08-24 07:17OrekariaRelationship addeddepends on 0027448
2014-08-24 07:20OrekariaRelationship addedblocks 0027449
2014-08-24 07:56OrekariaRelationship addeddepends on 0027450
2014-08-24 08:00OrekariaRelationship addeddepends on 0027451
2014-08-24 17:40OrekariaRelationship addeddepends on 0026894
2014-08-24 23:23OrekariaRelationship addeddepends on 0027456
2014-08-26 01:50OrekariaRelationship addeddepends on 0027464
2014-08-26 02:03OrekariaRelationship addeddepends on 0027465
2014-08-26 02:10OrekariaRelationship addeddepends on 0027466
2014-08-29 11:09OrekariaRelationship addeddepends on 0027506
2014-08-29 11:14OrekariaRelationship addeddepends on 0027287
2014-09-01 11:22OrekariaRelationship addeddepends on 0027292
2014-09-02 21:08OrekariaRelationship addeddepends on 0027167
2014-09-07 18:58OrekariaRelationship addedrelated to 0027549
2014-09-09 00:40OrekariaRelationship addeddepends on 0027559
2014-09-09 22:08OrekariaRelationship addeddepends on 0027554
2014-09-09 23:41OrekariaRelationship addeddepends on 0027569
2014-09-12 17:41OrekariaRelationship addeddepends on 0027555
2014-09-15 13:59OrekariaRelationship addeddepends on 0027606
2014-09-20 09:27OrekariaRelationship addeddepends on 0027646
2014-09-22 16:21mtaalTarget VersionRR14Q4 =>
2014-09-24 17:43OrekariaRelationship addeddepends on 0027672
2014-09-24 17:43OrekariaRelationship addeddepends on 0027661
2014-09-25 11:05OrekariaRelationship addeddepends on 0027682
2014-09-25 23:02OrekariaRelationship addeddepends on 0027676
2014-09-28 04:51hgbotCheckin
2014-09-28 04:51hgbotNote Added: 0070469
2014-10-30 13:31OrekariaRelationship addeddepends on 0028030
2014-10-31 09:14OrekariaRelationship addeddepends on 0027986
2014-11-12 15:57OrekariaRelationship addeddepends on 0028159
2014-11-18 18:02OrekariaRelationship addeddepends on 0028217
2015-03-25 16:48OrekariaRelationship addedblocks 0029377
2015-03-25 23:07OrekariaRelationship replaceddepends on 0029377
2015-03-27 12:58OrekariaRelationship addeddepends on 0027396
2015-03-27 12:58OrekariaRelationship addeddepends on 0029396
2015-03-27 12:59OrekariaRelationship deleteddepends on 0027396
2015-05-07 15:35OrekariaRelationship addeddepends on 0028428
2015-07-27 11:05dmitry_mezentsevNote Added: 0079072
2015-07-27 11:07dmitry_mezentsevSeveritycritical => major
2016-11-10 18:16OrekariaAssigned ToOrekaria => Retail

Notes
(0070469)
hgbot   
2014-09-28 04:51   
Repository: tools/automation/pi-mobile
Changeset: 9876858ea2514a02effcfb733ce7bf312aef2911
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 28 04:51:07 2014 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/9876858ea2514a02effcfb733ce7bf312aef2911 [^]

Related to issue 27329: added 3 LoginLogout tests
- TenLoginLogout
- TenLoginLogoutWithRefresh
- TenLoginWithoutLogout

---
M src-test/org/openbravo/retail/integrationtest/tests/general/loginout/LoginoutTestSuite.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginLogout.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginLogoutWithRefresh.java
A src-test/org/openbravo/retail/integrationtest/tests/general/loginout/TenLoginWithoutLogout.java
---
(0079072)
dmitry_mezentsev   
2015-07-27 11:05   
FR cannot be Critical