Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23775] Windows: Impose restrictions on feature events

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-08-17T05:00:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2016-08-15T11:06:23.000+0000
Updated2016-10-04T15:09:01.000+0000

Description

Comments

  1. Gary Mathews 2016-08-15

    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();
       
  2. Kota Iguchi 2016-08-18

    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.
  3. Ewan Harris 2016-10-04

    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

JSON Source