Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2017-11-29 09:032018-02-07 10:28
ReporterguilleaerView Statuspublic 
Assigned Togorka_gil 
PrioritynormalResolutionfixedFixed in VersionRR18Q2
StatusclosedFix in branchFixed in SCM revisiona2086cfed41d
ProjectionnoneETAnoneTarget VersionRR18Q1.1
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

0037416: Performance of scrollable table is not good

DescriptionScrollable table lines are connected to a model. UI component is listening to changes in that model. If the model changes the UI components is redrawn.

This is nice, because the UI always will show updated data, but it can be a problem if the model properties changes very frequently.

If several property changes are done almost at the same time, for the user perspective doesn't make sense to update the view every single change. It would be better to wait until "cascade" changes finishes and then update the UI component

throttle function (provided by underscore.js) allow us to do it. We will specify a period of time to execute the redraw function. Doesn't matter the number of times that it is invoqued because it will be executed just 2 times (with the first invocation and after XXX milliseconds)
Steps To ReproduceN/A
Proposed SolutionInsert throttle function
Add preferences to define the time to wait. This value can change depending on the devices where web POS is executed
TagsNo tags attached.
Attached Filesdiff file icon only_throttle.diff [^] (5,629 bytes) 2018-01-05 11:10 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0037589RR18Q1.1 closedgorka_gil Test I35741_VerifyRemoveLinesWithServices failling with throttle patch attached 
related to defect 0042611 closedranjith_qualiantech_com Web POS receipt not scrolling down after adding a product in some situations 

-  Notes
hgbot (developer)
2018-01-22 13:01

Repository: tools/automation/pi-mobile
Changeset: e531701ee0dc52100cb272e261e5d7b786fb701b
Author: Gorka Gil <gorka.gil <at>>
Date: Tue Jan 16 18:51:45 2018 +0100
URL: [^]

Related to issue 37416: After throttle change, reverse payments tests fails when checking if elements in the payment scrollabletable are visible.

Since the dom id has change from when calculated it, till checking the display property.
Added a try/catch to check again when it has fail.

M src-test/org/openbravo/test/mobile/core/utils/
M src-test/org/openbravo/test/mobile/retail/mobilecore/intuitive/
hgbot (developer)
2018-01-31 12:35

Repository: tools/automation/pi-mobile
Changeset: 8fe3bb88c369527a2b8c6b7322a38fdbac2ed908
Author: Gorka Gil <gorka.gil <at>>
Date: Wed Jan 31 12:32:48 2018 +0100
URL: [^]

Related to issue 37416: [throttle] Disable throttle in pi-mobile tests. To activate it in try-retail needed to pass a extra param ACTIVATE_THROTTLE=true

M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/
M src-test/org/openbravo/test/mobile/retail/mobilecore/selenium/terminals/
hgbot (developer)
2018-01-31 12:36

Repository: erp/pmods/
Changeset: a2086cfed41d5fa7b6e2f479ff33b7cfa507a938
Author: Gorka Gil <gorka.gil <at>>
Date: Tue Jan 30 21:41:03 2018 +0100
URL: [^]

Fixes issue 37416: [throttle] Improve performance of scrollable table using throttle

M src-db/database/sourcedata/AD_PREFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M web/
gorka_gil (administrator)
2018-01-31 16:13
edited on: 2018-02-16 17:19

By default the throttle is enabled in the repository, meaning that any one with this change will have the throttle enabled.

But since this change produce some random problems in try-retail, the throttle is disabled in all tests (which includes try-retail, quarantine and retail integration)

Note that when running tests in local the throttle will remain enabled, but usually running tests in local don't reproduce the random issues that happen in try-retail.

For execute a try-retail with the throttle enabled needed to pass this extra parameter: ACTIVATE_THROTTLE=true

hgbot (developer)
2018-02-07 10:28

Repository: tools/automation/pi-mobile
Changeset: c0ef5f1e808f508b61bbc380bbb85ed424cc6a59
Author: Gorka Gil <gorka.gil <at>>
Date: Tue Feb 06 12:56:48 2018 +0100
URL: [^]

Related to issue 37416: [throttle] disable throttle only in ci servers (try,qarantine,integration,highvol,storeserver,modules,etc)

M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/
M src-test/org/openbravo/test/mobile/retail/mobilecore/selenium/terminals/

- Issue History
Date Modified Username Field Change
2017-11-29 09:03 guilleaer New Issue
2017-11-29 09:03 guilleaer Assigned To => Retail
2017-11-29 09:03 guilleaer File Added: only_throttle.diff
2017-11-29 09:03 guilleaer Triggers an Emergency Pack => No
2017-12-26 14:08 guilleaer Target Version RR18Q1 => RR18Q1.1
2018-01-05 11:10 guilleaer File Deleted: only_throttle.diff
2018-01-05 11:10 guilleaer File Added: only_throttle.diff
2018-01-05 12:27 guilleaer Relationship added depends on 0037589
2018-01-22 13:01 hgbot Checkin
2018-01-22 13:01 hgbot Note Added: 0101837
2018-01-31 12:35 hgbot Checkin
2018-01-31 12:35 hgbot Note Added: 0102089
2018-01-31 12:36 hgbot Checkin
2018-01-31 12:36 hgbot Note Added: 0102090
2018-01-31 12:36 hgbot Status new => resolved
2018-01-31 12:36 hgbot Resolution open => fixed
2018-01-31 12:36 hgbot Fixed in SCM revision => [^]
2018-01-31 15:01 marvintm Assigned To Retail => gorka_gil
2018-01-31 16:13 gorka_gil Note Added: 0102094
2018-02-06 18:36 marvintm Review Assigned To => marvintm
2018-02-06 18:36 marvintm Status resolved => closed
2018-02-06 18:36 marvintm Fixed in Version => RR18Q2
2018-02-07 10:28 hgbot Checkin
2018-02-07 10:28 hgbot Note Added: 0102241
2018-02-16 17:18 gorka_gil Note Edited: 0102094 View Revisions
2018-02-16 17:19 gorka_gil Note Edited: 0102094 View Revisions
2020-02-18 14:34 ranjith_qualiantech_com Relationship added related to 0042611

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker