[TIMOB-23775] Windows: Impose restrictions on feature events
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-08-17T05:00:26.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.0.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2016-08-15T11:06:23.000+0000 |
| Updated | 2016-10-04T15:09:01.000+0000 |
master: https://github.com/appcelerator/titanium_mobile_windows/pull/821 6_0_X: https://github.com/appcelerator/titanium_mobile_windows/pull/822 *TEST CASE*
var win = Ti.UI.createWindow({backgroundColor: 'purple'}), btn_a = Ti.UI.createButton({title: 'Feature Event: exceed levels', top: 0}), btn_b = Ti.UI.createButton({title: 'Feature Event: invalid object', top: 50}), btn_c = Ti.UI.createButton({title: 'Feature Event: exceed size', top: 100}), btn_d = Ti.UI.createButton({title: 'Feature Event: exceed keys', top: 150}), btn_e = Ti.UI.createButton({title: 'Feature Event: exceed key length', top: 200}); btn_a.addEventListener('click', function () { var data = {}; for (var l = 0; l < 6; l++) { data = {l: data}; } Ti.Analytics.featureEvent('levels', data); }); btn_b.addEventListener('click', function () { var data = undefined; Ti.Analytics.featureEvent('invalid', data); }); btn_c.addEventListener('click', function () { var data = {big: Array(1002).join('c')}; Ti.Analytics.featureEvent('size', data); }); btn_d.addEventListener('click', function () { var data = {}; for (var k = 0; k < 36; k++) { data[k] = 'd'; } Ti.Analytics.featureEvent('keys', data); }); btn_e.addEventListener('click', function () { var data = {}; data[Array(52).join('e')] = 'e'; Ti.Analytics.featureEvent('keyLength', data); }); win.add(btn_a); win.add(btn_b); win.add(btn_c); win.add(btn_d); win.add(btn_e); win.open();Note: This is already pushed to 6.0.x branch but not available for nightly build yet due to build issue on Jenkins. Will let you know when it's ready.
Verified using: Windows 10 Pro Appc core: 6.0.0-56 Appc NPM: 4.2.8-7 Ti SDK: 6.0.0.v20161004013027 Lumia 550 10.0 Lumia 520 8.1 Windows specific bugs found during testing have been fixed, TIMOB-23952 remains opened but more than likely a docs issue. Therefore closing this ticket