Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027386
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2014-08-20 12:582014-09-15 13:10
ReporterOrekariaView Statuspublic 
Assigned ToOrekaria 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchpiFixed in SCM revision8832275f1f14
ProjectionnoneETAnoneTarget VersionRR14Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027386: Stabilization: Some models are making aync requests to the server before they are of any use

DescriptionStabilization: Some models are making aync requests to the server before they are of any use
Steps To ReproduceLoad the WebPOS

Verify that in the javascript console this XHR trace is shown (you may need to change the log level to debug):

XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…org.openbravo.retail.posterminal.master.DiscountFilterBusinessPartnerGroup". xhr.js:43
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…modelName=Discount&source=org.openbravo.retail.posterminal.master.Discount". xhr.js:43
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…urce=org.openbravo.retail.posterminal.master.DiscountFilterBusinessPartner". xhr.js:43
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…urce=org.openbravo.retail.posterminal.master.DiscountFilterProductCategory". xhr.js:43
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…oduct&source=org.openbravo.retail.posterminal.master.DiscountFilterProduct". xhr.js:43
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.client.kernel/OBMOBC_Main/Cli [^]…e&modelName=TaxRate&source=org.openbravo.retail.posterminal.master.TaxRate". xhr.js:43
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on design defect 0027428RR14Q4 closedOrekaria Stabilization: OB.Data.Registry should not be an enyo object 
blocks feature request 0027329 newRetail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 

-  Notes
(0069628)
hgbot (developer)
2014-08-23 00:50

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 45c18dedead1c4e6802ca14cdffb59d0c6f632c4
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sat Aug 23 00:50:06 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/45c18dedead1c4e6802ca14cdffb59d0c6f632c4 [^]

Fixes issue 27386: The models that were not needed until logged in have been delayed until logged in

---
M web/org.openbravo.mobile.core/source/data/ob-model.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069630)
Orekaria (administrator)
2014-08-23 01:17
edited on: 2014-08-23 01:17

If logged in, when a refresh is done (F5), the delayed models are not being loaded

(0069661)
hgbot (developer)
2014-08-24 01:16

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 27de9d57bc796851d5a34ddf1123f33ab8081d8d
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 24 01:16:42 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/27de9d57bc796851d5a34ddf1123f33ab8081d8d [^]

Fixes issue 27386: the client.kernel modules will be loaded after a successful login

---
M web/org.openbravo.mobile.core/source/data/ob-model.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069671)
hgbot (developer)
2014-08-24 16:49

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 99feff26ce4ee54928687030247dd6f7081dd8b1
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 24 08:07:22 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/99feff26ce4ee54928687030247dd6f7081dd8b1 [^]

Related to issue 27386: Removed forgotten console.error in ob-terminal-model

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0069719)
hgbot (developer)
2014-08-25 18:17

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5ad74a32b0ff0ba4bfe52f3806e32fa5e2ac197f
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Mon Aug 25 18:04:04 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5ad74a32b0ff0ba4bfe52f3806e32fa5e2ac197f [^]

Related to issue 27386: If the delayed generated models fail to load, stop the loading flow, and try again...
- comments

---
M web/org.openbravo.mobile.core/source/data/ob-model.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0070051)
Orekaria (administrator)
2014-09-09 13:08

Is correct for the models to load before logged in, as the data is loaded after login.
(0070052)
hgbot (developer)
2014-09-09 13:47

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 014cdb13ee8e8480ca9fd993f05efd9673da85ca
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 09 13:47:42 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/014cdb13ee8e8480ca9fd993f05efd9673da85ca [^]

Fixes issue 27386: the delayed functionality has been disabled by default...
- If this models are not necessary before the user logs in, they can be delayed, for improved performance

---
M web/org.openbravo.mobile.core/source/data/ob-model.js
---
(0070117)
hgbot (developer)
2014-09-14 17:19

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8832275f1f147bbc4279db7bfa22ebd3e7182754
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Sep 14 17:17:44 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8832275f1f147bbc4279db7bfa22ebd3e7182754 [^]

Fixes issue 27386: backed out changesets related to 27386. The models should indeed load when the application is lauched.
- data, loaded with loadmodels is what has to be loaded after a successful login; as of now

---
M web/org.openbravo.mobile.core/source/data/ob-model.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0070124)
marvintm (manager)
2014-09-15 13:10

Models should indeed be loaded initially, it is wrong to defer their loading to after the login is done, because there is no guarantee that any of these models won't be needed before the login is done.

- Issue History
Date Modified Username Field Change
2014-08-20 12:58 Orekaria New Issue
2014-08-20 12:58 Orekaria Assigned To => Orekaria
2014-08-20 12:58 Orekaria Triggers an Emergency Pack => No
2014-08-20 12:58 Orekaria Relationship added blocks 0027329
2014-08-20 13:02 Orekaria Summary Stabilization: some models are making request to the server before they are usuful => Stabilization: Some models are making aync requests to the server before they are of any use
2014-08-20 13:02 Orekaria Description Updated View Revisions
2014-08-20 13:03 Orekaria Steps to Reproduce Updated View Revisions
2014-08-22 23:21 Orekaria Relationship added depends on 0027428
2014-08-23 00:50 hgbot Checkin
2014-08-23 00:50 hgbot Note Added: 0069628
2014-08-23 00:50 hgbot Status new => resolved
2014-08-23 00:50 hgbot Resolution open => fixed
2014-08-23 00:50 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/45c18dedead1c4e6802ca14cdffb59d0c6f632c4 [^]
2014-08-23 00:57 Orekaria Status resolved => new
2014-08-23 00:57 Orekaria Resolution fixed => open
2014-08-23 01:17 Orekaria Note Added: 0069630
2014-08-23 01:17 Orekaria Note Edited: 0069630 View Revisions
2014-08-24 01:16 hgbot Checkin
2014-08-24 01:16 hgbot Note Added: 0069661
2014-08-24 01:16 hgbot Status new => resolved
2014-08-24 01:16 hgbot Resolution open => fixed
2014-08-24 01:16 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/45c18dedead1c4e6802ca14cdffb59d0c6f632c4 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/27de9d57bc796851d5a34ddf1123f33ab8081d8d [^]
2014-08-24 01:58 Orekaria Status resolved => new
2014-08-24 01:58 Orekaria Resolution fixed => open
2014-08-24 01:58 Orekaria Status new => scheduled
2014-08-24 01:58 Orekaria fix_in_branch => pi
2014-08-24 16:49 hgbot Checkin
2014-08-24 16:49 hgbot Note Added: 0069671
2014-08-25 13:12 Orekaria Status scheduled => acknowledged
2014-08-25 13:13 Orekaria Status acknowledged => scheduled
2014-08-25 13:13 Orekaria fix_in_branch pi =>
2014-08-25 13:14 Orekaria Status scheduled => acknowledged
2014-08-25 18:17 hgbot Checkin
2014-08-25 18:17 hgbot Note Added: 0069719
2014-09-02 21:55 Orekaria Status acknowledged => scheduled
2014-09-02 21:55 Orekaria fix_in_branch => pi
2014-09-02 21:55 Orekaria Status scheduled => resolved
2014-09-02 21:55 Orekaria Fixed in Version => RR14Q4
2014-09-02 21:55 Orekaria Resolution open => fixed
2014-09-09 13:08 Orekaria Note Added: 0070051
2014-09-09 13:08 Orekaria Status resolved => new
2014-09-09 13:08 Orekaria Resolution fixed => open
2014-09-09 13:08 Orekaria Fixed in Version RR14Q4 =>
2014-09-09 13:47 hgbot Checkin
2014-09-09 13:47 hgbot Note Added: 0070052
2014-09-09 13:48 hgbot Status new => resolved
2014-09-09 13:48 hgbot Resolution open => fixed
2014-09-09 13:48 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/27de9d57bc796851d5a34ddf1123f33ab8081d8d [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/014cdb13ee8e8480ca9fd993f05efd9673da85ca [^]
2014-09-09 20:41 Orekaria Status resolved => new
2014-09-09 20:41 Orekaria Resolution fixed => open
2014-09-14 17:19 hgbot Checkin
2014-09-14 17:19 hgbot Note Added: 0070117
2014-09-14 17:19 hgbot Status new => resolved
2014-09-14 17:19 hgbot Resolution open => fixed
2014-09-14 17:19 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/014cdb13ee8e8480ca9fd993f05efd9673da85ca [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8832275f1f147bbc4279db7bfa22ebd3e7182754 [^]
2014-09-15 13:09 marvintm Status resolved => new
2014-09-15 13:09 marvintm Resolution fixed => open
2014-09-15 13:10 marvintm Review Assigned To => marvintm
2014-09-15 13:10 marvintm Note Added: 0070124
2014-09-15 13:10 marvintm Status new => closed
2014-09-15 13:10 marvintm Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker