[
https://issues.apache.org/jira/browse/SHINDIG-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shuo-Peng Liao updated SHINDIG-1154:
------------------------------------
Attachment: fix-1154-bug.patch
I did a quick fix on features/core/prefs.js and features/setprefs/setprefs.js
with their corresponding test case.
> Invoke RPC call only if the perfs changed in gadgets.Prefs.prototype.set and
> gadgets.Prefs.prototype.setArray
> -------------------------------------------------------------------------------------------------------------
>
> Key: SHINDIG-1154
> URL: https://issues.apache.org/jira/browse/SHINDIG-1154
> Project: Shindig
> Issue Type: Improvement
> Components: Javascript
> Reporter: Shuo-Peng Liao
> Attachments: fix-1154-bug.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently functions gadgets.Prefs.prototype.set and
> gadgets.Prefs.prototype.setArray in javascript/features/setprefs/setprefs.js
> always invoke RPC calls to update prefs without checking if the value is
> changed or not. It would be nice to reduce latency and server load to check
> before invoking RPC call.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.