Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-4642] Fixed timed event not accepting Date. Cleaned up strings to #449

Merged
merged 2 commits into from Sep 15, 2011

Conversation

donthorp
Copy link
Contributor

@donthorp donthorp commented Sep 8, 2011

[TIMOB-4642] Fixed timed event not accepting Date. Cleaned up strings to constants. Fixed method brace formatting.

… to constants. Fixed method brace formatting.
if (stop instanceof Number) {
payload.put(TiC.PROPERTY_STOP, ((Number) stop).longValue());
} else if (stop instanceof KrollDate) {
payload.put(TiC.PROPERTY_STOP, ((KrollDate) start).getTime());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like you referenced "start" here, when you meant to reference "stop"

@marshall
Copy link
Contributor

marshall commented Sep 9, 2011

Functional review tentatively accepted. The API seems to be executed correctly now, but I'm not the best way to verify that the timed analytics event is actually sent

@marshall
Copy link
Contributor

Code review accepted, we need to get someone from QE / Cloud to verify the event is being sent correctly

@nataliehuynh
Copy link
Contributor

Request ACCEPTED
Tested with Nexus One 2.2.2
12T17:51:15.941+0000","event":"timedEvent.testButton","data":{"data":[],"stop":1315849875920,"duration":8492,"start":1315849867428,"event":"timedEvent.testButton"},

@billdawson
Copy link
Contributor

Accepted based on code review and functional test. Did two func tests, one using Date objects, the other user using Long values of Date objects, e.g., (new Date()).getTime(). No exceptions encountered with Don's branch.

billdawson added a commit that referenced this pull request Sep 15, 2011
[TIMOB-4642] Fixed timed event not accepting Date. Cleaned up strings to
@billdawson billdawson merged commit 4e7f656 into tidev:master Sep 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants