Closed Bug 1237221 Opened 8 years ago Closed 8 years ago

[TV] FxOS TV Metrics - The hard-coded marketplace origins need to be adjusted for TV

Categories

(Firefox OS Graveyard :: Gaia::TV::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-v2.5 fixed, b2g-master fixed)

RESOLVED FIXED
blocking-b2g 2.5+
Tracking Status
b2g-v2.5 --- fixed
b2g-master --- fixed

People

(Reporter: lchang, Assigned: rexboy)

References

Details

(Whiteboard: [ft:conndevices][partner-cherry-pick][partner-blocker])

Attachments

(1 file)

App Usage Metrics currently uses a hard-coded white list to determine which apps are installed by Marketplace and should be recorded [1].

We have two tasks in this bug.

1. To confirm whether the origin of TV marketplace is the same as phone's.

2. Due to the implementation of the preview mode, apps on TV may be installed by System app sometimes. Therefore, we need to add the origin of System app to the white list as well.


[1] https://github.com/luke-chang/gaia/blob/master/tv_apps/smart-system/js/app_usage_metrics.js#L104
The origin of TV would be 'https://marketplace.firefox.com/tv/'.
Not sure if the API keep detail path or just domain name.

But since it's just an array, seems all we need to do is just to attach origin of system app and may be the tv marketplace above.
Comment on attachment 8707806 [details] [review]
[gaia] rexboy7:1237221 > mozilla-b2g:master

As a result, we only need to add system app to the list of install origin.

But since the marketplace website of TV is not online yet, we can only test it after it's completed. Basically it should be ok since the domain name will be the same for tv and phone, but I'm not really sure if the path "/tv/" would be included in install origin or not. We can test it after the site goes online.
Attachment #8707806 - Flags: review?(lchang)
Luke may you review this simple patch?
Comment on attachment 8707806 [details] [review]
[gaia] rexboy7:1237221 > mozilla-b2g:master

Nice!
Attachment #8707806 - Flags: review?(lchang) → review+
Assignee: nobody → rexboy
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment on attachment 8707806 [details] [review]
[gaia] rexboy7:1237221 > mozilla-b2g:master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): feature
[User impact] if declined: Can't log app usage installed from tv marketplace
[Testing completed]: local done
[Risk to taking this patch] (and alternatives if risky): small
[String changes made]: none
Attachment #8707806 - Flags: approval-gaia-v2.5?
blocking-b2g: 2.5? → 2.5+
Whiteboard: [ft:conndevices][partner-cherry-pick][partner-blocker]
Comment on attachment 8707806 [details] [review]
[gaia] rexboy7:1237221 > mozilla-b2g:master

Approve for TV 2.5
Attachment #8707806 - Flags: approval-gaia-v2.5? → approval-gaia-v2.5+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: